Skip to main content
Question

Non-linear geometry to Polyline feature

  • February 8, 2018
  • 3 replies
  • 252 views

fmeuser_gc
Contributor
Forum|alt.badge.img+8

I get this below error while writing to SDE from Shape file.

ERROR |Cannot write a non-linear feature to a polyline feature class.

Have tried using GeometryFilter to filter line type and GeometryValidator, but still I get this error. I don't see geodb_line geometry type in SDE writer.

Any thoughts please?

Thanks,

3 replies

fmeuser_gc
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • February 8, 2018
Tagging in @Mark2AtSafe, @mark_1spatial, @erik_jan, @RylanAtSafe, @jlutherthomas

nathanatsafe
Safer
Forum|alt.badge.img+7

Hi @fmeuser_gc, thanks for posting your question!

 

 

If you can isolate the offending feature by a process such as Running with Breakpoints, you might be able to gain some insight into why it is being tagged as non-linear. In addition, you could try passing the feature through one or more of the following transformers before your SDE write: GeometryCoercer, CoordinateRounder, or ArcSDEGridSnapper. The ArcSDEGridSnapper might be a good place to start as it might uncover the underlying issue with the "non-linear" feature. You may need to follow it by a GeometryValidator to achieve a successful write.

Hope this helps!

Nathan


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • February 8, 2018

Hi @fmeuser_gc,

It's possible that a very short line is being converted to a point by the rounding performed when writing to Geodatabase SDE. Please try adding an ArcSDEGridSnapper transformer before the GeometryValidator and GeometryFilter. This transformer will perform the same rounding done by the writer (given the output table's scale and origin), allowing you to find any problems created by the rounding.


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