[pdal] help - Compilation success :)
Howard Butler
hobu.inc at gmail.com
Wed Jan 11 11:41:22 EST 2012
Right now you have to create a dummy pipeline and add your filters to it to get a real instance and then do getDefaultOptions.
How can we make this better? Some sort of StageRegistry?
On Jan 6, 2012, at 11:40 PM, Michael P. Gerlek wrote:
> I'm no longer sure. It's a good question, though -- one that we've thought about. Howard?
>
> (For what it's worth, I hope that in a month from now we'll have some good tutorial/examples in the docs for this sort of thing.)
>
> -mpg
>
>
>> -----Original Message-----
>> From: pdal-bounces at lists.osgeo.org [mailto:pdal-bounces at lists.osgeo.org] On Behalf Of Jérôme Chatillon
>> Sent: Friday, January 06, 2012 3:32 AM
>> To: pdal at lists.osgeo.org
>> Subject: [pdal] help - Compilation success :)
>>
>> About my first question (few minutes ago):
>>
>> First question (maybe stupid): how can I know I get the options of a pdal::filter without using it ? Because I need:
>> - pdal::Stage& prevStage (but I don't have one)
>> - pdal::Option& options (this I can create an empty one)
>>
>>
>> --> Actualy, a pdal::filter as static functions s_getName() and s_getDescription() (automaticly implemented by
>> SET_STAGE_NAME(name, description) ). So i get easily get the name and the description without instance of the class. About the
>> default options i found this in StageBase.hpp:
>>
>> /// Everyone must implement this. If you want to access the list of
>> /// options "statically", you are free to construct the stage with no
>> /// arguments and cal getDefaultOptions() on it -- there is no need
>> /// to call initialize(), so it should be a fast/safe operation.
>> ///
>> /// @return The default options.
>> virtual const Options getDefaultOptions() const = 0;
>>
>> So it's a virtual, not static. I tried : pdal::filters::Attribute::Attribute().getDefaultOptions(); but of course it's not correct :P
>>
>> So how to get the default option withou filter instance ?
>>
>> Thanks
>>
>> Jérôme Chatillon
>>
>> TerraImaging
>> Groenewoudsedijk 40
>> 3528 BK Utrecht
>> The Netherlands
>>
>> tel: +31 (0)30-686 616 7
>> fax: +31 (0)30-686 616 6
>> email: j.chatillon at terraimaging.nl
>> skype: terraimaging_jchatillon
>>
>>
>> De : Jérôme Chatillon
>> Date d'envoi : vendredi 6 janvier 2012 11:44
>> À : pdal at lists.osgeo.org
>> Objet : help - Compilation success :)
>>
>>
>> Hi,
>>
>> I compiled PDAL from source, and start to 'play' with in my Qt project.
>>
>> My first goals are:
>> - learn pipeline/stage using sources
>> - create my own filter(s)
>>
>> First question (maybe stupid): how can I know I get the options of a pdal::filter without using it ? Because I need:
>> - pdal::Stage& prevStage (but I don't have one)
>> - pdal::Option& options (this I can create an empty one)
>>
>> Cordialement,
>>
>> Jérôme Chatillon
>>
>> TerraImaging
>> Groenewoudsedijk 40
>> 3528 BK Utrecht
>> The Netherlands
>>
>> tel: +31 (0)30-686 616 7
>> fax: +31 (0)30-686 616 6
>> email: j.chatillon at terraimaging.nl
>> skype: terraimaging_jchatillon
>> _______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/pdal
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal
More information about the pdal
mailing list