Re: [gdal-dev] gdallocationinfo.exe multiple access

2015-03-01 Thread Sean Gillies
Yuta, Even: Rasterio's rio-sample command https://github.com/mapbox/rasterio/blob/master/docs/cli.rst#sample https://github.com/mapbox/rasterio/blob/master/rasterio/rio/sample.py can do any number of x, y pairs and only loads image data once. I think it's a pretty good example of how to do

[gdal-dev] gdallocationinfo.exe multiple access

2015-02-28 Thread Yuta Sato
I have a list of longitudes and latitudes for which I extract the pixel values using gdallocationinfo.exe one by one for each pairs of longitudes and latitudes using for loop. How I simultaneously get pixel values for all the list of longitudes and latitudes? My list is large, so I want faster

Re: [gdal-dev] gdallocationinfo.exe multiple access

2015-02-28 Thread Even Rouault
Le samedi 28 février 2015 18:29:01, Yuta Sato a écrit : Dear Even Rouault: Thanks for you quick response. Unfortunately, I do not know how to pipe using python script. I just know to use as follows: for x, y in zip(lons, lats): vals = subprocess.check_output([gdallocationinfo,

Re: [gdal-dev] gdallocationinfo.exe multiple access

2015-02-28 Thread Even Rouault
Le samedi 28 février 2015 17:51:47, Yuta Sato a écrit : I have a list of longitudes and latitudes for which I extract the pixel values using gdallocationinfo.exe one by one for each pairs of longitudes and latitudes using for loop. How I simultaneously get pixel values for all the list of

Re: [gdal-dev] gdallocationinfo.exe multiple access

2015-02-28 Thread Even Rouault
Le samedi 28 février 2015 19:03:21, Yuta Sato a écrit : Dear Even Rouault: Thanks for full Python script. I understood this. However, since my lons and lats are thousands, it is taking days to extract the values. So, my question is how can I sped up it. Is it possible to call several tuples