[gdal-dev] Question regarding the relationship of geolocation information between main dataset and subdatasets

2025-04-15 Thread David Klaus via gdal-dev
Hello GDAL-DEV, I apologize if this information is available somewhere in the GDAL documentation, but I haven't been able to find an answer in that documentation yet. I am currently working on a routine to export PDFs. In addition to a projection system -- from a WKT string -- I have geotransform

Re: [gdal-dev] Question about gdal-dev archive - searching for information on reading HDF, SAR_CEOS metadata

2024-08-15 Thread Even Rouault via gdal-dev
Shawn, can you be more specific about the issue? (ideally with a link to test datasets, and outputs of gdalinfo with older and newer versions) Even Le 15/08/2024 à 21:15, Fox, Shawn D (US) via gdal-dev a écrit : Is there any way to search the archive?  So far, I have only found a way to sh

Re: [gdal-dev] Question about gdal-dev archive - searching for information on reading HDF, SAR_CEOS metadata

2024-08-15 Thread Rahkonen Jukka via gdal-dev
'gdal-dev@lists.osgeo.org' Aihe: [gdal-dev] Question about gdal-dev archive - searching for information on reading HDF, SAR_CEOS metadata Is there any way to search the archive? So far, I have only found a way to show the threads for a particular month/year, but I don't see a way to

Re: [gdal-dev] Question about gdal-dev archive - searching for information on reading HDF, SAR_CEOS metadata

2024-08-15 Thread Scott via gdal-dev
Hey Shawn, In google try something like: hdf4 site:lists.osgeo.org/pipermail/gdal-dev You may be able to narrow things down. On 8/15/24 12:15, Fox, Shawn D (US) via gdal-dev wrote: Is there any way to search the archive?  So far, I have only found a way to show the threads for a particular mo

[gdal-dev] Question about gdal-dev archive - searching for information on reading HDF, SAR_CEOS metadata

2024-08-15 Thread Fox, Shawn D (US) via gdal-dev
Is there any way to search the archive? So far, I have only found a way to show the threads for a particular month/year, but I don't see a way to do a keyword search. My team has recently tried to upgrade from a very old version 1.10.0 to 3.4.2 and we can no longer successfully read metadata f

Re: [gdal-dev] Question: Layer intersection in Python

2024-06-21 Thread Michaelis, Luis via gdal-dev
the great work! - Luis From: Even Rouault Sent: 20 June 2024 19:43 To: Michaelis, Luis ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Question: Layer intersection in Python Luis, the issue is that shapefile layers do not really support a genuine unknown layer geometry type. They accept it

Re: [gdal-dev] Question: Layer intersection in Python

2024-06-20 Thread Even Rouault via gdal-dev
Luis, the issue is that shapefile layers do not really support a genuine unknown layer geometry type. They accept it on layer creation, but as soon as you write the first feature into it, the feature layer geometry type is used as the layer geometry type, and shapefile don't accept a mix of p

[gdal-dev] Question: Layer intersection in Python

2024-06-20 Thread Michaelis, Luis via gdal-dev
Hello GDAL devs! I've got a question about layer intersection detection. I'd like to use the GDAL Python interface to do batched intersection checks between two vector layers, one containing only two-point line strings and one containing terrain contour lines. To compute these intersections, I w

Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-23 Thread Thomas Knudsen via gdal-dev
. Imagine a row of three tiles; the middle on on >> the edge of a glacier, the first entirely on the glacier and the last >> entirely off the glacier. You may wish to apply the same scaling to all >> three. >> >> > From: Daniel Evans >> > Sent: Mond

Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-22 Thread Javier Jimenez Shaw via gdal-dev
ier and the last > entirely off the glacier. You may wish to apply the same scaling to all > three. > > > From: Daniel Evans > > Sent: Monday, April 22, 2024 9:29 AM > > To: Raley, Nathan > > Cc: 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) < &

Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-22 Thread Andrew C Aitchison via gdal-dev
Sent: Monday, April 22, 2024 9:29 AM To: Raley, Nathan Cc: 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) Subject: [External] Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff Hi Nathan, My initial suspicion might just be that the scalin

Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-22 Thread Raley, Nathan via gdal-dev
Sent: Monday, April 22, 2024 9:29 AM To: Raley, Nathan Cc: 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) Subject: [External] Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff Hi Nathan, My initial suspicion might just be that the scalin

Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-22 Thread Joaquim Manuel Freire Luís via gdal-dev
(gdal-dev@lists.osgeo.org) Subject: Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff Hi Nathan, My initial suspicion might just be that the scaling the data provider did to go from the raw data to a human-eye-friendly RGB composite isn't the con

Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-22 Thread Daniel Evans via gdal-dev
Hi Nathan, My initial suspicion might just be that the scaling the data provider did to go from the raw data to a human-eye-friendly RGB composite isn't the conversion you're assuming. I know that with the data I regularly work with, it may be provided as Uint16, but the data range doesn't extend

[gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-22 Thread Raley, Nathan via gdal-dev
I currently have a RGB geotiff composite image that has a Byte datatype. I also have individual band images for R, G, Redge, and NIR that are UInt16 datatypes. Since I'm missing the Blue band from the individual bands, I was attempting to extract the blue band from the RGB composite image, sca

Re: [gdal-dev] Question about PG_LIST_ALL_TABLES in the documentation

2024-02-20 Thread Even Rouault via gdal-dev
Jukka, I would probably completely remove that paragraph, or at least remove the wrong hint on how to check if permissions are correct. Correct permission settings of a PostgreSQL/PostGIS database is probably out of scope of the driver documentation. But your suggestion for an alternate metho

[gdal-dev] Question about PG_LIST_ALL_TABLES in the documentation

2024-02-20 Thread Rahkonen Jukka via gdal-dev
Hi, I don't undestand this part of the PosgGIS driver documentation https://gdal.org/drivers/vector/pg.html#faqs "Permission issues on geometry_columns and/or spatial_ref_sys tables can be generally confirmed if you can see the tables by setting the configuration option PG_LIST_ALL_TABLES to YE

Re: [gdal-dev] Question: CPL minizip affected by CVE-2023-45853?

2023-11-03 Thread James Addison via gdal-dev
Brilliant - thank you, Even! On Fri, 3 Nov 2023 at 15:44, Even Rouault wrote: > > Hi James, > > thanks for the notice. GDAL copy has diverged a bit, but I've just > managed to apply the upstream fix per > https://github.com/OSGeo/gdal/pull/8658 > > Even > > Le 03/11/2023 à 16:17, James Addison vi

Re: [gdal-dev] Question: CPL minizip affected by CVE-2023-45853?

2023-11-03 Thread Even Rouault via gdal-dev
Hi James, thanks for the notice. GDAL copy has diverged a bit, but I've just managed to apply the upstream fix per https://github.com/OSGeo/gdal/pull/8658 Even Le 03/11/2023 à 16:17, James Addison via gdal-dev a écrit : Hi folks, I've arrived at the gdal mailing list after reading the secu

[gdal-dev] Question: CPL minizip affected by CVE-2023-45853?

2023-11-03 Thread James Addison via gdal-dev
Hi folks, I've arrived at the gdal mailing list after reading the security policy[1] on the GitHub repository, but then decided that this is as much a question as it is a bug, so I'm following the issue template comment advice[2] to post here. The Common Portability Library within gdal includes s

Re: [gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-26 Thread Vijay Kurhade
Hi Haddad/Rob; I tried conversion of DWG to DXF and then ran command; but I am getting errors I have mentioned in the shared document(on Drive); I have shared the DXF file too. >From the python terminal; get Size too big issue And from command line get polygon errors. Regds- Vijay On Fri, May 2

Re: [gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-25 Thread Vijay Kurhade
Hi Rob; Sorry to bother you again. Getting shapefile size as well as other DWG-DXF conversion issues. please refer to Doc shared on Drive : *Doc for Rob : Gdal Steps.docx* *https://docs.google.com/document/d/16IUBzzaJZ0baCdtUsUCgTHBBE3-D-wy_/edit?usp=share_link&ouid=105159133680993726163&rtpof=t

Re: [gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-12 Thread Vijay Kurhade
Hi Rob; You are a rockstar; yes this is very much close indeed; have struggled for weeks and never managed to get it out of the center of the globe(African continent). Sincerely appreciate so much efforts you have put to help me with direction and help. Have a great weekend and beyond. Regards-

Re: [gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-12 Thread Robert Hewlett
Hi, Sorry for the late reply, Still marking and meetings on this side of the globe: I used the site to go from dwg to dxf. Then used ogr2ogr at the command line ogr2ogr --version GDAL 3.6.4, released 2023/04/17 ogr2ogr -a_srs "EPSG:4326" -f "ESRI Shapefile" ^ -gcp 12.8973 4.8524 73.77377140094

Re: [gdal-dev] Question About OGR

2023-05-11 Thread Arzu ÇUBUKÇU
Hello Gandhi, Thank you very much for your help, I was doing the false installation, all the problem was solved this way. -- Saygılarımla / Kind Regards Arzu ÇUBUKÇUHavacılık Bilgi Sistemleri / Aeronautical Information SystemsVeri Bilimi Uzmanı / Data Science Specialistİstatistikçi / Statistician M

Re: [gdal-dev] Question About OGR

2023-05-11 Thread Ujaval Gandhi
As Lautentiu mentioned, you need to install GDAL in the Colab environment. Here's an example notebook showing how https://colab.research.google.com/drive/1vOdd-kGAvR0Nhcrc6OpOLDeH3KZgzP8c?usp=sharing---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Thu, May 11, 2023 at 12:26 PM Laurențiu Ni

Re: [gdal-dev] Question About OGR

2023-05-10 Thread Laurențiu Nicola via gdal-dev
Hi, You no longer have the GDAL tools installed. I don't know how you acquired them before, but one option is something like !apt install gdal-bin (untested). Laurențiu On Thu, May 11, 2023, at 09:03, Arzu ÇUBUKÇU wrote: > Hello All, > > I have been working on file conversion in Python for a

Re: [gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-10 Thread Vijay Kurhade
Hello I am sharing a shape file and AutoCAD (.dwg) file. I have geo-coordinated the CAD file and then converted it into .shp file using following steps: 1) Selected ‘geographic location’ option in AutoCAD 2) Entered latitude (18.5652) and longitude (73.7888) and elevation (606 meters)

[gdal-dev] Question About OGR

2023-05-10 Thread Arzu ÇUBUKÇU
Hello All, I have been working on file conversion in Python for a while. I have had successful results for a long time using "ogr2ogr".However, my code has been giving the following error for a while now. I also searched a lot on the web, but I couldn't figure out why.I do my studies with Google Co

Re: [gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-09 Thread Robert Hewlett
Hi, Different from what I originally thought. Does the image below demonstrate the problem? https://i.imgur.com/lAMwZmG.png Looks like a scale issue as well. Rob On Tue, May 9, 2023 at 12:13 PM Vijay Kurhade wrote: > Hi Robert; > > I am sharing a shape file and AutoCAD (.dwg) file. I have

Re: [gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-09 Thread Robert Hewlett
It sounds like the lat and longs are being plotted as Web Mercator meters. I could be wrong Is there a .PRJ file? How are you viewing the data: QGIS Open layers Leaflet On Tue, May 9, 2023, 04:55 Vijay Kurhade wrote: > Hi; > > I have a long pending issue with Shapefile and using proper > Ge

[gdal-dev] Question regarding Shapefile Geo-cordinates

2023-05-09 Thread Vijay Kurhade
Hi; I have a long pending issue with Shapefile and using proper Geo-coordinates for it; i need to place it in Pune, India with actual 4 Geo-Coordinates but everytime My shapefile gets placed into earth's center mostly Africa. What is the solution; How can I ensure the shapefile uses those lat/lon

Re: [gdal-dev] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-03 Thread Pham Huu Bang
Hi Scott, gdal complained about the error because geoserver.tif has less pixels than gdal.tif. But that doesn't help answering my question. >If I run: >gdal_translate -projwin 137.915315044103 -36.51629558851893 154.64770004642423 >-40.081875882617666 geoserver.tif new.tif > It completes with

Re: [gdal-dev] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-03 Thread Scott
If I run: gdal_translate -projwin 137.915315044103 -36.51629558851893 154.64770004642423 -40.081875882617666 geoserver.tif new.tif It completes with warning: Warning 1: Computed -srcwin -1 -1 17 4 falls partially outside raster extent. Going on however. Try again with your -projwin values wi

[gdal-dev] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-03 Thread Pham Huu Bang
Hello, I've a hard time understanding which one should be the correct result by gdal_translate or GeoServer. My system (Ubuntu 22.04) has: - GDAL 3.4.1 - Geoserver 2.22 running on Tomcat on port 9090 I have a small tiff file (link to download at the bottom of this thread) in EPSG:4326, then I wa

Re: [gdal-dev] question about python installation

2023-03-08 Thread Greg Troxel
Michael Sumner writes: > I've been trying with PYTHONPATH and sys.path, and I think I was doing it > wrong ... but the simplicity of the /usr prefix had not occurred to me, > I'll be doing that. > > If I come back around with further insights I'll share them, but this is > working for me now. >

Re: [gdal-dev] question about python installation

2023-03-07 Thread Michael Sumner
Ah, awesome - thanks as ever for such great detail. I've been trying with PYTHONPATH and sys.path, and I think I was doing it wrong ... but the simplicity of the /usr prefix had not occurred to me, I'll be doing that. If I come back around with further insights I'll share them, but this is work

Re: [gdal-dev] question about python installation

2023-03-07 Thread Even Rouault
Michael, My experience is that understanding how and where to install Python stuff is utterly difficult. And this is even more complicated on Debian/Ubuntu that have many patches regarding sys.path and distutils, plus the fact that distutils is deprecated and going to be removed in Python 3.1

[gdal-dev] question about python installation

2023-03-07 Thread Michael Sumner
Hello, apologies as this is not so much a GDAL but a python question, but I'm interested in what others do, hopefully I'm missing a key step that's not hacky :) I made a gist to record the details: https://gist.github.com/mdsumner/526af876cfddaa5ff245ab376b3cec84 The crux is, GDAL has placed th

Re: [gdal-dev] question for scaling default

2022-08-16 Thread Even Rouault
Mike, Le 14/08/2022 à 08:07, Michael Sumner a écrit : Hello, I have a new driver candidate, it's natively a type Byte and is a percentage (or fraction) floating point value when unscaled.  I have a couple of questions. . https://github.com/OSGeo/gdal/pull/6183 I'd like to have it unscale by

[gdal-dev] question for scaling default

2022-08-13 Thread Michael Sumner
Hello, I have a new driver candidate, it's natively a type Byte and is a percentage (or fraction) floating point value when unscaled. I have a couple of questions. . https://github.com/OSGeo/gdal/pull/6183 I'd like to have it unscale by default, with band type Float32 - but be able to opt out of

Re: [gdal-dev] question re netcdf grid_mapping

2022-03-02 Thread Michael Sumner
On Wed, Mar 2, 2022 at 2:31 PM Alan Snow wrote: > Hi Michael, > > I don't claim to be an expert in the projection you are using or what the > GDAL team would like to do in this scenario, but hopefully the information > presented here will be helpful to you. > > excellent, thanks so much Alan t

Re: [gdal-dev] question re netcdf grid_mapping

2022-03-01 Thread Alan Snow
Hi Michael, I don't claim to be an expert in the projection you are using or what the GDAL team would like to do in this scenario, but hopefully the information presented here will be helpful to you. The grid mapping name "Oblique Mercator (LV95 - CH1903+)" in the netCDF file does not appear to b

[gdal-dev] question re netcdf grid_mapping

2022-03-01 Thread Michael Sumner
Hello, I'm looking at the constants for CF_PT_* projection families in frmts/netcdf/netcdf_cf_constants.h I have a grid_mapping variable with attributes: # float swiss_lv95_coordinates ; # swiss_lv95_coordinates:_FillValue = -1.f ; # swiss_lv95_coordinates:grid

Re: [gdal-dev] [Question] PROJ4String to WKT2 Transformations

2022-01-27 Thread Felipe Matas via gdal-dev
enero de 2022 12:15:14 a. m. GMT-3, Rahkonen Jukka (MML) escribió: Hi,   The more or less same question seems to be asked some time ago in gis.stackexchange https://gis.stackexchange.com/questions/420378/can-we-construct-wkt2-from-proj4string-correctly.   -Jukka Rahkonen-

Re: [gdal-dev] [Question] PROJ4String to WKT2 Transformations

2022-01-10 Thread Even Rouault
Felipe, when using PROJ to transform a PROJ.4 string to WKT2, there's (as far as I can think of) no loss of information. Loss of information can occur in the other way round. The main source of loss is that proj4 strings have a limited set of known datums, so sometimes you'll just have a +el

Re: [gdal-dev] [Question] PROJ4String to WKT2 Transformations

2022-01-10 Thread Rahkonen Jukka (MML)
. tammikuuta 2022 22.07 Vastaanottaja: gdal-dev@lists.osgeo.org Aihe: [gdal-dev] [Question] PROJ4String to WKT2 Transformations Hi hi, I was looking for someplace to ask about this, and I was in doubt is was here or in PROJ, but lets do a try. Actually, probably I'm not the only one, I have some ques

[gdal-dev] [Question] PROJ4String to WKT2 Transformations

2022-01-10 Thread Felipe Matas via gdal-dev
Hi hi, I was looking for someplace to ask about this, and I was in doubt is was here or in PROJ, but lets do a try. Actually, probably I'm not the only one, I have some questions about how WKT2 and PROJ4Strings are transformed. >From what I read, a PROJ4String don't have enough info to construct

Re: [gdal-dev] Question Regarding Custom gdal_translate

2021-03-19 Thread Patrick Young
FWIW check out https://github.com/OSGeo/gdal/blob/master/autotest/utilities/test_gdal_translate.py https://github.com/OSGeo/gdal/blob/master/autotest/utilities/test_gdal_translate_lib.py On Fri, Mar 19, 2021 at 3:35 AM Andrew C Aitchison wrote: > On Fri, 19 Mar 2021, mat data wrote: > > > I am

Re: [gdal-dev] Question Regarding Custom gdal_translate

2021-03-19 Thread Andrew C Aitchison
On Fri, 19 Mar 2021, mat data wrote: I am required to edit a portion of gdal_translate utility to fit my own needs. For that reason I would need to edit the code in gdal_translate related cpp files. And redo the whole "make" command many times. Is there a way so I can specifically test only gdal

[gdal-dev] Question Regarding Custom gdal_translate

2021-03-19 Thread mat data
I am required to edit a portion of gdal_translate utility to fit my own needs. For that reason I would need to edit the code in gdal_translate related cpp files. And redo the whole "make" command many times. Is there a way so I can specifically test only gdal_translate functionality. So I don't hav

Re: [gdal-dev] question about the upgrade of xerces and expat

2020-04-07 Thread Even Rouault
Maja, > is there in plan to upgrade to new versions of xerces (3.2.2) and expat > (2.2.9) libraries soon? GDAL 3.0.4 version contains, for example, expat > version 2.0.1 and in the meantime various changes and security fixes > happened (link to the release notes: GDAL, as a source distribution, d

[gdal-dev] question about the upgrade of xerces and expat

2020-04-07 Thread Miljak, Maja AVL/HR
Hi, is there in plan to upgrade to new versions of xerces (3.2.2) and expat (2.2.9) libraries soon? GDAL 3.0.4 version contains, for example, expat version 2.0.1 and in the meantime various changes and security fixes happened (link to the release notes: https://libexpat.github.io/

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

2020-02-07 Thread Even Rouault
> thanks for the answer. I am using C/C++ and I was expecting to find a > function/method like "GetSPCSZone", "IzSPCS" or similar. There's no such function. But you can just open the data/stateplane.csv file to find a match of EPSG code. An alternative is to use exportToWkt() with WKT2 output an

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

2020-02-07 Thread Chris Smemoe
to answer it. Chris -Original Message- From: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Sergey Suloev Sent: Friday, February 07, 2020 9:11 AM To: Alan Snow Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Question about GDAL API: way to find out if CS isSPCS hi, Alan, On

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

2020-02-07 Thread Sergey Suloev
hi, Alan, On 2/7/20 5:36 PM, Alan Snow wrote: If you use python, the pyproj CRS class can help. >>> from pyproj import CRS >>> crs = CRS("EPSG:26945") >>> crs Name: NAD83 / California zone 5 Axis Info [cartesian]: - X[east]: Easting (metre) - Y[north]: Northing (metre) Area of Use: - name: U

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

2020-02-07 Thread Alan Snow
If you use python, the pyproj CRS class can help. >>> from pyproj import CRS >>> crs = CRS("EPSG:26945") >>> crs Name: NAD83 / California zone 5 Axis Info [cartesian]: - X[east]: Easting (metre) - Y[north]: Northing (metre) Area of Use: - name: USA - California - SPCS83 - 5 - bounds: (-121.42, 32.

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

2020-02-07 Thread Sergey Suloev
Hello, in my project I am using GDAL to manage coordinate systems. I am looking for a function/class that can tell me if a specific coordinate system is a State Plane Coordinate System and give a zone number. Thank you very much ___ gdal-dev mailing

Re: [gdal-dev] Question on gdal_contour and limiting the range of contours generated.

2019-10-31 Thread Stephen Woodbridge
Thanks I have not seen the raster common option file thing. I’ll look at it. Sent from my iPhone > On Oct 31, 2019, at 2:11 PM, jratike80 > wrote: > > Hi, > > One more suggestion, have you tried the -fl option "Name one or more “fixed > levels” to extract"? Requires some writing but only o

Re: [gdal-dev] Question on gdal_contour and limiting the range of contours generated.

2019-10-31 Thread jratike80
Hi, One more suggestion, have you tried the -fl option "Name one or more “fixed levels” to extract"? Requires some writing but only once if you save the list into an optfile https://gdal.org/programs/raster_common_options.html. I haven't tried the option with hundreds of fixed levels, though. -J

Re: [gdal-dev] Question on gdal_contour and limiting the range of contours generated.

2019-10-31 Thread Stephen Woodbridge
Jukka, Thanks! After trying shapefile and exceeding 2GB, I switched to postgres and deleted the elevation as you suggested. I'm working with a global relief model the includes both elevation and bathymetry depth over the whole world at about 15 arc-sec/pixel. I generates a lot of contour lin

Re: [gdal-dev] Question on gdal_contour and limiting the range of contours generated.

2019-10-31 Thread jratike80
Second thought, perhaps I would just delete unnecessary contour lines afterwards instead of flattening the DEM. gdal_contour -f gpkg -a elev -off -121.92 -i 1.524 bathy-value/crm_vol2.nc.tif bathy-contours/crm_vol2.nc-5.gpkg ogrinfo -sql "delete from crm_vol2.nc-5 where elev>0" bathy-contours/crm

Re: [gdal-dev] Question on gdal_contour and limiting the range of contours generated.

2019-10-31 Thread jratike80
Hi, I believe I would use gdal_calc https://gdal.org/programs/gdal_calc.html and make the terrain above the sea level flat before creating the contours. And I would avoid shapefiles and use GeoPackage as output format. There is a button "Edit on GitHub" in the top-right corner on page https://gd

[gdal-dev] Question on gdal_contour and limiting the range of contours generated.

2019-10-30 Thread Stephen Woodbridge
Hi, I want to use gdal_contour to generate shapefile contours which is pretty straight forward except I'm working with coastal relief data that has both elevation and bathymetry. I only want contours for the bathymetry. I tried setting the -off -5 and -i -5 with the idea that this would star

Re: [gdal-dev] Question on converting netCDF to GTiff

2019-10-23 Thread Stephen Woodbridge
On 10/23/2019 1:54 PM, Even Rouault wrote: On mercredi 23 octobre 2019 13:41:45 CEST Stephen Woodbridge wrote: Hi, I have a netCDF grid of Float32 values that I want to convert to GTiff with Int16 values. The min/max values will support this without scaling, but I'm not sure what will happen to

Re: [gdal-dev] Question on converting netCDF to GTiff

2019-10-23 Thread Even Rouault
On mercredi 23 octobre 2019 13:41:45 CEST Stephen Woodbridge wrote: > Hi, > > I have a netCDF grid of Float32 values that I want to convert to GTiff > with Int16 values. The min/max values will support this without scaling, > but I'm not sure what will happen to the NODATA value = > 9.969209968386

[gdal-dev] Question on converting netCDF to GTiff

2019-10-23 Thread Stephen Woodbridge
Hi, I have a netCDF grid of Float32 values that I want to convert to GTiff with Int16 values. The min/max values will support this without scaling, but I'm not sure what will happen to the NODATA value = 9.96920996838686905e+36. Ideally, I would like to set it to something like 32000 but not

Re: [gdal-dev] Question on python gdal.Rasterize()

2019-06-14 Thread Stephen Woodbridge
OK, After some more research, I found the rasterize.py autotest file which was a huge help and I have code working that burns the tracks into an image. But its not exactly what I hoping for so I'll give the gdal.Grid() a try. Thanks,   -Steve On 6/14/2019 1:58 PM, Stephen Woodbridge wrote: H

[gdal-dev] Question on python gdal.Rasterize()

2019-06-14 Thread Stephen Woodbridge
Hi all, My goal is to take satellite track data and create a gtiff file using Python. The satellite data is in a NetCDF file, which I can read in Python and has variables lat, lon, ssha. There are a continue stream of the NetCDF data over time so I plan to just keep loading them as they become

Re: [gdal-dev] Question about GDAL lib size

2019-04-02 Thread Patrick Valsecchi
7MB. > > Do you know is there any parameters during “./configure” to compile > without debug? I didn’t find the document. > > > > BRs, > > Fan Liu > > > > *From:* Fan Liu > *Sent:* Tuesday, April 2, 2019 2:40 PM > *To:* Patrick Valsecchi > *Subject:*

Re: [gdal-dev] Question about GDAL lib size

2019-04-01 Thread Fan Liu
Resent question after register. Could anyone support? BRs, Fan Liu From: Fan Liu Sent: Tuesday, April 2, 2019 10:24 AM To: 'gdal-dev@lists.osgeo.org' Subject: Question about GDAL lib size Hello, I have a question related with lib size. When I install GDAL via rpm on redhat, it lib size is 13M

[gdal-dev] Question on exporting to Geopackage

2019-03-08 Thread Randal Hale
This may be a bit obvious - so I apologize if it is and I'm missing it. I'm exporting a table out of postgres/postgis into a geopackage. The geopackage goes to a ESRI shop who then pushes it into their Server setup. When I export it out my smallint fields are moving to integer - which is caus

Re: [gdal-dev] Question of file ordering in VRT

2019-03-07 Thread Stephen Woodbridge
Thanks Even and Ivan, Good idea to build to build the list and use that for gdalbuildvrt. -Steve On 3/7/2019 11:42 AM, Even Rouault wrote: On jeudi 7 mars 2019 11:30:04 CET Stephen Woodbridge wrote: Hi all, When I have multiple overlapping files in VRT which pixel takes president? I'm assumi

Re: [gdal-dev] Question of file ordering in VRT

2019-03-07 Thread Ivan Lucena
alf of Even Rouault Sent: Thursday, March 7, 2019 8:43 AM To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Question of file ordering in VRT On jeudi 7 mars 2019 11:30:04 CET Stephen Woodbridge wrote: > Hi all, > > When I have multiple overlapping files in VRT which pixel takes &

Re: [gdal-dev] Question of file ordering in VRT

2019-03-07 Thread Even Rouault
On jeudi 7 mars 2019 11:30:04 CET Stephen Woodbridge wrote: > Hi all, > > When I have multiple overlapping files in VRT which pixel takes > president? I'm assuming that the later files in the VRT would be the one > presented. For example, I have multiple satellite images with names like > MMDD

[gdal-dev] Question of file ordering in VRT

2019-03-07 Thread Stephen Woodbridge
Hi all, When I have multiple overlapping files in VRT which pixel takes president? I'm assuming that the later files in the VRT would be the one presented. For example, I have multiple satellite images with names like MMDDHHMM-.tif so when I use gdalbuiltvrt MMDD.vrt MMDD*.ti

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-27 Thread James McClain
> *Sent:* Friday, November 23, 2018 3:18 PM > *To:* gdal-dev@lists.osgeo.org > *Subject:* Re: [gdal-dev] Question on how to open a raster in HDFS using > GDAL > > Hello, > > It may not be finding the native HDFS libraries. Please see the pull > request ht

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-27 Thread ZAZHIL-HA HERENA
From: gdal-dev on behalf of James McClain Sent: Friday, November 23, 2018 3:18 PM To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL Hello, It may not be finding the native HDFS libraries. Please see the pull request https

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-23 Thread James McClain
23, 2018 11:52 AM > *To:* gdal-dev@lists.osgeo.org > *Cc:* ZAZHIL-HA HERENA; James McClain; n...@nikosalexandris.net > *Subject:* Re: [gdal-dev] Question on how to open a raster in HDFS using > GDAL > > > Version says 2.3.2 but libraries say: libgdal.so.20.4.2 . > > Libtoo

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-23 Thread ZAZHIL-HA HERENA
, 2018 11:52 AM To: gdal-dev@lists.osgeo.org Cc: ZAZHIL-HA HERENA; James McClain; n...@nikosalexandris.net Subject: Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL > Version says 2.3.2 but libraries say: libgdal.so.20.4.2 . Libtool number (.so.20.4.2) has nothing to do with u

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-23 Thread Even Rouault
> Version says 2.3.2 but libraries say: libgdal.so.20.4.2 . Libtool number (.so.20.4.2) has nothing to do with user-friendly version number (2.3.2) > I am not sure if I > got the latest code, this is the first time I compile it myself, I used > this link to download source code: > http://downlo

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-23 Thread ZAZHIL-HA HERENA
ing during compile? Thank you!! Zazhil-ha From: gdal-dev on behalf of James McClain Sent: Thursday, November 22, 2018 8:27 PM Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL Hello, I am the author of the vsihd

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-22 Thread James McClain
Hello, I am the author of the vsihdfs code, I am ready and willing to help. I just rebuilt it from current master and was able to successfully open an dataset via an HDFS URI with the GDAL Python bindings. I have a few suggestions. First, please try putting the file into a local directory and t

Re: [gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-22 Thread Nikos Alexandris
* ZAZHIL-HA HERENA [2018-11-22 22:35:32 +]: Hello, I am not sure if I should use this mailing list to ask questions but I wanted to try, I am a developer trying to use GDAL to open rasters in HDFS. I read in GDAL documentation that starting 2.4 it is possible to open a raster in HDFS. I

[gdal-dev] Question on how to open a raster in HDFS using GDAL

2018-11-22 Thread ZAZHIL-HA HERENA
Hello, I am not sure if I should use this mailing list to ask questions but I wanted to try, I am a developer trying to use GDAL to open rasters in HDFS. I read in GDAL documentation that starting 2.4 it is possible to open a raster in HDFS. I downloaded and compiled the latest source code avai

[gdal-dev] Question: build gdal2tiles.py as exe

2018-11-07 Thread К
Hello! I'm trying to bulild gdal2tiles.py as standalone executable by using PyInstaller to use it as process from c# code (because gdal2tiles is'nt exist in bindings). I tried with both Python 3.7.1 and Python 2.7.15, but the output binary is unable to run or lacks some functionality. For Pytho

Re: [gdal-dev] Question about command line options -append

2017-11-29 Thread Even Rouault
On mercredi 29 novembre 2017 13:33:17 CET Victor Chernetsky wrote: > Thanks, this worked! > > I have a followup question: how does gdal/ogr2ogr knows that my destination > dataset/layer exists? For the dataset, it tries to GDALOpen() it. For the layer, by iterating over layers with GetLayer() a

Re: [gdal-dev] Question about command line options -append

2017-11-29 Thread Victor Chernetsky
Thanks, this worked! I have a followup question: how does gdal/ogr2ogr knows that my destination dataset/layer exists? For instance, -append option suppose to do different things if layer exists, or not. I don't see any isExists() APIs that would check it. Thanks, *Victor Chernetsky* +1 (408) 3

Re: [gdal-dev] Question about command line options -append

2017-11-29 Thread Even Rouault
On mercredi 29 novembre 2017 12:00:17 CET Victor Chernetsky wrote: > Hey Even, > > How do I set OVERWRITE option? With -lco OVERWRITE=YES since this is a layer creation option > I tried all these: > ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100322" This will trigger the logic

Re: [gdal-dev] Question about command line options -append

2017-11-29 Thread Victor Chernetsky
Hey Even, How do I set OVERWRITE option? I tried all these: ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100322" ~/Downloads/Visits.geojson ogr2ogr --config OVERWRITE YES -f AmigoCloud "AmigoCloud:15276 datasets=100322" ~/Downloads/Visits.geojson ogr2ogr -oo OVERWRITE=YES -f AmigoCl

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Thanks, this helps! The thing is I cannot really use layer name to identify an AmigoCloud dataset. In AmigoCloud we have names, but they are not guarantied to be unique. We use dataset Id to identify a dataset (ogr layer) instead. In my example "Visits" it's just a name of the source data file, wh

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Even Rouault
On mardi 28 novembre 2017 15:40:46 CET Victor Chernetsky wrote: > Here is my example: > ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100056" > ~/Downloads/Visits.geojson > > I am trying to append, or overwrite data into existing dataset id:100056. > But it still created a new datase

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Here is my example: ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100056" ~/Downloads/Visits.geojson I am trying to append, or overwrite data into existing dataset id:100056. But it still created a new dataset, and it did not delete/clean old dataset. I am thinking I need to do somet

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Even Rouault
On mardi 28 novembre 2017 15:20:20 CET Victor Chernetsky wrote: > Hi Even, > > Then in my driver, how do I know if I have to append data to existing > dataset, > or overwrite existing data, or create a new dataset all together? That should work automagically if you correctly implement the semant

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Hi Even, Then in my driver, how do I know if I have to append data to existing dataset, or overwrite existing data, or create a new dataset all together? What about -overwrite option? Thanks, *Victor Chernetsky* +1 (408) 368-4607 vic...@amigocloud.com On Tue, Nov 28, 2017 at 3:15 PM, Even Ro

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Even Rouault
On mardi 28 novembre 2017 15:00:11 CET Victor Chernetsky wrote: > Hello, > > How do I get value/state of a command line option of ogr2ogr. For instance > I want to handle options like -append, -update inside of my DataSource > class? Is there a documentation about it? Victor, -append and -update

[gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Hello, How do I get value/state of a command line option of ogr2ogr. For instance I want to handle options like -append, -update inside of my DataSource class? Is there a documentation about it? Thanks, *Victor Chernetsky* +1 (408) 368-4607 vic...@amigocloud.com _

Re: [gdal-dev] Question about GeoPackage and views

2017-11-01 Thread Even Rouault
On mercredi 1 novembre 2017 12:57:35 CET Rahkonen Jukka (MML) wrote: > Hi, > > I was reading the GeoPackage standard and only now read carefully the > requirement 29 > > "A GeoPackage MAY contain tables or updateable views containing vector > features. Every such feature table or view in a GeoPac

[gdal-dev] Question about GeoPackage and views

2017-11-01 Thread Rahkonen Jukka (MML)
Hi, I was reading the GeoPackage standard and only now read carefully the requirement 29 "A GeoPackage MAY contain tables or updateable views containing vector features. Every such feature table or view in a GeoPackage SHALL have a column with column type INTEGER and 'PRIMARY KEY AUTOINCREMENT

Re: [gdal-dev] question about --config cmd line option

2017-10-18 Thread Victor Chernetsky
Thanks Even. I just wanted to confirm it. On Wed, Oct 18, 2017 at 11:51 AM, Even Rouault wrote: > On mercredi 18 octobre 2017 11:40:55 CEST Victor Chernetsky wrote: > > Hello, > > > > I am developing the AmigoCloud driver for GDAL, and I have a question > about > > '-config' command line option.

  1   2   3   4   >