Giter Site home page Giter Site logo

How to define the spatial data? about ipt-dcat HOT 3 CLOSED

inbo avatar inbo commented on August 17, 2024
How to define the spatial data?

from ipt-dcat.

Comments (3)

peterdesmet avatar peterdesmet commented on August 17, 2024

The current expression is just two points. It's better to express a bounding box or polygon representing the bounding box. After some discussion, @coreation noticed DCAT allows to express this information as geojson, which is widely recognized. I'll figure out the mapping.

from ipt-dcat.

peterdesmet avatar peterdesmet commented on August 17, 2024

From the polygon example:

{
  "type": "Polygon",
  "coordinates": [
    [ [minLong, minLat], [minLong, maxLat], [maxLong, maxLat], [maxLong, minLat], [minLong, minLat] ]
  ]
}

Example

  • minLat:10
  • minLong: -25
  • maxLat: 60
  • maxLong: 10
{
  "type": "Polygon",
  "coordinates": [
    [ [-25, 10], [-25, 60], [10, 60], [10, 10], [-25, 10] ]
  ]
}

You can of course express this on one line:

{ "type": "Polygon", "coordinates": [ [ [-25, 10], [-25, 60], [10, 60], [10, 10], [-25, 10] ] ] }

You can test the output in Geojsonlint.

from ipt-dcat.

peterdesmet avatar peterdesmet commented on August 17, 2024

For the catalog:spatial, we propose to also use geojson, but this time as a point:

{
    "type": "Point",
    "coordinates": [
        longitude,
        latitude
    ]
}
{ "type": "Point", "coordinates": [ 4.334187, 50.842133 ] }

from ipt-dcat.

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.