<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Looks to me like the ERMapper ERS driver has a bug, using the
      bottom left corner to georef the raster, instead of top left. I
      can only use it if I use local coordinates, any negative northings
      are plotted towards the north. ERS is the main raster format I
      use.</p>
    <p>I am happy to assist in sorting out the ERS format if the person
      behind it is willing to have a look at it.<br>
    </p>
    <p>Thanks,</p>
    <p>Ron<br>
    </p>
    <div class="moz-cite-prefix">On 17/02/2021 4:55 pm, Ron Palmer
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1e6573b4-e303-7b20-3cac-e1681c6ea6f6@pgcgroup.com.au">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>I am having issues with outputting ers raster file from
        gdal_grid. I import a csv as shape, then grid it and output as
        ers. The Y coords are all negative as it is in fact a section I
        simply grid as a 2D raster. Although the shape file plots as I
        expect it, the ers is flipped upside-down, and hung at the
        lowest Y value. Please note, if I use GS7BG it works fine.<br>
      </p>
      <p>How do I get an ERS output that matches the shape file/data
        points?</p>
      <p>I have created a simple example... however, I am new to GDAL,
        and this is my first post, so please let me know if there is
        anything else I should provide.</p>
      <p>Thanks</p>
      <p>Ron<br>
      </p>
      <p><br>
      </p>
      <p>These are the commands:</p>
      <p>  711  ogr2ogr -f "ESRI Shapefile" xc_zc.shp new.csv -oo
        X_POSSIBLE_NAMES=xc -oo Y_POSSIBLE_NAMES=zc<br>
          712  gdal_grid -zfield Value -a linear:radius=5 xc_zc.shp -of
        ERS xc_zc.ers<br>
      </p>
      <p>here is the content of the data</p>
      <p>xc,zc,Value<br>
        1.25,-0.625,5<br>
        3.75,-0.625,5<br>
        6.25,-0.625,5<br>
        8.75,-0.625,5<br>
        11.25,-0.625,5<br>
        1.25,-1.938,4<br>
        3.75,-1.938,4<br>
        6.25,-1.938,4<br>
        8.75,-1.938,4<br>
        11.25,-1.938,4<br>
        1.25,-3.381,3<br>
        3.75,-3.381,3<br>
        6.25,-3.381,3<br>
        8.75,-3.381,3<br>
        11.25,-3.381,3<br>
        1.25,-4.969,2<br>
        3.75,-4.969,2<br>
        6.25,-4.969,2<br>
        8.75,-4.969,2<br>
        11.25,-4.969,2<br>
        1.25,-6.716,1<br>
        3.75,-6.716,1<br>
        6.25,-6.716,1<br>
        8.75,-6.716,1<br>
        11.25,-6.716,1<br>
      </p>
      <p>I have attached a jpg of my output (not sure whether the
        mailing list allows attachments...)<br>
      </p>
      <div class="moz-signature"><br>
      </div>
      <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
        <table style="border-top: 1px solid #D3D4DE;">
          <tbody>
            <tr>
              <td style="width: 55px; padding-top: 13px;"><a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
                  target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
                    alt="" style="width: 46px; height: 29px;"
                    moz-do-not-send="true" width="46" height="29"></a></td>
              <td style="width: 470px; padding-top: 12px; color:
                #41424e; font-size: 13px; font-family: Arial, Helvetica,
                sans-serif; line-height: 18px;">Virus-free. <a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
                  target="_blank" style="color: #4453ea;"
                  moz-do-not-send="true">www.avg.com</a> </td>
            </tr>
          </tbody>
        </table>
        <a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
          height="1" moz-do-not-send="true"> </a></div>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <meta name="generator" content="LibreOffice 5.3.4.2 (Windows)">
      <meta name="author" content="Ron Palmer">
      <meta name="CHANGEDBY" content="Ron Palmer">
      <font color="#000000"><font face="Calibri"><font style="font-size:
            11pt" size="3">
            <p style="margin-bottom: 0.2cm;line-height: 30%"><b>Ron
                Palmer</b><font style="font-size: 10pt" size="2"> MSc
                MBA</font></p>
            <font style="font-size: 10pt" size="2">
              <font style="font-size: 11pt" size="3">
                <p style="margin-bottom: 0.20cm;line-height: 30%"><font
                    color="#000000"><font face="Calibri"><font
                        style="font-size: 11pt" size="3">Principal
                        Geophysicist</font></font></font></p>
                <font color="#000000"><font face="Calibri"><font
                      style="font-size: 11pt" size="3">
                      <p style="margin-bottom: 0.20cm;line-height: 30%">0413
                        579 099  <a class="moz-txt-link-abbreviated" href="mailto:ron.palmer@pgcgroup.com.au">ron.palmer@pgcgroup.com.au</a></p>
                      <p style="margin-bottom: 0.20cm;line-height: 30%"><a
                          href="URL:www.pgcgroup.com.au">www.pgcgroup.com.au</a></p>
                      <p style="margin-bottom: 0cm;line-height: 20%"><b><i>PGC
                            Geophysics - We specialise in Electrical
                            Surveys!</i></b></p>
                      <p style="font-size:4pt"><img
                          src="http://www.pgcgroup.com.au/images/legendH3.jpg"></p>
                    </font></font></font></font></font></font></font></font></div>
  </body>
</html>