Message posté par : image95
----------------------------------------
Je viens de faire un test avec une nouvelle version de postgres et postgis.
-----------------
Code :
select PostGIS_Full_Version();
-----------------
-----------------
Code :
POSTGIS="3.4.0 3.4.0" [EXTENSION] PGSQL="150"
GEOS="3.12.0-CAPI-1.18.0" PROJ="8.2.1 NETWORK_ENABLED=OFF
URL_ENDPOINT=https://cdn.proj.org
USER_WRITABLE_DIRECTORY=C:\Windows\ServiceProfiles\NetworkService\AppData\Local/proj"
LIBXML="2.9.14" LIBJSON="0.12" LIBPROTOBUF="1.2.1"
WAGYU="0.5.0 (Internal)"
-----------------
Puis
c
-----------------
Code :
reate TABLE schema.resultat as
select
gid, suivi,ouvrage_type, source,code,dr,convention,
t2.parcelle, t2.section,
st_intersection(t1.geom, t2.geom ) as geom
from schema.t1
join schema.t2
on st_intersects (t1.geom,t2.geom)
-----------------
-----------------
Code :
ERROR: lwgeom_intersection_prec: GEOS Error: TopologyException: side location conflict at
875253.84683544014 6826777.4367088638. This can occur if the input geometry is invalid.
ERREUR: lwgeom_intersection_prec: GEOS Error: TopologyException: side location conflict at
875253.84683544014 6826777.4367088638. This can occur if the input geometry is invalid.
SQL state: XX000
---
update andra_humain."Cigeo_CadastreUF_Po" set geom = st_makeValid(geom)
where not st_isvalid(geom);
-----------------
Puis,
-----------------
Code :
update matable set geom = st_makeValid(geom)
where not st_isvalid(geom);
-----------------
NOTICE: Self-intersection at or near point 845991.14978354971 6839069.5350649348 NOTICE:
Self-intersection at or near point 846524.08181817865 6837960.9654545467 NOTICE:
Self-intersection at or near point 882943.5153532261 6830835.5559041062 NOTICE: Hole lies
outside shell at or near point 884955.69999999995 6831733.5999999996 NOTICE: Too few
points in geometry component at or near point 883230.09999999998 6829270.4000000004 ERROR:
Geometry type (MultiLineString) does not match column type (MultiPolygon) ERREUR: Geometry
type (MultiLineString) does not match column type (MultiPolygon) SQL state: 22023
Et ,
-----------------
Code :
select gid, suivi,ouvrage_type, source,code,dr,convention,
t2.parcelle, t2.section, st_intersection(st_reducePrecision(t1.geom, 0.01),
st_reducePrecision(t2.geom, 0.01) ) as geom
from schema.t1 join schema.t2 on st_intersects (t1.geom,t2.geom);
-----------------
-----------------
Code :
ERROR: lwgeom_reduceprecision: GEOS Error: TopologyException: unable to assign free hole
to a shell at 877338.90000000002 6835526.5 ERREUR: lwgeom_reduceprecision: GEOS Error:
TopologyException: unable to assign free hole to a shell at 877338.90000000002 6835526.5
SQL state: XX000
-----------------
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=362265#p362265
Pour y répondre : geobd(a)ml.georezo.net ou reply de votre messagerie
Pour vous désabonner connectez-vous sur le forum puis Profil / Abonnement
--
Association GeoRezo - le portail géomatique
https://georezo.net