Ticket #44 (closed enhancement: fixed)

Opened 2 years ago

Last modified 22 months ago

geometry validation

Reported by: yassefa Owned by:
Priority: minor Version: SVN
Keywords: geometry validity Cc:
Triage Stage: Unreviewed State of Approval: Unnecessary
Attached Patches: None Complexity: Unknown
Compatibility: Unknown Specification: Unnecessary

Description

when doing for example feature insertion, there is a test done to validate the geometry according to: http://postgis.org/documentation/manual-svn/ST_IsValid.html http://postgis.org/documentation/manual-svn/ch04.html#OGC_Validity

Although I understand the need to validate geometries, It might be useful sometime to turn off the validation and allow 'invalid' features to work.

Can we consider adding a configuration option that can allow us to turn off the validation?

Note also that in the current situation (for example doing a wfs insert), when a geometry is found invalid, a record is still added to the postgres db but the geometry column is empty. Not sure if this is a desired behavior or should the transaction fail all together.

Change History

Changed 2 years ago by ol

Assefa,

Thanks for this report !

I've just done some improvements on this as r195:

- check_schema configuration parameter (to bypass libxml2 schema validation) - check_valid_geom config configuration parameter (to bypass ST_IsValid) - GML parse done by ST_GeomFromGML - And so need PostGIS 1.5.x

I still have to deal with the error handling if Geometry is not valid or not GML parsable, before closing this issue.

Changed 2 years ago by assefa

Merci Olivier

Changed 22 months ago by ol

  • status changed from new to closed
  • resolution set to fixed

Error message handling done as r203.

Note: See TracTickets for help on using tickets.