Giter Club home page Giter Club logo

Comments (5)

camillemonchicourt avatar camillemonchicourt commented on June 20, 2024

Un ticket similaire semble indiquer que le soucis ne vient pas du fait que cela soit un multipolygone mais du fait que la géométrie vient d'un geojson : #1335

A vérifier, tester.

from geonature.

jacquesfize avatar jacquesfize commented on June 20, 2024

Bonjour @Amegilla ,

Sur un 2.14.1 (demo.geonature.fr), aucun soucis pour enregister le lieux à partir d'un GeoJSON. Aucun changement n'a été depuis la 2.14.0 sur cette partie.

Est-ce que l'on pourrait avoir un extrait du dit fichier ?

from geonature.

camillemonchicourt avatar camillemonchicourt commented on June 20, 2024

J'ai fait des tests. L'enregistrement fonctionne, mais toujours leur utilisation et pas seulement quand ce sont des multipolygones. J'ai aussi eu le soucis avec des lignes.
Mais ça a fonctionné avec un fichier geojson contenant des points, donc à creuser.

from geonature.

Amegilla avatar Amegilla commented on June 20, 2024

Bonjour,
J'ai préparé un fichier d'exemple (geojson) mais comment le partager sur cette discussion ?

De mon coté, pour résoudre le pb (conversion de type multipolygone vers polygone), voici ce que j’exécute sur la BDD :
UPDATE gn_commons.t_places SET place_geom=ST_GeometryN(place_geom,1) WHERE place_name ilike 'test';

from geonature.

Amegilla avatar Amegilla commented on June 20, 2024

Voici le contenu du geojson :

{
"type": "FeatureCollection",
"name": "test_bug_places_occtax",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "fid": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -0.231186245280267, 43.943982435704854 ], [ -0.231220252620019, 43.943993595547667 ], [ -0.23124815174783, 43.944011538549809 ], [ -0.231267433943783, 43.94403465126156 ], [ -0.231276365323498, 43.944060855366224 ], [ -0.231274142753532, 43.944087794563259 ], [ -0.231260966074799, 43.944113046448344 ], [ -0.231238020137972, 43.944134340339161 ], [ -0.229041813553317, 43.945638701771067 ], [ -0.229012114865, 43.945653778861079 ], [ -0.228977661153237, 43.945662029724168 ], [ -0.228941378058353, 43.945662753737054 ], [ -0.228906346565074, 43.945655889420031 ], [ -0.228875541376767, 43.945642019657683 ], [ -0.228851578315147, 43.945622322202418 ], [ -0.228836492196331, 43.945598469664347 ], [ -0.227981756522201, 43.943470130519863 ], [ -0.227976852122657, 43.943443094655478 ], [ -0.22798337885392, 43.943416238442481 ], [ -0.228000737564023, 43.943392027210429 ], [ -0.228027334758806, 43.943372683483517 ], [ -0.228060728883857, 43.943359982960473 ], [ -0.228097854452982, 43.943355091511918 ], [ -0.228135303448784, 43.943358458158215 ], [ -0.231186245280267, 43.943982435704854 ] ] ] ] } }
]
}

from geonature.

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.