i wanted to give the otbtf (https://github.com/remicres/otbtf or https://mdl4eo.irstea.fr/2019/01/04/an-introduction-to-deep-learning-on-remote-sensing-images-tutorial/ ) a try, and build the docker image as described in the first link.
It worked well, TF and OTB built, and i tried to execute this Command in a created Container:
otbuser@a7d2ca73f76b:~$ otbcli_PolygonClassStatistics -vec /data/sub.shp -field class -in /data/My_used_image.tif -out vec_stats.xml
and i got following output:
2019-07-26 09:41:09 (INFO) PolygonClassStatistics: Default RAM limit for OTB is 512 MB
2019-07-26 09:41:09 (INFO) PolygonClassStatistics: GDAL maximum cache size is 1251 MB
2019-07-26 09:41:09 (INFO) PolygonClassStatistics: OTB will use at most 4 threads
2019-07-26 09:41:09 (INFO) PolygonClassStatistics: Elevation management: setting default height above ellipsoid to 0 meters
ERROR 1: Invalid index : 485381264
2019-07-26 09:41:09 (INFO): Estimated memory for full processing: 21.7798MB (avail.: 512 MB), optimal image partitioning: 1 blocks
2019-07-26 09:41:09 (INFO): Estimation will be performed in 1 blocks of 1060x678 pixels
/work/otb/superbuild_install/bin/otbApplicationLauncherCommandLine: symbol lookup error: /work/otb/superbuild_install/bin/…/lib/otb/applications/otbapp_PolygonClassStatistics.so: undefined symbol: ZN12OGRFieldDefnC1EPS
Do you have an idea, what went wrong here ?
the Input image is a VHR image, the vector file are polygons with a field “class” containing the class of the polygons.
thanks and best regards