[pdal] PdalXML style

Michael P. Gerlek mpg at flaxen.com
Mon Jul 18 19:10:34 EDT 2011


So now I'm leaning towards this:

<Writer type="drivers.las.writer">
        <Options>
                <option>
                        <name>filename</name>
                        <value>out.laz</value>
                </option>
                <compression>true</compression>
                <option>
                        <name>filename</name>
                        <value>out.laz</value>
                </option>
        </Options>
        ...

While thuddingly verbose, it allows the Options block to be read as a native
property tree (something Howard wanted/expected, but which I didn't fully
grok until now).

The syntax might evolve further if I can turn the pipeline stages into
property tree notation as well.

-mpg

> -----Original Message-----
> From: Smith, Michael ERDC-CRREL-NH
> [mailto:Michael.Smith at usace.army.mil]
> Sent: Friday, July 15, 2011 12:51 PM
> To: mpg at flaxen.com; pdal at lists.osgeo.org
> Subject: Re: [pdal] PdalXML style
> 
> I like option 1 the best but only for readability reasons.
> 
> 
> 
> On 7/15/11 12:48 PM, "Michael P. Gerlek" <mpg at flaxen.com> wrote:
> 
> >Which of these is best for representing the options block of a pipeline
> >description:
> >
> >(A) Options block is a tree of elements
> >
> ><Writer type="drivers.las.writer">
> >        <Options>
> >                <filename>out.laz</filename>
> >                <compression>true</compression>
> >        </Options>
> >        <Reader type="drivers.las.reader">
> >                <Options>
> >                        <filename>in.las</filename>
> >                </Options>
> >        </Reader>
> ></Writer>
> >
> >
> >(B) Options block is an element with attributes
> >
> ><Writer type="drivers.las.writer">
> >        <Options filename="out.laz" compression="true"/>
> >        <Reader type="drivers.las.reader">
> >                <Options filename="in.las"/>
> >                </Options>
> >        </Reader>
> ></Writer>
> >
> >
> >(C) Options block is just attributes on the stage
> >
> ><Writer type="drivers.las.writer" filename="out.laz" compression="true">
> >        <Reader type="drivers.las.reader" filename="in.las>
> >        </Reader>
> ></Writer>
> >
> >
> >-mpg
> >
> >
> >_______________________________________________
> >pdal mailing list
> >pdal at lists.osgeo.org
> >http://lists.osgeo.org/mailman/listinfo/pdal



More information about the pdal mailing list