Search code examples
jsonvalidationgeojson

large geojson validation issue


In my project I'm using http://geojsonlint.com/ for geojson validation

$.ajax({
    url: 'http://geojsonlint.com/validate',
    type: 'POST',
    data: some_geojson,
    dataType: 'json',
    success: processSuccess,
    error: processError
});

everything would be alright if it could handle large files like this one for example

My questions are the following:

Are there any other ways to validate geojson offline or online?

Can I just validate geojson as usual JSON?


Solution

  • Why you do not implement your custom validator based on the GeoJSONLint source code? then you could validate your JSON offline.

    Take a look at the Utils class.