Giter Club home page Giter Club logo

Comments (3)

giohappy avatar giohappy commented on July 18, 2024 1
  • RQ5: validation of geometries is too much imho, it means iterating over each feature
  • RQ9 / RQ10: do we really need this? I don't think so. We're just doing a sequential read of the DB, we will never use the spatial index

from geonode-importer.

mattiagiupponi avatar mattiagiupponi commented on July 18, 2024

This library provides some basic validation steps that we can use to validate the input geo package https://github.com/PDOK/geopackage-validator
The validations step can be provided via config or via code.

At the moment the following validation steps are performed:

RQ1: Layer names must start with a letter, and valid characters are lowercase a-z, numbers or underscores.
RQ2: Layers must have at least one feature.
RQ5: Geometry should be valid
RQ9: All geometry tables must have an rtree index
RQ10: All geometry table rtree indexes must be valid.
RQ13: It is required to give all GEOMETRY features the same default spatial reference system
RQ14: The geometry_type_name from the gpkg_geometry_columns table must be one of POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, or MULTIPOLYGON
RQ15: All table geometries must match the geometry_type_name from the gpkg_geometry_columns table
RC2: It is recommended to give all GEOMETRY type columns the same name.

Is also possible to provide a JSON or a YAML file with the configuration and validate the geo package against that

from geonode-importer.

mattiagiupponi avatar mattiagiupponi commented on July 18, 2024
  • RQ5: validation of geometries is too much imho, it means iterating over each feature

We can remove them, actually yes it may be too much looping on all geometries

  • RQ9 / RQ10: do we really need this? I don't think so. We're just doing a sequential read of the DB, we will never use the spatial index

agree, going to remove it

from geonode-importer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.