Toolvito

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.

Choose what to do

Task
Check a geospatial file

Or drop files here. GEOJSON, JSON, KML, KMZ, GPX, CSV, TSV, WKT, ZIP, SHP, SHX, DBF, PRJ, CPG or GPKG, up to 20 files, 200 MB each at most.

    More options

    7 decimals of a degree are about 1 cm.

    When you run a task here, Toolvito receives the files you choose for processing. 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.

    How to check a geospatial file

    1. 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.
    2. 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

    1. Choose Repair a geospatial file and choose the files.
    2. 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.
    3. 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.

    Related tools