Datasets with null bbox are shown in JSON as [-180,180,-90,90]

3167
1
07-17-2013 12:09 AM
StephenLead
Regular Contributor III
Hi guys,

In instances where a dataset has no bounding box, the GeoPortal doesn't show the Zoom To option in the Search results:

[ATTACH=CONFIG]25995[/ATTACH]

However, the JSON output for these dataset shows a bounding box covering the whole globe:

"bbox" : [-180.0, -90.0, 180.0, 90.0],


Is this a bug? IMO the bbox should be null if it doesn't exist for the data. Any workarounds you can suggest?

Thanks,
Steve

--
GeoPortal Genie | a modern front-end to Esri GeoPortal Server
0 Kudos
1 Reply
MartenHogeweg
Esri Contributor

it is definitely 'by design'. see com.esri.gpt.control.georss getValidMinX-like methods. perhaps something to change. there is not such a thing as a 'null geometry' from what I can see on GeoRSS, so better would be to omit the entire georss:polygon element when there is no geometry in a record.

if this happens with ArcGIS items, check the ags-toDC.xslt as there is a default extent assigned there upon publishing.

0 Kudos