mreutegg / laszip4j

The LASzip library ported to Java
GNU Lesser General Public License v2.1
34 stars 15 forks source link

Invalid method used in LASPoint::isKeyPoint #89

Closed jandam closed 10 months ago

jandam commented 11 months ago

https://github.com/mreutegg/laszip4j/blob/9704e9d56e175d7966c137c87bdc6155ce9a98f9/src/main/java/com/github/mreutegg/laszip4j/LASPoint.java#L105

Correct implementation should use LASpoint::getKeypoint_flag instead of LASpoint::getSynthetic_flag

public boolean isKeyPoint() {
    return p.getKeypoint_flag() == 1;
}
mreutegg commented 10 months ago

Thank you for reporting.

This is fixed with https://github.com/mreutegg/laszip4j/pull/94