<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I figured out what what happening and I will share it with you just
    in case somebody has the same issue. I realized that the format that
    I added in pointcloud_formats was not matching the format of the LAS
    files (the format I added in the table was only X,Y,Z and the LAS
    format has many more attributes). The issue if that if this happens
    the format I add is ignored and a new format which is the one in the
    LAS file is used which is fine but there is not any error or warning
    message so I had no clue that was happening. In the end I realized
    of that (I thought the LAS file only contained XYZ) and I just added
    a filter in the XML to only use XYZ. Now, the correct format is
    being used and my parameters are not ignored.<br>
    <br>
    Regards,<br>
    <br>
    O.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 30-10-13 09:12, Oscar Martinez Rubi
      wrote:<br>
    </div>
    <blockquote
      cite="mid:kud6cvlqpqremkbufcqt4wl7.1383120768723@email.android.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div><br>
      </div>
      <div>Hi,<br>
        <br>
        I am trying to load several LAS files into Postgres PointCloud
        using the PDAL pcpipeline.<br>
        <br>
        First I add the format in the table pointcloud_formats,
        basically I only have X, Y and Z, and the pcid is 1<br>
        <br>
        Then I create a table:<br>
        <br>
        CREATE TABLE patches (<br>
            id SERIAL PRIMARY KEY,<br>
            pa PCPATCH(1)<br>
        );<br>
        <br>
        And then I run a pcpipeline for each LAS file with the following
        XML (changing [input File] in each case)<br>
        <br>
        <?xml version="1.0" encoding="utf-8"?><br>
            <Pipeline version="1.0"><br>
                <Writer type="drivers.pgpointcloud.writer"><br>
                    <Option name="connection">host='localhost'
        dbname='testload' </Option><br>
                    <Option name="table">patches</Option><br>
                    <Option name="srid">7415</Option><br>
                    <Filter type="filters.chipper"><br>
                        <Option name="capacity">400</Option><br>
                        <Filter type="filters.cache"><br>
                            <Option
        name="max_cache_blocks">1</Option><br>
                            <Reader type="drivers.las.reader"><br>
                                <Option
        name="filename">[inputFile]</Option><br>
                                <Option
        name="spatialreference">EPSG:7415</Option><br>
                            </Reader><br>
                        </Filter><br>
                    </Filter><br>
                </Writer><br>
            </Pipeline><br>
        <br>
        I realized that each pcpipeline execution overwrites the patches
        table, so in the end it is like I only loaded the last LAS file.
        I have tried to use the option overwrite=false but it seems to
        be ignored. Also when I try to use a table name different than
        "patches" it is also ignored. And I also realized that
        pcpipiline also adds a format in the table pointcloud_formats
        and use this when overwriting the patches table. Also using the
        option pcid in the XML is ignored.
        <div><br>
        </div>
        <div>Is anybody else having issues when trying to load several
          LAS files?</div>
        <div><br>
        </div>
        <div>Thank you</div>
        <div><br>
        </div>
        <div>Oscar</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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="http://lists.osgeo.org/mailman/listinfo/pdal">http://lists.osgeo.org/mailman/listinfo/pdal</a></pre>
    </blockquote>
    <br>
  </body>
</html>