Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Carl Godkin
Thanks, Even. That makes sense. (Finally!) I can wait a little bit to come back to this so I'll either build 3.3 HEAD on my own or await the next release. It's great that this isn't a random server load thing or something! The weird result on my own WCS server also seemed to be caused by a bad

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Even Rouault
Le 21/10/2021 à 22:32, Rahkonen Jukka (MML) a écrit : Hi Even, You are right, re-running the request -oo clear_cache gives me the same error about 3 bands. Obviously our server was configured right when I used it with GDAL last time. Now gdallocationinfo does not work even for me because I

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Carl Godkin
Hi again, Like Jukka, I get a 404 from the National Map server. (I kept removing the cache directory just in case that mattered.) I just asked a colleague in Texas to try the National Map WCS command and it's not working for him either so Ari and Even are apparently lucky! Thanks, carl On Thu

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Rahkonen Jukka (MML)
Hi Even, You are right, re-running the request -oo clear_cache gives me the same error about 3 bands. Obviously our server was configured right when I used it with GDAL last time. Now gdallocationinfo does not work even for me because I wiped the working configuration from my cache. We will fix

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Carl Godkin
Thanks, Ari and Jukka. Even running gdalinfo on the WCS server ahead of gdallocationinfo does not help for either Jukka's server or the National Map server. Although I tried originally on Windows 10 with GDAL 3.3.1, I have also tried all of this from an RHEL 7 system (with GDAL 3.0.2) and WSL/Ubu

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Even Rouault
Jukka, I don't understand how you get a non-error on the below request on your WCS service: https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?SERVICE=WCS&REQUEST=DescribeCoverage&VERSION=2.0.1&COVERAGEID=korkeusmalli__korkeusmalli&FORMAT=text/xml advertizes 3 bands but the GeoTIF

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Rahkonen Jukka (MML)
Hi, Try to run first gdalinfo "WCS:https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?version=2.0.1"; and repeat the test then. If it works Ari may be able to tell why. -Jukka- Ari may be able to explain Lähettäjä: Carl Godkin Lähetetty: torstai 21. lokakuuta 2021 22.25 Vastaanotta

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Rahkonen Jukka (MML)
Hi, My first test was: gdallocationinfo "WCS:https://elevation.nationalmap.gov:443/arcgis/services/3DEPElevation/ImageServer/WCSServer?version=2.0.1&coverage=DEP3Elevation"; -wgs84 10 20 --debug on Generated request was: WCS: Requesting https://elevation.nationalmap.gov:443/arcgis/services/3D

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Carl Godkin
Hi Jukka, Strangely, the command you pasted doesn't work for me, at with GDAL 3.3.1 on Windows (with quotes added appropriately): gdallocationinfo "WCS: https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?version=2.0.1&coverage=korkeusmalli__korkeusmalli"; -wgs84 27 68 ERROR 1: PROJ: pro

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Ari Jolma
I don't understand the problem :) Maybe it's because I ran gdalinfo on the WCS first. For the gdallocationinfo I get gdallocationinfo "WCS:https://elevation.nationalmap.gov:443/arcgis/services/3DEPElevation/ImageServer/WCSServer?version=2.0.1&coverage=DEP3Elevation"; -wgs84 -122.086 42.948 R

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Rahkonen Jukka (MML)
Hi, I wonder if the problem is in the multipart response that the nationalmap.gov server is sending. The result is not too big tiff (1023x511 pixels as revealed by 1023 511) but perhaps GDAL does not know how to extract it from the multipart envelope. I do not know either. I thought that multip

Re: [gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Rahkonen Jukka (MML)
Hi, At least it seems to work with our WCS service gdallocationinfo WCS:https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?version=2.0.1&coverage=korkeusmalli__korkeusmalli -wgs84 27 68 Report: Location: (228000P,119567L) Band 1: Value: 303.463989257812 -Jukka Rahkonen- Lähe

[gdal-dev] gdallocationinfo + WCS question...

2021-10-21 Thread Carl Godkin
Hi, I am trying to use gdallocationinfo to query point locations from a WCS server and not having any luck. I don't see anything in the docs that says this is unsupported but I can't make it work. First of all, is there a better way to get an elevation from a given lat,lon using WCS? Here's an e

[gdal-dev] Export / import from PostGIS to GRASS and primary keys

2021-10-21 Thread Juan Pedro Pérez Alcántara
Hi there, I have some questions about the role of primary keys when importing / exporting between PostGIS and GRASS. I've been making some tests regarding this process and what follows are my impressions, so they may be wrong in some points. I fully understand that, given the disparity of data mo