geowebcache with EPSG:900913

4 messages Options
Embed this post
Permalink
Arturo Juárez Lima

geowebcache with EPSG:900913

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi, I was try use a shape from geowebcache with EPSG:900913, but always send me the shape with EPSG:4326.

this is my code:

function add_capa_own_gwc(map,etiqueta,capa,format,base,visible)  {
l1 = new OpenLayers.Layer.WMS(
                    etiqueta, "http://localhost:8080/geoserver/gwc/service/wms",
                    {layers: capa,                       
                    },{isBaseLayer: base});
l1.setVisibility(visible);
        map.addLayer(l1);
  }

could you help me??
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Dave Potts

GML2/GML3 functions no read function

Reply Threaded More More options
Print post
Permalink
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
[hidden email]
http://openlayers.org/mailman/listinfo/users
Roald de Wit-2

Re: GML2/GML3 functions no read function

Reply Threaded More More options
Print post
Permalink
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
> [hidden email]
> http://openlayers.org/mailman/listinfo/users
>


--
Roald de Wit
Software Engineer
[hidden email]

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.
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Eric Lemoine-2-2

Re: geowebcache with EPSG:900913

Reply Threaded More More options
Print post
Permalink
In reply to this post by Arturo Juárez Lima
On Thursday, November 5, 2009, Arturo Juárez Lima
<[hidden email]> wrote:

>
>
>
>
>
>
>
> Hi, I was try use a shape from geowebcache with EPSG:900913, but always send me the shape with EPSG:4326.
>
> this is my code:
>
> function add_capa_own_gwc(map,etiqueta,capa,format,base,visible)  {
> l1 = new OpenLayers.Layer.WMS(
>                     etiqueta, "http://localhost:8080/geoserver/gwc/service/wms",
>                     {layers: capa,
>                     },{isBaseLayer: base});
> l1.setVisibility(visible);
>         map.addLayer(l1);
>   }
>
> could you help me??

do you have "projection" set to "EPSG:900913" in the options passed to
the map? I'd recommend looking at the spherical-mercator.html example.

cheers,

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [hidden email]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users