Sunday, 8 July 2018

How to Validate a GeoJSON



I have a small script that I'm using to generate GeoJSON data from a data format not currently supported by GIS software.


I would like to validate the output, but when I use ogr2ogr to read it, it doesn't give me any helpful information about what aspects, lines, or characters contained invalid data.


Is there a decent GeoJSON validator somewhere, or a good method of validating GeoJSON data with OGR?


EDIT: I am not looking for JSON validators or the GeoJSON spec. I've seen and used both to get to this point, but OGR still returns an error.


Thanks!



Answer



5 months late, but I made this thing that should help http://geojsonlint.com/.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...