Giter Club home page Giter Club logo

Comments (2)

yohanboniface avatar yohanboniface commented on August 26, 2024

cf #1335
cf #174

from umap.

yohanboniface avatar yohanboniface commented on August 26, 2024

the umap full backup is a "collection of FeatureCollection", but this case is not handled by the GeoJSON spec AFAIK, so we "invented" a type: "umap", with a layers: [list of FeatureCollection] key; while trying to version our format, let's try to see if there is a more GeoJSON standard way of storing a list of FeatureCollection

@sgillies hey! :) To you have any advice on this specific point ?
Basically, here is how our "umap" export looks like:

{
    "type": "umap",
    "properties": {"some map": "metadata"},
    "geometry": {
        "type": "Point",
        "coordinates": ["the", "map", "default", "center"]
    },
    "layers": [
        {
            "type": "FeatureCollection",
            "_umap_options": {"some layer": "metadata"},
            "features": [{
                "properties": {"some": "props"},
                "geometry": {"some": "geom"}
            }]
        },
        {
            "type": "FeatureCollection",
            "_umap_options": {"some layer": "metadata"},
            "features": [{
                "properties": {"some": "props"},
                "geometry": {"some": "geom"}
            }]
        },
    ]
}

As you see, this mimics a sort of "Collection of collections" type as it could exist in GeoJSON, but it does not AFAIK.

My goal would be to maximise the portability of those data. Eg. someone wants to reimport uMap export in QGis, or the other way around, and retrieve as much as possible of the original structure: data are split into layers, maybe some styling are kept, etc.

Thanks in advance for your input on this :)

from umap.

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.