Re: [gdal-dev] Cannot find proj.db

2023-03-30 Thread Chris Smemoe via gdal-dev
Elena, I have had this same problem. We have a few methods of setting the location of the proj.db file. When we call from C++ (or from python), there’s a function called OSRSetPROJSearchPaths that’s handy. If you’re calling from a command line, you could try setting your environment variable

Re: [gdal-dev] Command line /python syntax differences

2022-11-02 Thread Chris Smemoe via gdal-dev
Jonas, I think your formatting of the arguments is not correct. There are lots of ways to do what you need to do. You can just use your commandline options directly in the python gdal.Translate options or you can call gdal_translate directly using the python subprocess.call command. There

[gdal-dev] Issue defining compound projection with a local projection for GeoTIFF

2022-06-08 Thread Chris Smemoe via gdal-dev
I'm not sure whether this is a bug or some issue with how I'm doing things (like maybe my WKT is bogus), but when I try to define a compound projection for a GeoTIFF with a local projection, the vertical projection information does not get saved to the GeoTIFF and I get an error reported from PROJ.

Re: [gdal-dev] Question about GDAL API: way to find out if CS isSPCS

2020-02-07 Thread Chris Smemoe
Sergey, As far as I know, there are no functions like that in GDAL. Perhaps those functions could be added to the API. I'd recommend posting the question to gis.stackexchange.com and try to get an answer there. I have some rather complicated code I use to determine if I'm in state plane coordin

Re: [gdal-dev] Need Help with gdal2tiles for large super overlay ingooglemaps

2019-10-30 Thread Chris Smemoe
Nick, That's lots of info and questions. Just from a quick overview, it looks like you need to set your ground control points to the correct lat/lon coordinates (or whatever coordinate system you want to use) and you also need to set your image's projection. You can do both of these with the

Re: [gdal-dev] WMS, blocksize and black lines

2018-07-09 Thread Chris Smemoe
Arno, I suspect the black lines has something to do with using the -projwin argument to gdal_translate along with the DataWindow tag information in the XML file. The following XML works fine for me with the following command line: "gdal_translate wms.xml test.tif" 1.1.1 https://gis.a

Re: [gdal-dev] RGB to PALETTE conversion

2018-02-05 Thread Chris Smemoe
Paulo, Are you trying to convert a file with multiple bands (RGB or RGBA) to a file with a single band and a color palette? One possible solution showing how to do this using GDAL is shown on Stack Exchange at the following location: https://gis.stackexchange.com/questions/246045/export-geotiff-