[OpenLayers-Users] setting WKT returned from postGIS in form fieldto openlayers feature

Lehtonen, Mika mika at digikartta.net
Sun Nov 2 15:11:43 EST 2008


Hi Robert,

I may be wrong, but doesn't proj4js.code have a libPath setting which 
also defines where the defs can be found. So if you don't change it or 
put your defs where they should be, they can't be found.

- mika -

Burgholzer,Robert kirjoitti:
>
>           // I think the following projections should be set up 
> automagically, but my installation does not seem to work without 
> explicitly defining them here
>
>           Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 
> +datum=WGS84 +no_defs";
>
>           Proj4js.defs["EPSG:900913"] = "+proj=merc +a=6378137 
> +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m 
> +nadgrids=@null +no_defs";
>
>  
>




More information about the Users mailing list