Hi together,
I'm trying to create a transformer that processes point cloud data from a LAS file. To do so, I'm modifying the CenterOfMassCalculator_Python example.
How can I access the point cloud data? The feature.hasGeometry() attribute is true, but feature.getGeometry() returns None.
Code:
def input(self, feature):
self.logger.logMessageString("--- input() ---")
self.logger.logMessageString(" Feature type (fme): " + feature
self.logger.logMessageString(" hasGeometry (fme): " + str(feature.hasGeometry()), fmeobjects.FME_INFORM)
if feature.getGeometry() is None:
self.logger.logMessageString(" Geometry is none")
Output:
--- input() ---
Feature type (fme): LAS
hasGeometry (fme): True
Geometry is none