Skip to main content
Question

Determine whether a shapefile has a Z and/or M


regie_alam
Participant
Forum|alt.badge.img

What would be the best way (aside from opening the file in a GIS software) to find out if the vertices in a shapefile has a Z and/or an M?

4 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • May 30, 2024

Hi @regie_alam 

 

I suggest you to use the transformer to identify the coordinates x,y and z - CoordinateExtractor.

 

And after to filter the Z values:

 

 

 

 

 


jkr_wrk
Influencer
Forum|alt.badge.img+28
  • May 30, 2024

 

For measures I don't know. Still figuring out how it works.


redgeographics
Celebrity
Forum|alt.badge.img+48

Alternative approach to @danilo_fme and @jkr_wrk excellent suggestions:

You can use the DimensionExtractor transformer to extract the dimension of features (either 2 or 3) to an attribute and then test for that. Then a MeasureExtractor can be used to extract measures. If there are no measures present it will reject those features.


jkr_wrk
Influencer
Forum|alt.badge.img+28
  • May 31, 2024

I tried the MeasureExtractor and indeed it rejected my features. But didn't know if it was because it hadn't any or that I didn't search for the right name.

As for dimensions, don't want to brag, but my solution does not require extracting and removing an attribute. Someone at @redgeographics pointed me to that.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings