[OpenLayers-Users] GML2/GML3 functions no read function

Roald de Wit roald.dewit at lisasoft.com
Wed Nov 4 20:02:53 EST 2009


Hi Dave,

The OpenLayers.Format.GML [1] surely has a read method! Are you using it
the right way? It needs to be something like this (not tested):

var gmlReader = new OpenLayers.Format.GML()

or if you insist on using GML3:

var gmlReader = new OpenLayers.Format.GML.v3()

Then you do the following:

var features = gmlReader.read(data);

Regards, Roald

[1] http://dev.openlayers.org/apidocs/files/OpenLayers/Format/GML-js.html



On 05/11/09 11:43, Dave Potts wrote:
> Currently I use the object type GML to read data in to a program,  I was
> thinking about using GML2 or perhaps even a GML3 object, but it seems to
> lack a read function call.  Have I overlooked something ?
> According to the documentation
> GML2 is derrived from GML.Base,derrived from XML , OpenLayers.Format.XML
> has a write function on it, but no read.  Is this an error in the
> documentation or is there another way to read an XML tree.
>
> regards
>
>
> Dave.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


--
Roald de Wit
Software Engineer
roald.dewit at lisasoft.com

Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/



The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.



More information about the Users mailing list