Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] GML loading - null pointer

At 17:40 05/09/2007, Jody Garnett wrote:
I think it is something stupid like if your file is foo.xml it will look for foo.xsd.

I tried a bit of that, but no good either. The .gml file references a particular .xsd name (OSDNFFeatures.xsd) which is there in the directory:

<?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/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.ordnancesurvey.co.uk/xml/namespaces/osgb http://www.ordnancesurvey.co.uk/xml/schema/v4/OSDNFFeatures.xsd'
fid='GDS-12362-3'>
<gml:description>Ordnance Survey, (c) Crown Copyright. All rights reserved, 2005-04-19</gml:description>
<gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy>
<osgb:queryTime>2005-04-19T15:12:22</osgb:queryTime>
<osgb:queryExtent>
<gml:Polygon srsName='osgb:BNG'>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>524593.170,182000.000 528000.000,182000.000 528000.000,183754.920 ...

There is a new GML parser available that can handle GML2 and GML3 - but we need a volunteer to wrap it up in DataStore clothing.

Ah, I think OS data is supplied in GML 2.1.2 (see http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/information/technical/gml2.html for details). So this means I've got no chance with the existing data store?

cheers,

Vince.



Back to the top