[OpenLayers-Users] Import kml file with polar projection

Arnd Wippermann arnd.wippermann at web.de
Mon Nov 19 13:34:28 PST 2012


This seems not to be the right way:
<script type="text/javascript"
src="/OLClient/proj4js/proj4js-compressed.js">
    Proj4js.defs["EPSG:3411"] = "+proj=stere ....... +no_defs";
</script>

Try this instead:
<script type="text/javascript"
src="/OLClient/proj4js/proj4js-compressed.js">
</script>

<script>
    Proj4js.defs["EPSG:3411"] = "+proj=stere ....... +no_defs";
</script>

example
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL212/world_3411.asp
 
Good luck
Arnd
gis.ibbeck.de


-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von pascal
Gesendet: Montag, 19. November 2012 10:55
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Import kml file with polar projection

Hi, 

First of all: sorry for my english!

I need to represent data in a polar projection and I want to use a vectorial
and not a WMS base layer in Openlayers (to be able to change the style, to
select feature...).
So i changed the projection of a shp file (= countries of the world)  and
export this file in KML. If i try to visualize the shp file with geoserver,
it works so i suppose that this file is correct.
 The problem is that i can't visualize the kml file in Open Layers.
This is my code: what's wrong?
Thanks a lot for your help!
Pascal.

html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Call polar vector</title>
        
        
        
        

    </head>
    <body onload="init()">
        <div id="map_element"></div>
    </body>
</html>



--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Import-kml-file-with-polar-projection-tp
5017311.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list