Skip to main content
Question

How do I expose z value from DWG in OrientedArc

  • February 11, 2020
  • 6 replies
  • 59 views

Forum|alt.badge.img

See image below, my z value that I need to pull with the contours in this DWG are here (circled):

 

How do I expose the Z value circled (and/or the rest of the coordinates XY) in my workspace from a DWG? I can see this in inspector. I'm converting the contours to GDB.

 

6 replies

Forum|alt.badge.img

I found a Question similar to mine, where they used the ArcPropertyExtractor. This works for about a third of the data and rejects the rest, but doesn't say why.

When checking the differences in the data, it seems the entity is Arc for those rejected instead of LWPolyline, although the Geometry Filter is picking all of these errors up as lines. The Arc transformers I've used don't think they're Arcs.


umapper1
Contributor
Forum|alt.badge.img+5
  • Contributor
  • February 12, 2020

It’s a bit hard to say without seeing the source data set. Is the contours all you’ve got to work with? I would go back to the terrain model and get straight contour poly lines (instead of curves) or better still, the tin itself. What about using the geometrycoercer transformer to force them in to a different geometry type?


Forum|alt.badge.img

I worked out how to do this for majority of my data using this solution:

https://knowledge.safe.com/questions/86991/exracting-cwccw-from-arc.html

Using the arcpropertyextractor. However, I have a bigger issue with the ones that are rejected.

In the Geometry Filter it shows these as lines, however in inspector the Autocad entity is "autocad_arc". The error is INVALID GEOMETRY TYPE.

The Z information exists in the "Oriented Arc" section in inspector and I can't pull that data unless I can use the Arcpropertyextractor, however, that is not recognising it as a recognised geometry.


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • February 12, 2020

Have you checked they are not paths? These would still be filtered via the line geometry port. The easiest way to check if there are paths is to use a pathsplitter and see if you get more features out than going in.


Forum|alt.badge.img
ebygomm wrote:

Have you checked they are not paths? These would still be filtered via the line geometry port. The easiest way to check if there are paths is to use a pathsplitter and see if you get more features out than going in.

No I'm afraid that didn't work, seems to be the same. I've searched the net and anyone commenting on the Invalid Geometry Error just says to use an ArcStroker, but because it isn't recognising them as Arcs in the workspace this does nothing (but it recognises them as Arcs in Inspector).


virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Have you tried using the BoundsExtractor (just get zmin)? Assuming these contour lines are at constant elevations this should work. Or perhaps I'm missing something here?


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