[OpenLayers-Dev] GML-like SRS labels of a WMS layer

Andreas Hocevar ahocevar at opengeo.org
Tue Jun 26 06:44:02 PDT 2012


If your map involves just that one projection, you don't need to do
anything. If other projections are involved, you should add the crs to
the list of known null transforms, e.g.

OpenLayer.Projection.addTransform('EPSG:4326',
'http://www.opengis.net/def/crs/EPSG/0/4326',
OpenLayers.Projection.nullTransform);
OpenLayer.Projection.addTransform('http://www.opengis.net/def/crs/EPSG/0/4326',
'EPSG:4326', OpenLayers.Projection.nullTransform);

Andreas.

On Thu, Jun 21, 2012 at 7:21 PM, Piero Campalani <piero.campa at gmail.com> wrote:
> Dear list,
>
> I would like to understand how OpenLayers works now when reading the SRS of
> a WMS layer.
> Is there a plan to support GML-like SRS definitions,
> eg. http://www.opengis.net/def/crs/EPSG/0/4326 ?
>
> In case, how would they be decoded?
>
> Thanks in advance.
>   Piero
>
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Dev mailing list