Skip to main content
Question

Issues converting raster/geotiff cells to ESRI polygons


xanduqe
Contributor
Forum|alt.badge.img+2

Hi All -

I have been trying to convert a GeoTiff (also converted to ESRI Raster to try it too) and write to ESRI polygon feature class. I have used the steps below….. However, the translation fails and I get the following error:

“Cannot write a non-point feature to a point feature class”

There are no point features at play in any steps. RasterCellCoercer output cell geometry is set to ‘polygon’ and writer is set to polygon too. 

Does anyone know what is wrong here? Is another step in terms of geometry replacement or definition needed? 

Steps: 

  • Reader to read the GeoTiff (or Raster).
  • RasterCellCoercer to convert the rastercells to polygons.
  • AttributeCreator to convert the raster cell value to attribute. In this case _band{0}.value.
  • Relevant writer to write the result to polygon FC.

Thanks in advance! 

4 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • August 7, 2024

Have you check it with a GeometryFilter?


xanduqe
Contributor
Forum|alt.badge.img+2
  • Author
  • August 7, 2024

Thanks. Yes I did that just to confirm that these are indeed ‘Area’ features. No points or any other geometry coming out of the filter I am afraid. I also tried RasterPolygonCoercer to see if that works and I have the same issue. 

 

 


tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • August 7, 2024

Sorry, I believed you :-)

 Errormessage:

“Cannot write a non-point feature to a point feature class”

You are writing to a point feature class!


hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • August 8, 2024

As @tomfriedl mentioned, you seem to be writing a polygon to a point featureclass. Check that your writer has the correct geometry set


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