Skip to main content

Hi,

End Goal: To have my FME server have a workspace where a user can draw a polygon shape, and FME provide a ZIP file containing all watermains within that polygon shape area.

 

I have a workspace (attached) that reads an ArcGIS Online Feature Layer (water mains), and i am attempting to use a set of coordinates as GeoJSON to clip this selection and output the selected areas water mains.

I have been using this tutorial as a guide - https://s3.amazonaws.com/gitbook/Server-Authoring-2020/ServerAuthoring3SelfServe/Exercise3.html - but I am unsure how to get the coordinate systems to match.

 

I understand the two items (the user input and watermain feature layer) need to be in the same coordinate system in order for the clipper to work, and I have no idea how to achieve this with these two data sources.

I created a parameter (similar to the screenshot) with a default which is surrounding our local city:

2020-08-22 22_39_52-geojson.io

 

If I use the Visual Preview to inspect the 'geometry replacer', which is using my manually inputted coordinates, it is showing the correct 'shape', but is showing "coordinate system: Unknown"

2020-08-22 22_45_28-_NONE to XLSXW (C__Users_Ben_Desktop_Clip AGOL Data.fmw) - FME Workbench 2020.0

 

And if I try the Coordinate System Setter and Reprojector as the tutorial does, it completely screws with the clip area I am trying to use:

2020-08-22 22_47_55-_NONE to XLSXW (C__Users_Ben_Desktop_Clip AGOL Data.fmw) - FME Workbench 2020.0

 

I am completely lost. I was thinking this would be straight forward as the tutorial shows, but I am left scratching my head!

 

Thanks for your time.

Hi @benvk​ ! I see the Coordinatesystemsetter is YELLOW - so the cache might be "old". If you click "Run to this" on the Coordinatesystemsetter the workspace will run whats not cached again and you get updated data. Does the coordinatesystem work now?

 

If not, can you upload the GeoJSON here and the coordinate system?

 


Hi @benvk​ ! I see the Coordinatesystemsetter is YELLOW - so the cache might be "old". If you click "Run to this" on the Coordinatesystemsetter the workspace will run whats not cached again and you get updated data. Does the coordinatesystem work now?

 

If not, can you upload the GeoJSON here and the coordinate system?

 

Unfortunately this made no change :(

 

Just to clarify, I have drawn a rectangle in the geoJSON generator, then I can see the rectangle at the geometry replacer, but then at the next step it throws the coords around and makes a funny looking shape. So I think I am way off the mark with this one!


Hi @benvk​ ,

 

I'm pretty sure the coordinates you are setting are in EPSG:4326 https://github.com/mapbox/geojson.io/issues/640 which is the same as LL84 in FME. 2020-08-25_13-29-43

If you set that in the CoordinateSystemSetter, you should see the correct shape. 2020-08-25_13-32-13

From there you could reproject using the reprojector to MGA94-55.

 

However, I believe ArcGIS Online uses WGS84 for everything by default, however this information may be out of date so I'd check with with them. https://resource.esriuk.com/blog/2014-6-20-arcgis-online-brings-projections-to-our-world-html/#:~:text=ArcGIS%20Online%20uses%20the%20WGS,Geographic%20Coordinate%20System%20(GCS).

 

 

 


Hi @benvk​ ,

 

I'm pretty sure the coordinates you are setting are in EPSG:4326 https://github.com/mapbox/geojson.io/issues/640 which is the same as LL84 in FME. 2020-08-25_13-29-43

If you set that in the CoordinateSystemSetter, you should see the correct shape. 2020-08-25_13-32-13

From there you could reproject using the reprojector to MGA94-55.

 

However, I believe ArcGIS Online uses WGS84 for everything by default, however this information may be out of date so I'd check with with them. https://resource.esriuk.com/blog/2014-6-20-arcgis-online-brings-projections-to-our-world-html/#:~:text=ArcGIS%20Online%20uses%20the%20WGS,Geographic%20Coordinate%20System%20(GCS).

 

 

 

Yeah, I agree with Sienna.

 

Your first screen shot shows coordinates in latitude - longitude decimal degrees. Thus your CoordinateSystemSetter should be set to LL84 not MGA94. That would go in your Reprojector.


Yeah, I agree with Sienna.

 

Your first screen shot shows coordinates in latitude - longitude decimal degrees. Thus your CoordinateSystemSetter should be set to LL84 not MGA94. That would go in your Reprojector.

thank so much, spot on what I needed to fix my mistake.

 

Thanks again


Reply