Processed online by Toolvito
Geospatial Data Validator
Find out what is wrong with a map file, and fix it. The checker lists every problem with the feature, its name and the place: polygons that cross themselves, rings that are not closed or run the wrong way, coordinates outside the map (often latitude and longitude swapped), repeated points, slivers, duplicate shapes and attributes that change type. The repair task makes the shapes valid, turns rings the right way, removes repeated points and duplicates, and can round coordinates and simplify shapes.
How to check a geospatial file
- Choose Check a geospatial file and choose the files: GeoJSON, KML, KMZ, GPX, CSV, WKT, a shapefile (all its parts, or a ZIP) or a GeoPackage.
- Press Check. The page shows whether the file is valid and lists the problems; download the report as JSON or CSV.
How to repair it
- Choose Repair a geospatial file and choose the files.
- Choose the format to save (the same as the input, or another), and under More options whether to round the coordinates, simplify the shapes or leave out duplicates.
- Press Repair. The report shows the problems before and after; download the repaired file.
What is checked
- GeoJSON structure (RFC 7946): object types and members, positions of 2 or 3 numbers, closed rings with at least 4 positions, the old "crs" member.
- Shapes (with GEOS, the engine used by QGIS and PostGIS): self-intersections and where they are, holes outside their polygon, rings with too few points, empty or missing shapes, slivers with almost no area.
- Coordinates: outside longitude -180 to 180 or latitude -90 to 90, more decimals than needed (more than 7 decimals is finer than 1 cm).
- The file: identical shapes, ring direction (RFC 7946 wants outer rings counter-clockwise), different shape types in one file, attributes that some features lack or that change type.
Good to know
- Repairing keeps polygons as polygons: a polygon that crosses itself becomes the areas it encloses. Coordinates that are swapped or in another coordinate system cannot be guessed; they stay in the report.
- Gaps and overlaps between neighbouring features (map topology) are not checked.
- To change the format or the coordinate system only, use the Geospatial File Converter; to edit GeoJSON by hand, the GeoJSON Editor & Validator.
Privacy
Your files are sent to the Toolvito server to be checked. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.