(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
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
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.

Reply via email to