[OpenLayers-Dev] Ordnance Survey OpenSpace using OpenLayers

Rosario Carbone Rosario.Carbone at ipl.com
Mon Dec 17 10:18:30 EST 2007


Christopher Schmidt-4 wrote:
>> 
>> Anyway it would be great if all the adding done by OpenSpace would be

>> supported by OL already. I tried to read some Ordnance Survey GML
with 
>> OL GML layers and I failed I think because OS developed an extra 
>> layers of the OGC standard GML schemas which I don't think is 
>> supported by OL, right?

> Doubtful. I'd be interested in seeing any GML that the convert-data
demo above can't handle posted to the mailing list.

Hi
I don't know if I explained well what I was doing regarding the Ordnance
Survey's GML. It is not easy to get some test GML from OS, I found some
on the web somewhere, I don't remember where. I am attaching you a copy,
I don't know if it is a valid one but I suspect so.
I cannot parse the file with GMLParser.html and I also cannot see
anything with gml-layer.html in your examples. I haven't been into the
details of your parser but I suspect this format is not handled.

I think the reason is that the OS'gml is not properly OGC compliant. I
think the problem might have something to do with the schema files.
Their XML schemas chain is: W3C x... Namespace, the next schema in the
chain are in the Open Geospatial gml namespace and the final schema in
the chain are in the Ordnance Survey osgb namespace. 

[http://www.ordnancesurvey.co.uk/oswebsite/xml/schema/index.html].

In order to use the 'localised' schema files you will probably need to
change the path for the location of the OSDNFFeatures.xsd in the GML
file header. For example, if the attached schema files were saved in
"c:/temp/new_schemas" the xsi:schemaLocation would be changed from
xsi:schemaLocation='http://www.ordnancesurvey.co.uk/xml/namespaces/osgb
http://www.ordnancesurvey.co.uk/xml/schema/v4/OSDNFFeatures.xsd' to
xsi:schemaLocation='http://www.ordnancesurvey.co.uk/xml/namespaces/osgb
c:/temp/new_schemas/OSDNFFeatures.xsd'.

Kind Regards
Rosario


The information transmitted is intended only for the person
or entity to which it is addressed and may contain
confidential and/or privileged material. If you are not the
addressee, any disclosure, reproduction, copying,
distribution, or other dissemination or use of this
communication is strictly prohibited. If you have received
this transmission in error please notify the sender
immediately and then delete this email.

Any representations or commitments expressed in this email
are subject to contract.

This message has been scanned for viruses and dangerous
content. However, it is essential that the recipient also
checks this message using commercially available mail
scanning and anti-virus software. IPL Information Processing
Limited accepts no liability for any loss or damage resulting
from any virus or other dangerous content in this message.

IPL Information Processing Limited is registered in England
and Wales under company registration number 1418818.
Registration took place at Cardiff on 10 May 1979. IPL
Information Processing Limited's registered office and
normal place of business is Eveleigh House, Grove Street,
Bath, BA1 5LR, United Kingdom. IPL is also registered for
Value Added Tax (VAT) under registration number GB 601 2931 83.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OrdSurExample.xml
Type: text/xml
Size: 6507 bytes
Desc: OrdSurExample.xml
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20071217/a2c49f91/OrdSurExample.xml


More information about the Dev mailing list