<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">You could use the OGR sql query option to wrap your geometry call in a force2d or force3d function call in PostGIS?</div> <div id="bloop_sign_1423677326988486144" class="bloop_sign">
        <title></title>
     
     
        <div>
            <br>
        </div>
        -- <br>
        Paul Ramsey<br>
        http://cleverelephant.ca<div>http://postgis.net
</div>
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "em",
  "name": "John Doe",
  "jobTitle": "Graduate research assistant",
  "affiliation": "University of Dreams",
  "additionalName": "Johnny",
  "url": "http://www.example.com",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "1234 Peach Drive",
    "addressLocality": "Wonderland",
    "addressRegion": "Georgia"
  }
}
</script>
     
</div> <br><p style="color:#000;">On February 11, 2015 at 9:54:07 AM, Duarte Carreira (<a href="mailto:dncarreira@gmail.com">dncarreira@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


<div dir="ltr">
<p class="MsoNormal">Hi there.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">I’m trying
to figure out how to read xyzm geometries from postgis with
ogr2ogr, if at all possible.</span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">I get the
usual "is not supported" error:</span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">ERROR 1:
Reading EWKB with 4-dimensional coordinates (XYZM) is not
supported</span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">But
reading old tickets I get the idea there is a way to read and just
ignore the 4<sup>th</sup> dimension, instead of getting null
geometries.</span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">For
instance:</span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US"><a href="http://trac.osgeo.org/gdal/ticket/1323">http://trac.osgeo.org/gdal/ticket/1323</a></span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">From 8
years ago(!), says:</span></p>
<p class="MsoNormal" style="margin:12pt 21pt;background:rgb(247,247,247)"><span><span lang="EN-US" xml:lang="EN-US">The problem does not occur if a layer is
accessed
using<br></span></span>OGRPGDataSource::GetLayerByname()<br>
Then, geometry is read in EWKT form and parsed correctly without
any errors but M coordinate is omitted.</p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">Can this
be done using og2ogr?</span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" xml:lang="EN-US">Thanks,</span></p>
<span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif" xml:lang="EN-US">Duarte</span><br></div>


_______________________________________________
<br>gdal-dev mailing list
<br>gdal-dev@lists.osgeo.org
<br>http://lists.osgeo.org/mailman/listinfo/gdal-dev</div></div></span></blockquote></body></html>