[Thread Prev][Thread Next][Index]

Re: LAS::Region



John,

Looking at the cod it appears there are no public methods for LAS::Region.  This thing only has two methods so I've pasted it here for you.
 

-- Jon
 

package LAS::Region;
@LAS::Region::ISA = qw(LAS::Container);
use Carp qw(carp croak);
use LAS qw(println printlni);

##
# @private
sub _initialize {
    my $self = shift;
    my $childnodes = $self->{element}->getChildNodes;
    my $children = $self->{children};
    my $iter = new LAS::ElementIterator($childnodes);
    while($iter->hasMore){
        my $node = $iter->next;
        if ($node->getNodeName eq "range"){
            push(@{$children}, new LAS::Range($self->{config}, $node));
        } elsif ($node->getNodeName eq "point"){
            push(@{$children}, new LAS::Point($self->{config}, $node));;
        }
    }
}

##
# @private
sub print{
    my $region = shift;
    $IndentLevel++;
    my @children = $region->getChildren;
    foreach (@children){
        my $class = ref($_);
        if ($class eq "LAS::Range"){
            printlni "Range: ",$_->getLo,':',$_->getHi;
        } else {
            printlni "Point: ",$_->getLo;
        }
    }
    $IndentLevel--;
}
 
 

John C Cartwright wrote:

OK, thanks.  That's where I was looking.  LAS::Region seems to be one of
the few (or the only) class without documentation.

-- john

Jonathan Callahan wrote:
> John,
>
> Documentation for the perl modules is available from this page:
>
> http://ferret.pmel.noaa.gov/Ferret/LAS/Documentation/
>
> We don't have anything beyond what you see there.
>
>
> -- Jon
>
>
> John C Cartwright wrote:
>
>
>>Hello All,
>>
>>is there any documentation on the LAS::Region class?
>>
>>Thanks!
>>
>>-- john
>>
>>=====================================================
>>John Cartwright
>>Associate Scientist
>>Geospatial Data Services Group
>>CIRES, National Geophysical Data Center/NOAA
>>(303) 497-6284
>>John.C.Cartwright@noaa.gov
>>=====================================================
>
>

--
=====================================================
John Cartwright
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6284
John.C.Cartwright@noaa.gov
=====================================================


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement