Opened 15 years ago

Closed 9 years ago

#2868 closed defect (fixed)

ogr2ogr, shp > KML: 1 more schema validation error

Reported by: peifer Owned by: condit
Priority: low Milestone:
Component: OGR_SF Version: 1.6.0
Severity: minor Keywords:
Cc: warmerdam

Description

Here a further minor schema vaidation error, just in case you have some time to take care...

cdr_177.kml:4: element Schema: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Schema', attribute 'id': '167_Myvatn' is not a valid value of the atomic type 'xs:ID'.
cdr_177.kml fails to validate

cdr_178.kml:4: element Schema: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Schema', attribute 'id': '460_thjorsarver' is not a valid value of the atomic type 'xs:ID'.
cdr_178.kml fails to validate

cdr_179.kml:4: element Schema: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Schema', attribute 'id': '854_Grunnafjordur' is not a valid value of the atomic type 'xs:ID'.
cdr_179.kml fails to validate

Change History (6)

comment:1 by warmerdam, 15 years ago

Cc: warmerdam added
Owner: changed from warmerdam to condit

comment:2 by peifer, 15 years ago

Here just a few more schema validation errors, from my bulk testing:

a) Shape_Area has more digits than are allowed ('19')

map-range-spec-limoniscus-violaceus..gml:22: element Shape_Area: Schemas validity error : Element '{http://ogr.maptools.org/}Shape_Area': [facet 'totalDigits'] The value '205995642.86700001359' has more digits than are allowed ('19').
map-range-spec-limoniscus-violaceus..gml:22: element Shape_Area: Schemas validity error : Element '{http://ogr.maptools.org/}Shape_Area': '205995642.86700001359' is not a valid value of the local atomic type.

b) leading digits in element names are not stripped

map-distribution-2110..gml:82: namespace error : Failed to parse QName 'ogr:'
  <ogr:2110>2.00000000000</ogr:2110>


map-distribution-spec-castor-fiber..xsd:48: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element', attribute 'name': '2000' is not a valid value of the atomic type 'xs:NCName'.

map-favourable-range-spec-coregonus-autumnalis..gml:429: namespace error : Failed to parse QName 'ogr:'
  <ogr:1K_GRID_ID>126196</ogr:1K_GRID_ID>

Other schema errors detected during bulk testing relate to the already reported error types:

comment:3 by Jukka Rahkonen, 9 years ago

Perhaps these schema errors have been corrected later, GDAL having a badge: "OGC KML 2.2.0 (Official Reference Implementation)"

http://www.opengeospatial.org/resource/products/details/?pid=1218

comment:4 by Even Rouault, 9 years ago

Not sure that it has fixed all issues ("Official Reference Implementation" is very different from "bug-free implementation"), and difficult to tell without input data and/or output data and/or instruction how to generate them. And I'm not sure why I see "gml" strings appear in a kml ticket.

in reply to:  4 comment:5 by peifer, 9 years ago

Replying to rouault:

And I'm not sure why I see "gml" strings appear in a kml ticket.

I can't remember either. Thanks to jratike80 and you for looking after some of my old tickets, which have been collecting dust for quite a while. I guess the the best would be to close this ticket, rather than trying to find out what the exact issue was when I opened the ticket, 6 years ago.

comment:6 by Jukka Rahkonen, 9 years ago

Resolution: fixed
Status: newclosed

Thanks. Closing as, let's say, fixed.

Note: See TracTickets for help on using tickets.