<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Quick, guess: Try swapping lon and lat in the bounds.  It might
      be expecting lat, lon to follow the canonical 4326 axis order.<br>
    </p>
    <div class="moz-cite-prefix">On 6/2/20 1:54 PM, Abhineet Gupta
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMS=QQqXSMvpQ+J5QcjaJ+jR3k-3+9TAQnuhszjFZEF_X9=5ow@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div>Hello</div>
              <div><br>
              </div>
              <div>I am trying to read in a laz file, crop the input if
                it is outside certain bounds, and write it to a postgres
                db. The reading and writing parts are working fine,
                however when using <font face="monospace">filters.crop</font>,
                I get the error - </div>
              <div><font face="monospace">PDAL: filters.crop: Unable to
                  reproject bounds.</font><br>
              </div>
              <div><br>
              </div>
              <div>I am using standard SRS, input is in EPSG:26910, and
                I am using EPSG:4326 for specifying the crop bounds. I
                think one solution will be to reproject the bound
                coordinates to EPSG:23910 outside PDAL, and specify crop
                bounds in the same SRS as the input, however, I would
                prefer to input the bounds as lat-long coordinates, if
                possible.</div>
              <div><br>
              </div>
              <div>I have copied my pipeline file below for reference.</div>
              <div><br>
              </div>
              <div>I would appreciate it if anyone has any suggestions
                about how to fix this error. </div>
              <div><br>
              </div>
              <div>Thanks</div>
              <div>Abhineet</div>
              <div><br>
              </div>
              <div><font face="monospace">######### pipeline.json <span
                    style="color:rgb(0,0,0);font-size:medium">#########</span></font></div>
              <div>
                <div><font face="monospace">{</font></div>
                <div><font face="monospace">  "pipeline":[</font></div>
                <div><font face="monospace">    {</font></div>
                <div><font face="monospace">      "type":"readers.las",</font></div>
                <div><font face="monospace">     
                    "filename":"laz/ARRA-CA_GoldenGate_2010_001019.laz",</font></div>
                <div><font face="monospace">     
                    "spatialreference":"EPSG:26910"</font></div>
                <div><font face="monospace">    },</font></div>
                <div><font face="monospace">    {</font></div>
                <div><font face="monospace">     
                    "type":"filters.chipper",</font></div>
                <div><font face="monospace">      "capacity":600</font></div>
                <div><font face="monospace">    },</font></div>
                <div><font face="monospace">    {</font></div>
                <div><font face="monospace">      "type":"filters.crop",</font></div>
                <div><font face="monospace">      "bounds":"([-122.530,
                    -122.347], [37.695, 37.816])",</font></div>
                <div><font face="monospace">      "a_srs":"EPSG:4326"</font></div>
                <div><font face="monospace">    },</font></div>
                <div><font face="monospace">    {</font></div>
                <div><font face="monospace">     
                    "type":"writers.pgpointcloud",</font></div>
                <div><font face="monospace">     
                    "connection":"host='postgres-pdal' dbname='devpt'
                    user='postgres' password='devpt_temp' port='5432'",</font></div>
                <div><font face="monospace">      "table":"temp",</font></div>
                <div><font face="monospace">     
                    "compression":"dimensional",</font></div>
                <div><font face="monospace">      "srid":"26910"</font></div>
                <div><font face="monospace">    }</font></div>
                <div><font face="monospace">  ]</font></div>
                <div><font face="monospace">}</font></div>
              </div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
pdal mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/pdal">https://lists.osgeo.org/mailman/listinfo/pdal</a></pre>
    </blockquote>
  </body>
</html>