Skip to main content
Solved

I have been trying to clip two shp files in FME. In ArcPro these two files ovelap perfectly so I am able to clip then exactly as required but in FME they dont overlap when under the same conditions. I need them to overlap to be able to use the clippe

  • August 19, 2022
  • 4 replies
  • 28 views

edward_skanska
Contributor
Forum|alt.badge.img+2

FME ClipSee picture above for more context. I have made sure they are under the same coordinates when impporting them into the process as well as using the coordinate system setter but still no luck in making them overlap in the inspector afterwards.

Im not sure if I am missing something obvious since I am new to FME or whether its an issue with the shp files.

 

Best answer by redgeographics

It looks like they're not in the same coordinate system. One important thing to know about FME is that, with the exception of the Data Inspector and Visual Preview when you have a basemap selected, it will not reproject data on the fly for you. It assumes that when you are performing any kind of spatial process on two datasets, such as clipping, that you as the workspace author will have made sure that they are in the same coordinate system.

 

You mention the CoordinateSystemSetter. This is a useful transformer, but it merely sets the coordinate system, it doesn't actually perform a reprojection (so you would use it when there's no coordinate system specified, or the wrong one, and you know what it should be), for that you need to use the Reprojector transformer (or it's brothers the EsriReprojector, CSmapReprojector or ProjReprojector, they differ in the library of coordinate systems they use)

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.

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • August 19, 2022

It looks like they're not in the same coordinate system. One important thing to know about FME is that, with the exception of the Data Inspector and Visual Preview when you have a basemap selected, it will not reproject data on the fly for you. It assumes that when you are performing any kind of spatial process on two datasets, such as clipping, that you as the workspace author will have made sure that they are in the same coordinate system.

 

You mention the CoordinateSystemSetter. This is a useful transformer, but it merely sets the coordinate system, it doesn't actually perform a reprojection (so you would use it when there's no coordinate system specified, or the wrong one, and you know what it should be), for that you need to use the Reprojector transformer (or it's brothers the EsriReprojector, CSmapReprojector or ProjReprojector, they differ in the library of coordinate systems they use)


edward_skanska
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • August 19, 2022

It looks like they're not in the same coordinate system. One important thing to know about FME is that, with the exception of the Data Inspector and Visual Preview when you have a basemap selected, it will not reproject data on the fly for you. It assumes that when you are performing any kind of spatial process on two datasets, such as clipping, that you as the workspace author will have made sure that they are in the same coordinate system.

 

You mention the CoordinateSystemSetter. This is a useful transformer, but it merely sets the coordinate system, it doesn't actually perform a reprojection (so you would use it when there's no coordinate system specified, or the wrong one, and you know what it should be), for that you need to use the Reprojector transformer (or it's brothers the EsriReprojector, CSmapReprojector or ProjReprojector, they differ in the library of coordinate systems they use)

Wow thank you this is perfect, thank you! Out of curiousity is their a tool or a way to view a shp files coordinates system within FME since the ESRIReprojector requires you to know the coordinate system it is currently in?


redgeographics
Celebrity
Forum|alt.badge.img+62

Wow thank you this is perfect, thank you! Out of curiousity is their a tool or a way to view a shp files coordinates system within FME since the ESRIReprojector requires you to know the coordinate system it is currently in?

Yes, you can use the Data Inspector or Visual Preview, select a single feature and then look at the feature information, near the top it should list the coordinate system.

 

If there is a .prj file with the Shapefile, FME will use that and you can leave the input coordinate system parameter of a Reprojector transformer on 'Read from source'


edward_skanska
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • August 19, 2022

Wow thank you this is perfect, thank you! Out of curiousity is their a tool or a way to view a shp files coordinates system within FME since the ESRIReprojector requires you to know the coordinate system it is currently in?

Amazing thank you for the help I got it working!