Skip to main content
Question

Having issues with using a GeoJSON file with the SpatialFilter and Cutter transformers

  • April 29, 2019
  • 2 replies
  • 24 views

Hi Everyone,

 

I having some issues using a GeoJSON file in a spatial filter or clipper. When I inspect the layer, as well as the other layer I'm comparing it to, they clearly overlap and I have made sure that the coordinate systems are set correctly. Is there a reason why GeoJSON would not work for these spatial transformers? I have used the transformers before multiple times but have never worked with the GeoJSON format.

 

I have attached a file which includes a simple workspace showing the issue as well as the 2 source file (which have been made as anonymous as possible).

 

There are 2 files included:

Area 1: A shape file which was created from an Esri Geodatabase

Area 2: A Shape file created from a GeoJSON file (the original file can be shared if necessary)

 

I would really appreciate any help with this.

Thanks in advance!

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.

2 replies

debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • 648 replies
  • April 29, 2019

Hi @ponting7

The input file format should not have an effect when using spatial transformers (eg. Clipper, SpatialFilter) to analyze spatial relationships.

What does have an effect are the coordinate systems of the datasets. As mentioned in the documentation:

To correctly analyze spatial relationships, all features should be in the same coordinate system. The Reprojector may be useful for reprojecting features within the workspace.

Area 1 and Area 2 are in different coordinate systems. The CoordinateSystemSetter simply tags input features with the specified coordinate system and does not reproject features.

Please use one of the reprojection transformers to reproject one set of data to the same coordinate system of the other set and you should the correct output from both transformers.


  • Author
  • 1 reply
  • April 30, 2019

Hi @ponting7

The input file format should not have an effect when using spatial transformers (eg. Clipper, SpatialFilter) to analyze spatial relationships.

What does have an effect are the coordinate systems of the datasets. As mentioned in the documentation:

To correctly analyze spatial relationships, all features should be in the same coordinate system. The Reprojector may be useful for reprojecting features within the workspace.

Area 1 and Area 2 are in different coordinate systems. The CoordinateSystemSetter simply tags input features with the specified coordinate system and does not reproject features.

Please use one of the reprojection transformers to reproject one set of data to the same coordinate system of the other set and you should the correct output from both transformers.

Thanks for the advice, that has worked perfectly