Select to view content in your preferred language

Rest Server missing geometry

141
1
Jump to solution
02-05-2025 09:08 AM
LukeStork
New Contributor

I am trying to download this layer as a geojson, but the rest server itself seems to be missing the geometry information. Yet when viewing the layer online here the layers appear on the map meaning the geometry information must be out there somewhere. If someone could shed some light upon this that would be great, when looking at the raw data in json format, the geometry field appears empty.

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
JoshuaBixby
MVP Esteemed Contributor

Short answer, you can't download the geometry information because the service has been published in a way to prevent it.  All of the non-spatial attributes are available, but they have decided to prevent access to the geometry information.  There is nothing you can do on the end-user side.  You can try contacting the organization and inquire how to get a copy of the data that includes geometry.

The reason the one link shows the geometries on a map is that it is a different REST function.  The link that works is returning images of data and not data itself.

View solution in original post

1 Reply
JoshuaBixby
MVP Esteemed Contributor

Short answer, you can't download the geometry information because the service has been published in a way to prevent it.  All of the non-spatial attributes are available, but they have decided to prevent access to the geometry information.  There is nothing you can do on the end-user side.  You can try contacting the organization and inquire how to get a copy of the data that includes geometry.

The reason the one link shows the geometries on a map is that it is a different REST function.  The link that works is returning images of data and not data itself.