PHP mapscript

Milo van der Linden mlinden at ZEELANDNET.NL
Tue Jul 31 11:30:54 PDT 2007


(Milo Jumps up and Dances!)

Daniel,

Fabulous! That did the trick, had I known from the start I could feed it
the + delimited string, it would have saved me a lot of pain!


Gratefully yours!

(Milo takes a bow)


Daniel Morissette schreef:
> Milo van der Linden wrote:
>> Ok, let me format it differently;
>> the next string fails to construct the projection that I need. Probably
>> because towgs84= contains to much , seperators for the projection object
>> to process. Please tell me what I can do to make this work!
>>
>> $projRDpma =
>> ms_newprojectionobj("proj=sterea,lat_0=52.15616055555555,lon_0=5.38763888888889,k=0.999908,x_0=155000,y_0=463000,ellps=bessel,units=m,towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.87
>>
>> 03473836068,4.0812,no_defs");
>>
>
> The proj definition above gives me the following error:
>
> msProcessProjection(): unknown projection id
>
> After a quick check, I suspect you probably need to use proj=stere
> instead of proj=sterea as the projection name ... and then the "+"
> form of projection definition works (the comma-delimited version
> screws up the towgs params as you had expected).
>
> <?php
>
> $proj_string = "+proj=stere +lat_0=52.15616055555555
> +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000
> +ellps=bessel +units=m
> +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812
> +no_defs";
>
> // Use mapObj.getProjection() to verify that the projection is parsed
> properly
> $map = ms_newmapobj("");
> $map->setProjection($proj_string);
> echo $map->getProjection();
>
> ?>
>
> Daniel


-- 


	

Milo van der Linden
mlinden at zeelandnet.nl <mailto:mlinden at zeelandnet.nl>
milovanderlinden at gmail.com <mailto:milovanderlinden at gmail.com>
milo at 3dsite.nl <mailto:milo at 3dsite.nl>
http://www.3dsite.nl

	  	

De informatie in dit bericht reflecteerd mijn persoonlijke mening en
niet die van een bedrijf of instantie. Aan de informatie kunnen geen
rechten worden ontleend. Indien dit bericht onderdeel is van een forum,
mailing-list of community dan gelden automatisch de bijbehorende
voorwaarden.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070731/47d7f92b/attachment.htm>


More information about the MapServer-users mailing list