Skip to main content
Solved

PointOnRasterValueExtractor vs Point Shapefile


wolters
Contributor
Forum|alt.badge.img+6

I want to know the value of a raster at specific points using the Point on RasterValueExtractor. Inputs are a raster and a point geometry shapefile (generated in another FME workspace).

I simply connect the raster and point shapefile in the PointOnRasterValueExtractor (they have the same coordinate system), where they should be connected. Yet it gives the following error:

PointOnRasterValueExtractor_2(VectorOnRasterOverlayFactory): Invalid point feature or feature with non-point geometry encountered. Only vector features with point geometry are currently supported

Are point shapefiles not supported? Do I need to transform my point shapefile in some way before using it for the RasterValueExtractor?

Best answer by takashi

Possibly the Shapefile type is MultiPoint. Firstly send the point features to FME Data Inspector and see the geometry type with the Feature Information window. If "IFMEMultiPoint" appears there, try using the Deaggregator to convert the MultiPoint geometries to Point geometries.

View original
Did this help you find an answer to your question?

3 replies

david_r
Celebrity
  • March 9, 2018

Sounds like there's something strange going on with your shape file.

Consider sending your shape point data to the Inspector and see that they are in fact proper point features.


takashi
Evangelist
  • Best Answer
  • March 9, 2018

Possibly the Shapefile type is MultiPoint. Firstly send the point features to FME Data Inspector and see the geometry type with the Feature Information window. If "IFMEMultiPoint" appears there, try using the Deaggregator to convert the MultiPoint geometries to Point geometries.


wolters
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 9, 2018
takashi wrote:

Possibly the Shapefile type is MultiPoint. Firstly send the point features to FME Data Inspector and see the geometry type with the Feature Information window. If "IFMEMultiPoint" appears there, try using the Deaggregator to convert the MultiPoint geometries to Point geometries.

I compare my original points to several different polygons before aggregating them together and then getting the result (or I will have total points = original points * layers I compare them to). Putting the PointOnRasterValueExtractor before the comparison fixes the problem. But it requires an additional Attributecreator because otherwise the data won't be exported to a shapefile as a column can't be called "_band{0}.value". It seems weird to me that you can't automatically do it like in the RasterToPolygonCoercer, where you name the column yourself (default being _label).

Reply


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