Opened 11 years ago

Last modified 5 years ago

#5162 closed defect

S57 Driver fails to apply updates to Polygons and breaks them — at Initial Version

Reported by: boatbeacon Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: OGR_SF Version: 1.10.0
Severity: normal Keywords: S57, Update records, Polygon
Cc: Kurt Schwehr

Description

We are getting Polygon assembly failures when reading US NOAA S57 data with ogr2ogr This results in depth areas amongst other polygon objects not drawing correctly. The failure only occurs when the ENC updates (e.g. .001,002 files etc.) are applied - the base cell converts correctly on its own.

Example command to reproduce the problem:- ogr2ogr -f KML output3.kml US3CA14M/US3CA14M.000 DEPARE -where "lnam='02261193EB3A0A3B'"

I have attached two kml files, output0.kml which is the kml produced when only the base cell (.000) is converted. output4.kml is the broken polygon output when all 4 updates have been applied. I have also attached a gzipped tar of the US3CA14M S57 ENC Cell.

The error/warning output from the command is:-

Warning 1: Can't find RCNM=130,RCID=2557 for delete.

Warning 1: Can't find RCNM=130,RCID=2558 for delete.

Warning 1: Can't find RCNM=130,RCID=2563 for delete.

Warning 1: Can't find RCNM=130,RCID=2572 for delete.

Warning 1: Can't find RCNM=100,RCID=1217 for delete.

Warning 1: Can't find RCNM=110,RCID=1406 for delete.

Warning 1: Couldn't find spatial record 2688. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2585. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2523. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2654. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2986. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 3109. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 3004. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2820. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2843. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Polygon assembly has failed for feature FIDN=294906682,FIDS=2619. Geometry may be missing or incomplete. Warning 1: Couldn't find spatial record 2585. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2688. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Polygon assembly has failed for feature FIDN=295168262,FIDS=2602. Geometry may be missing or incomplete. [esteve@ip-10-212-126-141 ENC_ROOT]$ ogr2ogr --version GDAL 1.10.0, released 2013/04/24 [esteve@ip-10-212-126-141 ENC_ROOT]$ ogr2ogr -f KML output3.kml US3CA14M/US3CA14M.000 DEPARE -where "lnam='02261193EB3A0A3B'" Warning 1: Can't find RCNM=130,RCID=2557 for delete.

Warning 1: Can't find RCNM=130,RCID=2558 for delete.

Warning 1: Can't find RCNM=130,RCID=2563 for delete.

Warning 1: Can't find RCNM=130,RCID=2572 for delete.

Warning 1: Can't find RCNM=100,RCID=1217 for delete.

Warning 1: Can't find RCNM=110,RCID=1406 for delete.

Warning 1: Couldn't find spatial record 2688. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2585. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2523. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2654. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2986. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 3109. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 3004. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2820. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2843. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Polygon assembly has failed for feature FIDN=294906682,FIDS=2619. Geometry may be missing or incomplete. Warning 1: Couldn't find spatial record 2585. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Couldn't find spatial record 2688. Feature OBJL=DEPARE, RCID=0 may have corrupt ormissing geometry. Warning 1: Polygon assembly has failed for feature FIDN=295168262,FIDS=2602. Geometry may be missing or incomplete.

Change History (2)

by boatbeacon, 11 years ago

Attachment: output0.kml added

Corrrect conversion using .000 data file only

by boatbeacon, 11 years ago

Attachment: output4.kml added

Corrupted polygon when S57 updates applied

Note: See TracTickets for help on using tickets.