<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <font face="Times New Roman, Times, serif">(Sorry for crossposting
      to the PROJ list, but this has been a problem for years going)<br>
      <br>
      Yes, the transformation to WGS84 for the Dutch coordinate system
      ("Amersfoort", "Rijksdriehoeksnet) is still *not* part of the
      latest PROJ4 release (4.7.0, downloaded yesterday). You need to
      change the formula for epsg:28992 in PROJ's epsg table and in
      PosGIS's "spatial_ref_sys" table, like Milo describes, else your
      maps will be about 100 meters off. You can read an extensive
      discussion about this, including an Excel spreadsheet to compute
      the towgs84 parameters from the official EPSG database at:<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/geotiff/ticket/22">http://trac.osgeo.org/geotiff/ticket/22</a><br>
      <br>
      PROJ gets its parameters from EPSG, but somehow it still doesn't
      manage to include the WGS84 transform.<br>
      <br>
      Vriendelijke groeten,<br>
      <br>
      Jan<br>
      <br>
      <br>
    </font><br>
    On 01/07/11 15:22, Milo van der Linden wrote:
    <blockquote
      cite="mid:AANLkTi=PcskVh3svFYM4WWNvJFQR+-mCQd5NZqAhrp7k@mail.gmail.com"
      type="cite">Funny,<br>
      <br>
      Everytime I read "projection problems" on this list I think: Hey,
      this might be someone from the Netherlands.<br>
      <br>
      <br>
      You mean you would really like to have your bedrijventerreinen
      like this?<br>
      <br>
      <a moz-do-not-send="true"
        href="http://www.locatiemonitor.nl/LocationDetails2.aspx?lid=1437">http://www.locatiemonitor.nl/LocationDetails2.aspx?lid=1437</a><br>
      <br>
      (please wait for the bedrijventerreinen wms to appear)<br>
      <br>
      I created the wms service for locatiemonitor and as I can see, we
      are "fishing in the same vijver"<br>
      <br>
      Please read my blog post at <a moz-do-not-send="true"
href="http://blog.dogodigi.net/2010/08/19/dutch-coordinate-system-ellipsoid-correction/">http://blog.dogodigi.net/2010/08/19/dutch-coordinate-system-ellipsoid-correction/</a><br>
      <br>
      And write a small thank you comment if it helped you solve your
      issue<br>
      <br>
      ;-)<br>
      <br>
      Kind regards,<br>
      <br>
      Milo van der Linden<br>
      <br>
      <div class="gmail_quote">2011/1/7 basvmrs <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:bas@cipix.nl">bas@cipix.nl</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          Hi,<br>
          <br>
          I've created a map server in which I try to output data that
          was entered<br>
          using Google Maps V2 (drawing polygons). I used openlayers to
          display the<br>
          results over a Bing layer.<br>
          <br>
          There seems to be a problem in the projection, which is best
          described using<br>
          an image and a link:<br>
          <br>
          <a moz-do-not-send="true"
            href="http://bir.cipixtest.nl/resources/gis/demo.html"
            target="_blank">http://bir.cipixtest.nl/resources/gis/demo.html</a>
          Demo<br>
          <a moz-do-not-send="true"
            href="http://osgeo-org.1803224.n2.nabble.com/file/n5898717/forum.png"
            target="_blank">http://osgeo-org.1803224.n2.nabble.com/file/n5898717/forum.png</a><br>
          <br>
          Notice how the areas seem to 'shift' when zooming in.<br>
          <br>
          My mapfile looks like this:<br>
          <br>
          <br>
          #<br>
          # Start of map file<br>
          #<br>
          MAP<br>
                 NAME BIR<br>
                 STATUS ON<br>
                 SIZE 600 600<br>
                 EXTENT 4.4 51.85 4.6 51.95<br>
                 UNITS METERS<br>
          <br>
                 IMAGETYPE PNG<br>
          <br>
                 PROJECTION<br>
                         "init=epsg:900913"<br>
                 END<br>
          <br>
                 TRANSPARENT ON<br>
          <br>
                 LAYER<br>
                         NAME bedrijventerreinen<br>
                         TYPE POLYGON<br>
                         STATUS DEFAULT<br>
                         CONNECTIONTYPE OGR<br>
                         CONNECTION
          "MySQL:bir,host=XXXXX,user=XXXXX,password=XXXXXXX,port=3306"<br>
                         DATA "SELECT * from gis_object"<br>
                         DUMP TRUE<br>
                         CLASS<br>
                                 NAME 'Bedrijventerreinen'<br>
                                 STYLE<br>
                                         OUTLINECOLOR 0 0 0<br>
                                         COLOR 200 200 200<br>
                                 END<br>
                         END<br>
                         TEMPLATE "object.html"<br>
          <br>
                         METADATA<br>
                                 gml_include_items "all"<br>
                                 WMS_TITLE "Bedrijventerreinen"<br>
                                 WMS_ABSTRACT "Bedrijventerreinen in de
          Regio Rotterdam; de gebieden zijn<br>
          een benadering en er kunnen geen rechten aan worden ontleend."<br>
                                 WMS_SRS "EPSG:28992 EPSG:900913
          EPSG:4326"<br>
                         END<br>
                 END<br>
          <br>
          END # Map File<br>
          <br>
          I don't have a clue why this is happening. I hope that someone
          can explain<br>
          to me why this is happening and how to fix it.<br>
          <br>
          Kind regards,<br>
          Bas<br>
          <font color="#888888">--<br>
            View this message in context: <a moz-do-not-send="true"
href="http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5898717.html"
              target="_blank">http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5898717.html</a><br>
            Sent from the Mapserver - User mailing list archive at
            Nabble.com.<br>
            _______________________________________________<br>
            mapserver-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"
              target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
          </font></blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
    </blockquote>
  </body>
</html>