<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
(Milo Jumps up and Dances!)<br>
<br>
Daniel,<br>
<br>
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!<br>
<br>
<br>
Gratefully yours!<br>
<br>
(Milo takes a bow)<br>
<br>
<br>
Daniel Morissette schreef:
<blockquote cite="mid:46AF6A84.7050500@mapgears.com" type="cite">Milo
van der Linden wrote:
  <br>
  <blockquote type="cite">Ok, let me format it differently;
    <br>
the next string fails to construct the projection that I need. Probably
    <br>
because towgs84= contains to much , seperators for the projection
object
    <br>
to process. Please tell me what I can do to make this work!
    <br>
    <br>
$projRDpma =
    <br>
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
    <br>
03473836068,4.0812,no_defs");
    <br>
    <br>
  </blockquote>
  <br>
The proj definition above gives me the following error:
  <br>
  <br>
msProcessProjection(): unknown projection id
  <br>
  <br>
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).
  <br>
  <br>
&lt;?php
  <br>
  <br>
$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";
  <br>
  <br>
// Use mapObj.getProjection() to verify that the projection is parsed
properly
  <br>
$map = ms_newmapobj("");
  <br>
$map-&gt;setProjection($proj_string);
  <br>
echo $map-&gt;getProjection();
  <br>
  <br>
?&gt;
  <br>
  <br>
Daniel
  <br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title>3DSite</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
<!--
body {
        background-color: #FFFFFF;
        margin-left: 5px;
        margin-top: 5px;
        margin-right: 5px;
        margin-bottom: 5px;
}
body,td,th {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #333333;
}
.style4 {font-size: 9px; }
.style5 {font-size: 9px; color: #CCCCCC; }
-->
</style>
<meta content="MSHTML 6.00.2900.2912" name="GENERATOR">
<br>
<table border="0" cellpadding="0" cellspacing="0" width="400">
  <tbody>
    <tr>
      <td rowspan="3" align="left" height="0" valign="bottom" width="15"><br>
      </td>
      <td colspan="2" align="left" height="78" valign="top" width="0">
      <p class="style4">Milo van der Linden
      <br>
      <a href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</a><br>
      <a href="mailto:milovanderlinden@gmail.com">milovanderlinden@gmail.com</a><br>
      <a href="mailto:milo@3dsite.nl">milo@3dsite.nl</a><br>
      <a href="http://www.3dsite.nl">http://www.3dsite.nl</a><br>
      </p>
      </td>
      <td rowspan="3" align="left" height="0" valign="top" width="15">&nbsp;</td>
      <td valign="top" width="300">
      <p class="style5"><span lang="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.</span></p>
      </td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>