Code Monkey home page Code Monkey logo

Comments (5)

wavded avatar wavded commented on September 3, 2024

Interesting how the GeoJSON source has nested properties, not sure how ogr2ogr would handle that since Shapefiles are a flat tabular structure (DBF). Taking a peek and will let you know if I come up with anything.

from ogre.

wavded avatar wavded commented on September 3, 2024

Ahh yes. Since the phenomenon field is a nested structure in the JSON, ogr2ogr just flattens that out into a single column with JSON data. I don't see any options to change that behavior: http://www.gdal.org/ogr/drv_geojson.html

from ogre.

nuest avatar nuest commented on September 3, 2024

Right - thanks for checking! I'm not an expert in ogr2ogr :-). We'll take a look into the problem on our end (enviroCar/enviroCar-server#144) and see if we can change the JSON structure or if we have to implement the conversion ourselves.

Thanks for your help!

from ogre.

wavded avatar wavded commented on September 3, 2024

OK sounds good, maybe a process that flattens those field names? e.g.

"phenomenons-Speed-value": 41,
"phenomenons-Speed-unit": "km/h"

If its a common enough thing I would consider adding it to Ogre.

from ogre.

nuest avatar nuest commented on September 3, 2024

I just now found out we already have a webservice that does a conversion to shapefile (and probably manually maps the attributes), so sorry for taking your time - I'll keep this project in mind though, you never know.

I'll also bring up the topic of your attribute datamodel - seems like we're not following the usual practices here...

from ogre.

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.