Skip to main content
Question

how to convert (x And y) data table in oracle to shapefile and save it in the oracle database?

  • November 20, 2017
  • 8 replies
  • 97 views
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

8 replies

david_r
Celebrity
  • November 20, 2017

You can read the table using the Oracle Non-Spatial reader, then use the VertexCreator transformer to convert the X,Y values to a point geometry and send it to the Shape file writer.


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • November 20, 2017

Hi @eslamgis90,

How is the structure your information x and y in Oracle?

Thanks,

Danilo


steveatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • November 21, 2017

You can read the table using the Oracle Non-Spatial reader, then use the VertexCreator transformer to convert the X,Y values to a point geometry and send it to the Shape file writer.

You might also want to set the coordinate system on the Writer or via CoordinateSystemSetter transformer.

 

 


steveatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • November 21, 2017
Just to clarify... If I understand correctly, you want to read out some tabular data (Oracle Non-Spatial Reader) that contains x and y coordinate values, create a shape file (Shape Writer) and then create a new table in Oracle with the geometry (Oracle Spatial Writer)?

 

 


  • Author
  • November 21, 2017

Hi @eslamgis90,

How is the structure your information x and y in Oracle?

Thanks,

Danilo

numbers format .

 

 


  • Author
  • November 21, 2017
This is exactly what I want to do.

 

 


takashi
Celebrity
  • November 21, 2017
This is exactly what I want to do.

 

 

As @david_r suggested, the VertexCreator transformer can be used to add a point geometry based on (x, y) to each feature read by the Oracle Non-Spatial Reader. You can then write them into a Shepefile file (with Shapefile Writer) and an Oracle database table (with Oracle Spatial Object Writer) simultaneously.

 

Just be aware that the license for FME Desktop Database Edition is required to create a workspace that contains the Oracle Spatial Object Writer.

 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • November 21, 2017
numbers format .

 

 

Good, could you share a example of your data?