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

Mike Adair madair at dmsolutions.ca
Mon Nov 3 10:28:14 EST 2008


EPSG:4326 is included in Proj4js by default, EPSG:900913 isn't but I've 
just updated Proj4js to include it now, 
http://trac.osgeo.org/proj4js/ticket/20.  If you are including 
Proj4js.defs elements, make sure they are put after Proj4js.js.  There 
is a Proj4js.libPath property but it should be calculated automatically 
and not even required if you include all required Proj4js.defs using the 
script tag.

Mike

Lehtonen, Mika wrote:
> 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";
>>
>>  
>>
>>     
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>   

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca





More information about the Users mailing list