Re: [gdal-dev] fail to pip install gdal

2024-11-21 Thread Mike Taves via gdal-dev
On Fri, 22 Nov 2024 at 10:26, ni hao via gdal-dev wrote: > when I tried to pip install gdal, I got: > > Collecting gdal > Downloading gdal-3.10.tar.gz (848 kB) This fails because the source distribution of gdal needs to be compiled. There are no pre-compiled binary wheels on PyPI. There are se

Re: [gdal-dev] Help using gdal_grid when src_datasource is a NetCDF File

2024-08-22 Thread Mike Taves via gdal-dev
On Fri, 23 Aug 2024 at 04:03, Ewan Tarrant via gdal-dev wrote: > Thanks in advance for your help, To read point data from a netCDF file, refer to the vector driver: https://gdal.org/drivers/vector/netcdf.html The data would need to conform to CF-1.8 for Point data: https://cfconventions.org/Data

Re: [gdal-dev] Building GDAL documentation with ReadTheDocs

2024-07-24 Thread Mike Taves via gdal-dev
On Wed, 24 Jul 2024 at 22:34, Javier Jimenez Shaw via gdal-dev wrote: > Maybe the solution is that proj.org default be "stable" and not "9.4". The reason why PROJ's RTD is configured this way is that "stable" is set at one commit (currently 875a485f) for the most recent release, as described by h

Re: [gdal-dev] Issues specifying PostGIS connection details - possibly related to special characters in passwords?

2024-07-02 Thread Mike Taves via gdal-dev
On Wed, 3 Jul 2024 at 03:36, Robin Wilson via gdal-dev wrote: > Any suggestions welcome, If you routinely access a specific database, a reliable method is to create a .pgpass file: https://www.postgresql.org/docs/current/libpq-pgpass.html This way you never need to provide a password. __

Re: [gdal-dev] Convert to min containing bit depth?

2022-04-21 Thread Mike Taves
On Fri, 22 Apr 2022 at 07:05, wrote: > > Idea for a small but useful python tool: scan image for min/max values and > convert to smallest possible bit depth without losing values. Surely someone > has done something like this already. Any suggestions for where to look for > prior art? This is

Re: [gdal-dev] How to fix path for gdal .py scripts in Anaconda-Windows?

2022-01-13 Thread Mike Taves
On Thu, 13 Jan 2022 at 07:25, Rafael Lima wrote: > I installed gdal on a Windows environment using anaconda and tried using one > of the .py scripts (e.g., ogrmerge.py). I expected the script to make use of > the gdal installed in such an environment, but it seems that the script finds > anothe

Re: [gdal-dev] Does gdal support Military Grid Reference System (MGRS) grid?

2021-06-14 Thread Mike Taves
On Mon, 14 Jun 2021 at 20:49, Bang Pham Huu wrote: > I've questions regarding Military Grid Reference System (MGRS) grid data. If it's simple coordinate conversions to/from MGRS and UTM, a decent library is GeographicLib: https://geographiclib.sourceforge.io/html/GeoConvert.1.html https://geogra

Re: [gdal-dev] Removing trailing decimals from contour labels of shape files

2021-05-15 Thread Mike Taves
On Sat, 15 May 2021 at 12:28, Jason Snyder via gdal-dev wrote: > I noticed that when displaying the graph in mapserver I get label values such > as 1010. whereas I want the labels to be whole numbers. How do I > tweak this code to get whole numbers for pressure contour labels in map > s

Re: [gdal-dev] Affine transform: Practical uses of x-skew and y-skew

2020-05-03 Thread Mike Taves
On Sat, 2 May 2020 at 08:01, Craig Delancy wrote: > I am trying to explain to a colleague how the affine transform maps image > coordinates onto a projection system. > Specifically, I am trying to explain how mathematically speaking, any > parallelogram section of the coordinate system can be re

Re: [gdal-dev] Windows CI build times

2020-04-16 Thread Mike Taves
Hi Even, Yes, I agree these times are way longer than they should take. It looks like Howard was investigating AZP: https://github.com/OSGeo/PROJ/tree/azp how is that going? It seems that many projects have shifted from AppVeyor to AZP for performance benefits. As you mentioned, some of the dep

Re: [gdal-dev] gdal2tiles missing 'GRA_mode' resample method

2019-09-08 Thread Mike Taves
On Tue, 27 Aug 2019 at 03:13, Jacobs Tim wrote: > Recently, we were using gdal2tiles.py to build TMS tiles. > Its code however seems to not support the “mode” resampling > that is available in other GDAL utilities such as gdalwarp and gdal_translate. > > Can this be added to gdal2tiles.py too? Hi

Re: [gdal-dev] Python RasterizeLayer and gdal_rasterize

2019-07-24 Thread Mike Taves
On Thu, 25 Jul 2019 at 01:19, Ivan Lucena wrote: > mem_ds.SetGeoTransform((xmin, xResolut, 0, ymax, 0, yResolut,)) Check your value for yResolut, as it should be negative. In my experience, a raster full of zeros is when the geometry is outside the raster window, so be sure to manually ch

Re: [gdal-dev] Ellipsoidal length of a line

2019-06-16 Thread Mike Taves
On Sat, 15 Jun 2019 at 03:32, Nicolas Cadieux wrote: > I am trying to get the length of a line in python. (Not just the straight > length between the first and last nodes). Using geopandas, (therefore the > Shapely lib) I am getting the euclidien distance even though the dataframe > holdings t

Re: [gdal-dev] How to create GeoTiff from image and UTM Coordinates

2019-01-27 Thread Mike Taves
On Sat, 26 Jan 2019 at 05:50, Adrien André wrote: > If GDAL cannot read the .emf file, try using ImageMagick: > convert image.emf my_raster.png This is a good approach, however you will also need to pay attention to convert's -density and -units options [1] to maintain some sort of meaningful sca

[gdal-dev] gdal/CURRENT lags

2018-12-20 Thread Mike Taves
The symlink to https://download.osgeo.org/gdal/CURRENT/ hasn't been updated for a few releases. If there is a "HOWTO-RELEASE" document, this step should be added to update the link. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.o