in_shp = "points.shp" in_raster = "raster1.tif" ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
Haha, I just thought of a workaround and googled to see if somebody already implemented it in python. Doing this, I found this:http://support.esri.com/fr/knowledgebase/techarticles/detail/41145This doesn't seem to be exactly the same bug, but it comes pretty close and the workaround should work.
in_raster = ["raster_a.tif", "raster_b.tif", "raster_c.tif", "raster_d.tif", "raster1.tif"] ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
in_raster = "raster1.tif" ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
in_raster = "raster1.tif/Band_6" ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
I think the multiband raster may be your issue. To specify the band you want, you need to specify its full path (the syntax varies by raster data type). For example: in_shp = "points.shp" in_raster = "raster1.tif/Band_1" ExtractMultiValuesToPoints(in_shp, in_raster, "NONE") The easiest way to find path for the band you want is to browse the raster in the Catalog window.
in_shp = "points.shp" in_raster = "raster1.tif/Band_1" ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
Let's assume I have a raster "raster1.tif" (Pixel type: unsigned integer, Pixel depth: 8 bit, 6 bands) and a point shapefile "points.shp".
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.