Changes between Version 1 and Version 2 of GdalOgrInPython
- Timestamp:
- Apr 1, 2007, 1:48:42 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GdalOgrInPython
v1 v2 13 13 == Numpy / Numeric == 14 14 15 One advanced feature of the GDAL python bindings not found in the other bindings is integration with the Python numerical array facilities. The gdal.Dataset. ReadAsArray() method can be used to read raster data as numerical arrays, ready to use with the Python numerical array capabilities.15 One advanced feature of the GDAL python bindings not found in the other bindings is integration with the Python numerical array facilities. The gdal.Dataset.!ReadAsArray() method can be used to read raster data as numerical arrays, ready to use with the Python numerical array capabilities. 16 16 17 17 These facilities have evolved somewhat over time. In the past the package was known as "Numeric" and imported using "import Numeric". A new generation is imported using "import numpy". Currently the old generation bindings only support the older Numeric package, and the new generatio bindings only support the new generation numpy package. They are mostly compatible, and by importing gdalnumeric you will get whichever is appropriate to the current bindings type.