Question

Hi!, How to create geometry from x,y coords received in .shp file? we need to migrate these coordinates as geometry in smallworld. Thanks

  • 8 December 2021
  • 3 replies
  • 3 views

Badge
Hi!, How to create geometry from x,y coords received in .shp file? we need to migrate these coordinates as geometry in smallworld. Thanks

3 replies

Userlevel 5
Badge +29

Theres a couple of options, if the coordinates are stored in a 'standard' format (eg GeoJSON, OGC) Then have a look at the GeometryReplacer.

 

If they're not then you'll need to use the VertexCreator. If they're points, then its pretty straight forward, however if the desired geometry is a line or polygon, you're going to have to break down the data to the individual coordinate pair, then recreate the desired geometry from the vertices

Userlevel 4
Badge +30

Theres a couple of options, if the coordinates are stored in a 'standard' format (eg GeoJSON, OGC) Then have a look at the GeometryReplacer.

 

If they're not then you'll need to use the VertexCreator. If they're points, then its pretty straight forward, however if the desired geometry is a line or polygon, you're going to have to break down the data to the individual coordinate pair, then recreate the desired geometry from the vertices

Nice job!

Userlevel 2
Badge +11

When writing to smallworld you should inspect the data beforehand to find out the geometry configuration. I understand there are differences in Smallworld 5.x but the methods for Smallworld 4 still work in Smallworld 5.

 

As such, you should look to find the below attributes and ensure these are populated for the data you're writing to Smallworld along with setting fme_db_operation.

 

sworld_attributesFurther information that might prove useful:

Importing into Smallworld

Writing to Smallworld Multiple Geometries

 

 

Reply