[Gdal-dev] UK OS Mastermap GML

Roger James rogerjames99 at btinternet.com
Sat May 3 07:40:32 EDT 2003


Frank,

 

I have been looking at getting ogr to read the new UK OS Mastermap GML
formats. The current gml reader cannot do this because is does not
recognise the OS derived schema. I noticed from some earlier posting you
has been doing something in the gml schema area (you mention an
XSISCHEMA schema option), however, this appears to be output only, and I
cannot find any reference to it in the current source!

 

Before I start hacking away at this, are you (or anyone else) doing
anything in this area.

 

For info here is a snippet from a Mastermap file (I hope the OS don't
sue me!).

 

<?xml version='1.0' encoding='UTF-8'?>

<osgb:FeatureCollection

xmlns:osgb='http://www.ordnancesurvey.co.uk/xml/namespaces/osgb'

xmlns:gml='http://www.opengis.net/gml'

xmlns:xlink='http://www.w3.org/1999/xlink'

xmlns:xsi='http://www.w3.org/2000/10/XMLSchema-instance'

xsi:schemaLocation='http://www.ordnancesurvey.co.uk/xml/namespaces/osgb
http://www.ordnancesurvey.co.uk/xml/schema/v2/OSDNFFeatures.xsd'

fid='GDS-2085-1'>

<gml:description>Ordnance Survey, (c) Crown Copyright. All rights
reserved, 2003-03-13</gml:description>

<gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy>

<osgb:queryTime>2003-03-13T13:22:16</osgb:queryTime>

<osgb:queryExtent>

<gml:Polygon srsName='osgb:BNG'>

<gml:outerBoundaryIs>

<gml:LinearRing>

<gml:coordinates>stuff deleted</gml:coordinates>

</gml:LinearRing>

</gml:outerBoundaryIs>

</gml:Polygon>

</osgb:queryExtent>

<osgb:topographicMember>

<osgb:TopographicPoint fid='osgb1000001116199139'>

<osgb:featureCode>10197</osgb:featureCode>

<osgb:version>1</osgb:version>

<osgb:versionDate>2001-11-09</osgb:versionDate>

<osgb:theme>Terrain And Height</osgb:theme>

<osgb:accuracyOfPosition>Unknown</osgb:accuracyOfPosition>

<osgb:changeHistory>

<osgb:changeDate>1992-06-01</osgb:changeDate>

<osgb:reasonForChange>New</osgb:reasonForChange>

</osgb:changeHistory>

<osgb:descriptiveGroup>Terrain And Height</osgb:descriptiveGroup>

<osgb:descriptiveTerm>Spot Height</osgb:descriptiveTerm>

<osgb:heightAboveDatum>

<osgb:heightAboveDatum>41.5</osgb:heightAboveDatum>

<osgb:accuracyOfHeightAboveDatum>2.5m</osgb:accuracyOfHeightAboveDatum>

</osgb:heightAboveDatum>

<osgb:physicalLevel>50</osgb:physicalLevel>

<osgb:point>

<gml:Point
srsName='osgb:BNG'><gml:coordinates>347297.300,465584.000</gml:coordinat
es></gml:Point>

</osgb:point>

</osgb:TopographicPoint>

</osgb:topographicMember>

 

I was thinking that a quick hack would be to just change some of the
built in schema strings that you scan for.  But that seems very ugly.

 

Roger

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20030503/8deb24db/attachment.html


More information about the Gdal-dev mailing list