May
22
awarded Popular Question
2018
Aug
1
comment GDAL python scripts not importing in Linux
Thanks for that. I have actually reinstalled my distribution recently. I will test this once I have installed gdal.
Mar
22
comment Unexpected results when reclassifying raster using GDAL/numpy
Thanks @jdbcode, that seems to be the problem. cum_cost_array_cont was a float datatype. I was reclassifying that, and then the raster that I used to create the arc_bin was an int32 dtype, which was created later in the script. Solution: Before I reclassified the NumPy array, I changed the dtype by cum_cost_array_cont = cum_cost_array_cont.astype(np.int32) Thanks again for your help.
Mar
21
awarded Commentator
Mar
21
comment Unexpected results when reclassifying raster using GDAL/numpy
Thanks for the idea. I've just tried it, but get the same result. The input raster is a continuous raster with values between 0-2882, read into a NumPy array. Is there any other information that I can give you?
Mar
21
asked Unexpected results when reclassifying raster using GDAL/numpy
2017
Dec
29
revised Geoserver REST API - Change styles on the fly
added 4033 characters in body
Dec
27
comment Geoserver REST API - Change styles on the fly
@IanTurton I haven't got as far as calling it as a WMS yet, I'm just checking it in the Layer preview in the Geoserver interface. Would the name then be rasterize.sld? Thanks.
Dec
26
asked Geoserver REST API - Change styles on the fly
Dec
9
comment Creating toggle layers in Leaflet
Have you tried something like this leafletjs.com/examples/layers-control ?
Dec
1
comment Docker PostGIS .sql files not loading into database at build
thank you so much. That's exactly what I needed to do. All working fine now. Thanks!
Dec
1
awarded Supporter
Nov
29
asked Docker PostGIS .sql files not loading into database at build
Jun
1
awarded Editor
May
31
comment GDAL python scripts not importing in Linux
Thanks for your help @NathanThomas. I installed python 3 with anaconda, but still not having much luck. I think it may be a case of re-installing everything associated with Python. To save time, I have installed OSGEO live, which has so far met my needs.
May
28
comment GDAL python scripts not importing in Linux
Thanks for your suggestions @NathanThomas. I have tried the installation via Anaconda, but there seems to be a conflict between the version of numpy installed with Anaconda, and the numpy associated with gdal. When running conda install gdal, I get the following error UnsatisfiableError: The following specifications were found to be in conflict: - gdal -> numpy 1.8* -> python 2.6* -> openssl 1.0.1* - python 3.6* Use "conda info <package>" to see the dependencies for each package. When running `conda info numpy', I get a list of versions including numpy 1.8.
May
24
comment GDAL python scripts not importing in Linux
Would this help this particular problem. I'm not trying to write a python script. I'm just trying to use the GDAL python commands (gdal_calc.py; gdal_edit.py, etc) in the terminal. If they don't work in the terminal, I'm not sure they would work from a subprocess.call().
May
24
awarded Student
May
24
comment GDAL python scripts not importing in Linux
I get the same error using 'import gdal'. In an idle session, if I type 'from osgeo import gdal', I get a ===RESTART: Shell=== message, then when inputting 'import gdal' again, I get the same initial error.
May
24
asked GDAL python scripts not importing in Linux
1 2