Skip to main content

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!

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.


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