Coder Social home page Coder Social logo

Comments (3)

Wykks avatar Wykks commented on May 30, 2024

Indeed. I'm getting this

image

Using these data https://raw.githubusercontent.com/gregoiredavid/france-geojson/v2-hd-dev/departements.geojson
Imported to postgis with
ogr2ogr -f PostgreSQL PG:"host=127.0.0.1 port=9500 dbname=postgres user=postgres password=test" departements.geojson -nln depts -s_srs EPSG:4326 -t_srs EPSG:3857

Edit:
Oops, it's actually working fine with buffer_size = 1 (after reading what going on in #18)
For some reason, genconfig didnt set buffer_size = 1 for this layer.
It set geometry_type = "GEOMETRY" which doesn't works. So I changed to POLYGON but forgot to set buffer_size = 1

from t-rex.

pka avatar pka commented on May 30, 2024

@Wykks buffer_size is now also generated for type GEOMETRY (eb89553)

from t-rex.

Wykks avatar Wykks commented on May 30, 2024

Actually, I don't know what's type GEOMETRY. T-rex generate config with this, but then it doesn't know what to do with it:
Error converting between Postgres and Rust types: Unknown geometry type GEOMETRY.
It seems that t-rex is incorrectly detecting the geometry_type from postgis.
QGIS detect the geometry_type POLYGON without issue, so I think that my datasource is fine.

from t-rex.

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.