Select to view content in your preferred language

Converting a raster to a polygon

2695
1
01-30-2014 01:34 PM
by Anonymous User
Not applicable
Original User: Schack

I need to convert a raster into a polygon, and I ran into "Error 000863:  Invalid GP Data Type" 
After searching, I saw this solution online.
Basically I needed to convert the float raster to an integer raster.  I used the times tool to multiply my raster by 1,000,000.0 to preserve all the decimal places.  When I compare the resulting raster, it seems Arcgis has rounded the value for each pixel up by one (See the pixel values in the images below). I was hoping to preserve these exact values.  Is there another approach I can try?

[ATTACH=CONFIG]31001[/ATTACH]
[ATTACH=CONFIG]31002[/ATTACH]
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: xander_bakker

Hi Aaron,

Sorry, but I have to ask; can you justify based on your data precision to be bothered by such a small difference (0.000001 is 0.00000464%)?

If so, what you could do is to determine the center point for the polygons (calculate geometry), convert these coords to a point featureclass, use the extract values by points on the original raster (before multiplying), join the result back to the polygons and overwrite the values.

Kind regards,

Xander
0 Kudos