Skip to main content
Question

Processing IFMEPointCloud in Python Transformer

  • March 19, 2019
  • 1 reply
  • 30 views

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

1 reply

ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • March 19, 2019

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings