Skip to content
Snippets Groups Projects
Commit 802c9ba9 authored by Pierrick Koch's avatar Pierrick Koch
Browse files

[wip/gladys] patch python bindings

parent d84ac8aa
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ CATEGORIES= mapping
MASTER_SITES= ${MASTER_SITE_OPENROBOTS:=${NAME}/}
MASTER_REPOSITORY= ${MASTER_REPOSITORY_OPENROBOTS_TRAC}${NAME}
PKGREVISION= 1
MAINTAINER= pierrick.koch@laas.fr
COMMENT= The Graph Library for Autonomous and DYnamic Systems
LICENSE= 2-clause-bsd
......
SHA1 (gladys-0.2.3.tar.gz) = db3a5b092825c2890b1593d94f20095a54aad904
RMD160 (gladys-0.2.3.tar.gz) = f90a2243fb234f30fde6562221307d55e1190295
Size (gladys-0.2.3.tar.gz) = 41675 bytes
SHA1 (patch-aa) = a6757ecc7ce27c4bc86ecb9c1fcf9ce8488d090f
diff --git python/gladys_python.cpp python/gladys_python.cpp
index 5725c58..1c71d61 100644
--- python/gladys_python.cpp
+++ python/gladys_python.cpp
@@ -69,7 +69,7 @@ static bpy::list py_get_band(gdalwrap::gdal& self, const std::string& name) {
}
static bpy::list py_get_band_as_uchar(gdalwrap::gdal& self, const std::string& name) {
- return std_vector_to_py_list(gdalwrap::vfloat2vuchar(self.get_band(name)));
+ return std_vector_to_py_list(gdalwrap::raster2bytes(self.get_band(name)));
}
static bpy::dict py_get_bands(gdalwrap::gdal& self) {
@@ -83,7 +83,7 @@ static bpy::dict py_get_bands_as_uchar(gdalwrap::gdal& self) {
bpy::dict retval;
for (size_t idx = 0; idx < self.bands.size(); idx++)
retval[ self.names[idx] ] = std_vector_to_py_list(
- gdalwrap::vfloat2vuchar( self.bands[idx] ) );
+ gdalwrap::raster2bytes( self.bands[idx] ) );
return retval;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment