Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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!

share|improve this question

2 Answers

up vote 5 down vote accepted

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

share|improve this answer

I have explained it before in this post

it is all about types of spelling what differences with json and geojson. you can add more definition if you want. i dont think it is so important for not taking part in json spec for geojson...there is no limit for json object, only important thing is your json have to be valid for correct usage.

you can check your geojson file whether valid or not from JSONLint which is a JSON Validator...

and you can check geojson spec form here

i hope it helps you.

share|improve this answer
The GeoJSON spec is at geojson.org - you linked to GeoJSON CSS, an unofficial extension. – tmcw Sep 17 '12 at 0:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.