Skip to main content
Solved

Cannot create linear geometry in SQL Spatial

  • March 19, 2015
  • 1 reply
  • 15 views

Hi Group,

 

 

I can easily create point geometry using the SQL Spatial Writer in FME however I can't create linear geometry or polygons (using shp or tab files as source).

 

 

I get "MS SQL Server (Spatial) Writer: Failed to get the SQL Server native binary form for column 'Geom'"

 

 

Any ideas?

 

 

Thanks.

Best answer by ken

Hi EB

 

This error is typically give by SQL Server itself when the geometry we send it from FME is somehow invalid.  A few common reasons:

 

- if your column is "geography" then the feature must be in lat long have geometry within the valid lat long range of numbers. You can use a Reprojector transformer

 

- self-intersecting features may also cause this error

 

 

You might try using the GeometryValidator to look for self-intersecting features or other invalid geometries. Failing that you could send a sample of this data to us in support (safe.com/support) and we can take a look.

 

Thanks

 

Ken
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img
  • Best Answer
  • April 1, 2015
Hi EB

 

This error is typically give by SQL Server itself when the geometry we send it from FME is somehow invalid.  A few common reasons:

 

- if your column is "geography" then the feature must be in lat long have geometry within the valid lat long range of numbers. You can use a Reprojector transformer

 

- self-intersecting features may also cause this error

 

 

You might try using the GeometryValidator to look for self-intersecting features or other invalid geometries. Failing that you could send a sample of this data to us in support (safe.com/support) and we can take a look.

 

Thanks

 

Ken

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