Re: [gdal-dev] Geo::GDAL for GDAL 1.10.1?

2013-09-17 Thread Ari Jolma
On 09/17/2013 05:54 PM, Hernán De Angelis wrote: Nevermind, I found it in /usr/local/lib/perl5/... Made it work adding it to my local Perl path (@INC) I always compile the Perl bindings separately and leave the --with-perl away from configure. That's "cd swig/perl; make; make test; make ins

Re: [gdal-dev] SPATIO-TEMPORAL ANALYSIS AND BIG DATA PROCESSING USING FREE AND OPEN SOURCE SW

2013-09-21 Thread Ari Jolma
Hi Giuseppe, I wonder why are you teaching AWK, which is a really old programming language and largely been replaced by Perl(*). As you know, with Perl you could then use GDAL and many other tools, even Gnuplot. Kind regards, Ari Jolma (*) http://en.wikipedia.org/wiki/AWK On 09/20/2013 07

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-10 Thread Ari Jolma
On 10/10/2013 09:33 PM, Tamas Szekeres wrote: Dheeraj, I don't think the OSGeo.OGR.Layer.Intersection supports progress notification. You might probably have encountered a bug which should be fixed. Do you have a sample code to reproduce this issue? I would specifically interested in the actu

Re: [gdal-dev] how to implement user specified events and handlers

2013-10-15 Thread Ari Jolma
On 10/15/2013 09:10 PM, Even Rouault wrote: Martin, The closest equivalent in the GDAL/OGR code base I could think of is the possibility of defining a custom error handler from the Python bindings. For the Perl bindings I wrote a mechanism to call a Perl function via the GDALProgressFunc mech

Re: [gdal-dev] Convert GeoPDF with gdal_translate

2014-01-07 Thread Ari Jolma
On 01/07/2014 09:51 PM, Pekka Sarkola wrote: Hi! Maybe newbie problem. I download GeoPDF file from http://lib.utexas.edu/maps/topo/nicaragua/ and try to get information with gdalinfo and translate with gdal_translate. Both command response: "ERROR 4: `argelia-nicaragua-50k-3154iii-1981.pdf

Re: [gdal-dev] Convert GeoPDF with gdal_translate

2014-01-07 Thread Ari Jolma
On 01/07/2014 11:02 PM, Even Rouault wrote: Le mardi 07 janvier 2014 20:51:32, Pekka Sarkola a écrit : Hi! Maybe newbie problem. I download GeoPDF file from http://lib.utexas.edu/maps/topo/nicaragua/ and try to get information with gdalinfo and translate with gdal_translate. Both command r

Re: [gdal-dev] Regarding to the memory management in the SWIG API

2014-01-08 Thread Ari Jolma
On 01/08/2014 12:27 PM, Even Rouault wrote: Le mercredi 08 janvier 2014 11:10:58, Tamas Szekeres a écrit : Hi Devs, Is that intentional that we don't call ReleaseResultset within the destructor of the OGR Layer object? The OGR Layer object has generally no pointer to the datasource from which

Re: [gdal-dev] Convert GeoPDF with gdal_translate

2014-01-08 Thread Ari Jolma
On 01/07/2014 11:19 PM, Ari Jolma wrote: On 01/07/2014 11:02 PM, Even Rouault wrote: I assume your GDAL build has only write support for geospatial PDF (which doesn't require any third-party library), but not read support that requires linking to a third-party library, like Poppler or P

Re: [gdal-dev] Vagrant developement environment

2014-04-09 Thread Ari Jolma
On 04/09/2014 05:49 PM, Even Rouault wrote: Le mardi 08 avril 2014 06:49:36, Ivan Lucena a écrit : Hi Howard, I started it all over and I got it to work. When I logged with "vagrant ssh" this time the gdal folder was there but not installed yet. And I didn't have development tools build GDAL,

Re: [gdal-dev] Vagrant developement environment

2014-04-09 Thread Ari Jolma
On 04/09/2014 08:09 PM, Even Rouault wrote: Le mercredi 09 avril 2014 19:01:55, Ari Jolma a écrit : On 04/09/2014 05:49 PM, Even Rouault wrote: Le mardi 08 avril 2014 06:49:36, Ivan Lucena a écrit : Hi Howard, I started it all over and I got it to work. When I logged with "vagrant ssh&

Re: [gdal-dev] Asking about feature field types of Shape File (SHP) ?

2014-06-16 Thread Ari Jolma
email so I'll answer from my head. I believe you need to set the length of the Integer field to be short enough. If I remember correctly there is a ticket on the issue, but it is deemed as a feature, not a bug. Ari Jolma Thanks and regards, Tai -- View this message in context: http://

Re: [gdal-dev] Password reminder for mailing list doesn't seem to work

2014-08-18 Thread Ari Jolma
On 08/18/2014 03:54 PM, Niles, Rick wrote: Im very sorry to spam the whole list but I've been trying to unsubscribe from this list for over a year. I've tried the password reset at least ten times. It never sends me anything. Nick, It sends to me the password reminder. Anyway, I think Fra

[gdal-dev] RuntimeError no COPY in progress

2014-10-02 Thread Ari Jolma
A strange bug somewhere between OGR and PostgreSQL(?) I've created a layer with a geometry and id fields. The layer gets created ok. After inserting 500 features I get the error: RuntimeError no COPY in progress PostgreSQL logs this: 2014-10-02 19:23:03 EEST ERROR: COPY from stdin failed:

Re: [gdal-dev] RuntimeError no COPY in progress

2014-10-02 Thread Ari Jolma
On 02.10.2014 20:45, Even Rouault wrote: Le jeudi 02 octobre 2014 18:26:37, Ari Jolma a écrit : 2014-10-02 19:23:03 EEST ERROR: COPY from stdin failed: COPY terminated by new PQexec Too fast ? lol, no I don't think so. There must be something odd that happens, wrong escaping, whatever

Re: [gdal-dev] RuntimeError no COPY in progress

2014-10-02 Thread Ari Jolma
On 02.10.2014 21:57, Even Rouault wrote: Le jeudi 02 octobre 2014 20:50:33, Ari Jolma a écrit : On 02.10.2014 20:45, Even Rouault wrote: Le jeudi 02 octobre 2014 18:26:37, Ari Jolma a écrit : 2014-10-02 19:23:03 EEST ERROR: COPY from stdin failed: COPY terminated by new PQexec Could

Re: [gdal-dev] RuntimeError no COPY in progress

2014-10-02 Thread Ari Jolma
2014-10-02 19:23:03 EEST ERROR: COPY from stdin failed: COPY terminated by new PQexec Hum, definitely weird. I've an idea to debug that. If you use GDAL trunk, you could enable the OGR C API spy mechanism, as the Perl bindings used the C API. That will produce a OGR Python script (sorry for Pytho

Re: [gdal-dev] RuntimeError no COPY in progress

2014-10-02 Thread Ari Jolma
On 02.10.2014 22:35, Even Rouault wrote: Don't search more. Yes, this is a feature/defect of the PG driver currently. It has issues with transactions that make using it at the same time as a reader and a writer with the same OGR datasource will not work properly. The work around is to instancia

Re: [gdal-dev] Can't get gdal_rasterize to work... with anything.

2014-12-13 Thread Ari Jolma
Karen, For example this command on my computer gdal_rasterize -burn 1 -l is50v_mannvirki_flakar_24122013 -of GTiff -ts 1000 1000 is50v_mannvirki_flakar_24122013.shp x.tiff produces a 1000 x 1000 geotiff which is mostly zeros except ones where the polygons are. Can you tell us what command

Re: [gdal-dev] Can't get gdal_rasterize to work... with anything.

2014-12-13 Thread Ari Jolma
o make a DEM (raster where cell values are elevations) you would need to use a tool like gdal_grid with the point file. Best, Ari - kv, Karen On lau, 2014-12-13 at 09:18 +, Ari Jolma wrote: Karen, For example this command on my computer gdal_rasterize -burn 1 -l is50v_mannvirki

Re: [gdal-dev] Can't get gdal_rasterize to work... with anything.

2014-12-13 Thread Ari Jolma
, Karen On lau, 2014-12-13 at 19:09 +, Ari Jolma wrote: 13.12.2014, 18:07, Karen Pease kirjoitti: Okay, so, I think this may be getting me a bit closer to a solution. The output image of your command still wasn't viewable to me, either in gimp or gwenview. However, when I used Ima

Re: [gdal-dev] Buffering Right and Buffering Left Using Gdal/OGR

2014-12-30 Thread Ari Jolma
Dear Pratap, You're really using GEOS with GDAL just as a middleware, so perhaps you'd better try GEOS or PostGIS lists. I don't think there is a simple solution to this problem, you might try perhaps to extend the line and make a polygon out of it and then do an intersection with the buffer(?

Re: [gdal-dev] GDAL 2.0 plans/schedule ?

2015-02-26 Thread Ari Jolma
11.02.2015, 13:37, Even Rouault kirjoitti: Hi, As I'll give a talk about GDAL 2.0 at FOSS4G-NA next month, I'm curious to know if folks have things in their queue for 2.0 that they would wish to be mentionned, or more generally they want to discuss here so that we have a better picture of what i

Re: [gdal-dev] Gdal 2.0 and Python Bindings

2015-03-04 Thread Ari Jolma
26.02.2015, 08:46, Nick Ves kirjoitti: Hi List, I am curious about the gdal v2 python bindings state. To be more specific im wondering if there is going to be any functional wrappings with an upcoming beta release and if so are there any documentation of the API or how to migrate exicting code t

[gdal-dev] Perl bindings in 2.0

2015-03-05 Thread Ari Jolma
Folks, I don't know what's the amount of use of the Perl bindings, my feeling is that it is not so much since there's not so much discussion on this list or elsewhere. Anyway, I use them and want to develop them further. Version 2.0 is chance to do some improvements, so I'm trying. Perl bind

[gdal-dev] Driver oddity

2015-03-07 Thread Ari Jolma
The GDAL and OGR drivers are now basically the same but separate ones in Swig bindings, maybe it has something to do with this oddity. When I open GDAL driver "Memory", it does not advertise capability DCAP_RASTER and CreateDataset silently fails. When I open GDAL driver "MEM", it advertises

Re: [gdal-dev] Driver oddity

2015-03-07 Thread Ari Jolma
07.03.2015, 15:25, Even Rouault kirjoitti: I wrote: When I open MEM driver and then Memory driver, both behave similarly. Extremely weird. I cannt reproduce with Python. This turned out to be bad Perl code in the bindings. This describes the case http://davesource.com/Bugs/perl.5.html Ari

[gdal-dev] Bindings and typemaps

2015-03-08 Thread Ari Jolma
Even, It took me quite a while again to understand what goes on with Swig when we %apply a typemap etc. I think we could simplify the things quite a lot if we simply use typedefs and then create typemaps for the return values. For example CPLErr is never returned to the calling language (I

Re: [gdal-dev] Bindings and typemaps

2015-03-09 Thread Ari Jolma
08.03.2015, 23:49, Even Rouault kirjoitti: Le dimanche 08 mars 2015 22:20:50, Ari Jolma a écrit : Ari, Your proposal looks reasonable (but I don't pretend mastering SWIG and anticipating all side effects) and you can experiment with that if you wish. Please make sure to test the 4 supp

Re: [gdal-dev] Bindings and typemaps

2015-03-09 Thread Ari Jolma
09.03.2015, 11:18, Even Rouault kirjoitti: Le lundi 09 mars 2015 08:08:34, Ari Jolma a écrit : 08.03.2015, 23:49, Even Rouault kirjoitti: Le dimanche 08 mars 2015 22:20:50, Ari Jolma a écrit : Ari, Your proposal looks reasonable (but I don't pretend mastering SWIG and anticipating all

Re: [gdal-dev] Bindings and typemaps

2015-03-09 Thread Ari Jolma
09.03.2015, 11:18, Even Rouault kirjoitti: Or if you prefer Git, you could fork https://github.com/OSGeo/gdal I did this fork and made the changes in my copy. Then made a pull request and now it says that the Travis CI build passed. But I assume Java etc. are not tested by Travis? Ari

Re: [gdal-dev] Bindings and typemaps

2015-03-09 Thread Ari Jolma
I'm curious about the setup. Do you commit to github, which then commits to trac.osgeo.org/gdal or how is the system setup? Ari 09.03.2015, 15:31, Even Rouault kirjoitti: Le lundi 09 mars 2015 14:27:05, Ari Jolma a écrit : 09.03.2015, 11:18, Even Rouault kirjoitti: Or if you prefe

Re: [gdal-dev] Ruby bindings

2015-03-18 Thread Ari Jolma
19.03.2015, 05:55, Even Rouault kirjoitti: Hi, The build of Ruby bindings is broken in trunk. See http://trac.osgeo.org/gdal/ticket/5880 The situation is that, in years, nobody has really maintained them, so it isn't even sure that they work at runtime once compilation issues are fixed. So we m

Re: [gdal-dev] GDAL 2.0 release plans

2015-04-14 Thread Ari Jolma
13.04.2015, 15:01, Even Rouault kirjoitti: Hi, Some time ago, I mentionned my proposal of issuing a first GDAL 2.0 beta version for the end of this month (April 30th). Are there objections to sticking with that plan ? Does someone need a bit more time to finish an ongoing work ? I'm going thro

Re: [gdal-dev] GDAL 2.0 release plans

2015-04-30 Thread Ari Jolma
29.04.2015, 21:40, Even Rouault kirjoitti: Hi, I wanted to have an update from other developers to know where there are with respect to their planned schedule. I had noted that : - Dmitriy wanted to integrate his work on metadata support for various satellite imagery. I have reviewed a prelimina

Re: [gdal-dev] ogr2ogr segfault

2015-05-19 Thread Ari Jolma
19.05.2015, 11:54, Paolo Cavallini kirjoitti: Hi all. I'm consistently getting a segfault from: ogr2ogr OUTPUTLAYER.shp strade.shp strade -dialect sqlite -sql "SELECT ST_Line_Interpolate_Point( geometry , 0.5 ),* FROM 'strade' " Anything I can do for debugging? Paolo, Can you give us the bac

Re: [gdal-dev] ogr2ogr segfault

2015-05-19 Thread Ari Jolma
19.05.2015, 12:05, Even Rouault kirjoitti: Paolo, Hi all. I'm consistently getting a segfault from: ogr2ogr OUTPUTLAYER.shp strade.shp strade -dialect sqlite -sql "SELECT ST_Line_Interpolate_Point( geometry , 0.5 ),* FROM 'strade' " Anything I can do for debugging? Running under gdb and disp

Re: [gdal-dev] ogr2ogr segfault

2015-05-19 Thread Ari Jolma
Hi all. I'm consistently getting a segfault from: ogr2ogr OUTPUTLAYER.shp strade.shp strade -dialect sqlite -sql "SELECT ST_Line_Interpolate_Point( geometry , 0.5 ),* FROM 'strade' " Anything I can do for debugging? Running under gdb and displaying the stack trace. ogr2ogr OUTPUTLAYER.shp st

Re: [gdal-dev] ogr2ogr segfault

2015-05-19 Thread Ari Jolma
19.05.2015, 13:25, Even Rouault kirjoitti: ogrinfo strade.shp -dialect sqlite -sql "select spatialite_version()" "no such function" :D It's not finding the SpatiaLite at all. I'm using libsqlite3-0 from ubuntu and libspatialite is now my own compiled. I removed the ubuntu version. ldconfig

Re: [gdal-dev] ogr2ogr segfault

2015-05-19 Thread Ari Jolma
19.05.2015, 14:04, Even Rouault kirjoitti: Le mardi 19 mai 2015 13:02:48, Ari Jolma a écrit : 19.05.2015, 13:25, Even Rouault kirjoitti: ogrinfo strade.shp -dialect sqlite -sql "select spatialite_version()" "no such function" :D It's not finding the SpatiaLite at al

[gdal-dev] Suggested new typemap for the bindings

2015-05-21 Thread Ari Jolma
I defined a new type VSI_RETVAL to be used instead of int with VSI functions that return -1 in error and set errno. For the Perl bindings I defined two typemaps for this type. One which strips the return value and one which throws an error if the return value is -1. The error is strerror(errno

Re: [gdal-dev] Suggested new typemap for the bindings

2015-05-21 Thread Ari Jolma
21.05.2015, 19:07, Even Rouault kirjoitti: Ari, I regenerated the Python bindings and I'm now spammed with messages like the following that cause the tests to fail: $ python vsifile.py TEST: vsifile_1 ... swig/python detected a memory leak of type 'VSI_RETVAL *', no destructor found. swig/py

Re: [gdal-dev] Suggested new typemap for the bindings

2015-05-21 Thread Ari Jolma
Probably just adding %apply (int) {VSI_RETVAL}; is enough... ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Suggested new typemap for the bindings

2015-05-21 Thread Ari Jolma
21.05.2015, 19:30, Even Rouault kirjoitti: Le jeudi 21 mai 2015 18:22:08, Ari Jolma a écrit : Probably just adding %apply (int) {VSI_RETVAL}; is enough... Yes, indeed. So I've committed : r29225 "Add default typemap for VSI_RETVAL for Python, CSharp and Java; Regenerate python bind

[gdal-dev] GIntBig in the bindings

2015-05-22 Thread Ari Jolma
It seems that there are quite a few interface methods with two versions where the only difference is whether GIntBig is used or not. Also some methods do not have GIntBig when they actually should use it since it is in the GDAL API. I found out that at least in Swig Perl default typemaps have

Re: [gdal-dev] GIntBig in the bindings

2015-05-22 Thread Ari Jolma
22.05.2015, 11:38, Ari Jolma kirjoitti: It seems that there are quite a few interface methods with two versions where the only difference is whether GIntBig is used or not. Also some methods do not have GIntBig when they actually should use it since it is in the GDAL API. I found out that at

Re: [gdal-dev] GIntBig in the bindings

2015-05-22 Thread Ari Jolma
22.05.2015, 11:38, Ari Jolma kirjoitti: It seems that there are quite a few interface methods with two versions where the only difference is whether GIntBig is used or not. Also some methods do not have GIntBig when they actually should use it since it is in the GDAL API. I found out that at

Re: [gdal-dev] GIntBig in the bindings

2015-05-22 Thread Ari Jolma
22.05.2015, 12:44, Even Rouault kirjoitti: Le vendredi 22 mai 2015 10:46:05, vous avez écrit : 22.05.2015, 11:38, Ari Jolma kirjoitti: It seems that there are quite a few interface methods with two versions where the only difference is whether GIntBig is used or not. Also some methods do not

Re: [gdal-dev] GIntBig in the bindings

2015-05-23 Thread Ari Jolma
22.05.2015, 12:44, Even Rouault kirjoitti: 22.05.2015, 11:38, Ari Jolma kirjoitti: I must also say that we're loosing (have lost?) the benefit of having a single set of "language independent" interface files because of all the #ifdefs in them. It might be easier to have only sep

[gdal-dev] CSharp bindings question

2015-05-26 Thread Ari Jolma
Tamas, I'm working on a cleanup of the bindings, trying to reduce the number of language specifics in the common interface files. I can test Python, Java, and Perl bindings well in my Linux machine but can so far only generate and compile the CSharp wrappers. However, it seems maybe possible

Re: [gdal-dev] CSharp bindings question

2015-05-26 Thread Ari Jolma
26.05.2015, 11:38, Even Rouault kirjoitti: Le mardi 26 mai 2015 10:13:49, Tamas Szekeres a écrit : Hi Ari, I haven't tried to compile that with mono for quite a long time. I'll give it a try. However we did not follow the latest changes in the SWIG implementation with the bindings, so I'd try

Re: [gdal-dev] CSharp bindings question

2015-05-26 Thread Ari Jolma
tely remove these additions to get a stable and consistent build. Tamas 2015-05-26 11:09 GMT+02:00 Ari Jolma <mailto:ari.jo...@gmail.com>>: 26.05.2015, 11:38, Even Rouault kirjoitti: Le mardi 26 mai 2015 10:13:49, Tamas Szekeres a écrit : Hi Ari,

Re: [gdal-dev] CSharp bindings question

2015-05-29 Thread Ari Jolma
'm not sure if I can completely remove these additions to get a stable and consistent build. Tamas 2015-05-26 11:09 GMT+02:00 Ari Jolma <mailto:ari.jo...@gmail.com>>: 26.05.2015, 11:38, Even Rouault kirjoitti: Le mardi 26 mai 2015 10:13:49, Tamas Szekeres a écrit :

Re: [gdal-dev] CSharp bindings question

2015-05-29 Thread Ari Jolma
in CSharp tests (I'm not yet testing it in Perl bindings either). Ari Best regards, Tamas 2015-05-29 9:11 GMT+02:00 Ari Jolma <mailto:ari.jo...@gmail.com>>: In my fork I've now added mono-mcs into the travis test machine and "make test" to CSharp. The b

Re: [gdal-dev] CSharp bindings question

2015-05-31 Thread Ari Jolma
On 29.05.2015 11:52, Even Rouault wrote: As it might be difficult in practice to coordinate with all maintainers at the exact time were things are needed, perhaps we need some wiki page to document which new methods have been added and which languages are impacted, so that the maintainer can lo

[gdal-dev] Bindings

2015-06-04 Thread Ari Jolma
Hi, I've been trying to find a way to make the common SWIG interface files less concerned about languages and the whole system more flexible and understandable (which I see a prerequisite for further developments). My conclusion seems to be now that it is probably better to make the main fil

[gdal-dev] GIntBig in bindings

2015-06-30 Thread Ari Jolma
Even, I'm editing bindings to use GIntBig. That concerns ReadRaster and WriteRaster in Band and Dataset. Is there a reason GDALDatasetRasterIO is used instead of GDALDatasetRasterIOEx for some parts of the bindings? I think the bindings should now use only GDALDatasetRasterIOEx, at least for

[gdal-dev] Extent of a Layer

2015-06-30 Thread Ari Jolma
I wonder when the GetExtent method of a layer started to return an Envelope - at least in the Perl bindings. I'm quite certain that previously GetExtent method of Layer returned (Xmin,Ymin,Xmax,Ymax) and GetEnvelope of Geometry returned (Xmin,Xmax,Ymin,Ymax). Now they both return (Xmin,Xmax,Ym

Re: [gdal-dev] Extent of a Layer

2015-06-30 Thread Ari Jolma
On 30.06.2015 13:19, Even Rouault wrote: Le mardi 30 juin 2015 12:10:39, Ari Jolma a écrit : I wonder when the GetExtent method of a layer started to return an Envelope - at least in the Perl bindings. I'm quite certain that previously GetExtent method of Layer returned (Xmin,Ymin,Xmax

Re: [gdal-dev] Fedora 22, fatal error: gdal/ogrsf_frmts.h: No such file or directory

2015-08-20 Thread Ari Jolma
mario, I think you should ask this on a list where there are Fedora packagers. Best regards, Ari On 20.08.2015 00:44, mario chiari wrote: Hi Il giorno mer, 19/08/2015 alle 22.37 +0200, mario chiari ha scritto: Kyle Yes, now I see /usr/include/gdal/ogrsf_frmts.h Still, I am not able to b

Re: [gdal-dev] Fedora 22, fatal error: gdal/ogrsf_frmts.h: No such file or directory

2015-08-20 Thread Ari Jolma
On 20.08.2015 13:11, mario chiari wrote: Il giorno gio, 20/08/2015 alle 10.17 +0300, Ari Jolma ha scritto: mario, I think you should ask this on a list where there are Fedora packagers. Best regards, Ari yes, I did. It was suggested to "set gdal_dir enviroment variable to point to p

Re: [gdal-dev] Fedora 22, fatal error: gdal/ogrsf_frmts.h: No such file or directory

2015-08-20 Thread Ari Jolma
On 20.08.2015 14:28, mario60 wrote: Il giorno gio, 20/08/2015 alle 03.22 -0700, Ari Jolma-2 [via OSGeo.org] ha scritto: > > > Hm. I'm guessing, you have > > %define gdal_dir $HOME/linux-res-6.3/gdal > > and the error message is > > -6.3/gdal/lib/l

Re: [gdal-dev] Call for discussion on RFC 59 (v2): GDAL/OGR utilities as a library

2015-09-01 Thread Ari Jolma
On 01.09.2015 16:34, Even Rouault wrote: 2) Variant of 1). With some Python magic on **kwargs it can be automated to redirect on 1) mem_ds = gdal.Translate('', src_ds, bands = [1,2,3], format = 'MEM', progress = my_progress_method) * Other binding languages. - Perl: apparently possible

Re: [gdal-dev] Call for discussion on RFC 59 (v2): GDAL/OGR utilities as a library

2015-09-08 Thread Ari Jolma
On 07.09.2015 21:54, Even Rouault wrote: Le mardi 01 septembre 2015 23:00:37, Ari Jolma a écrit : On 01.09.2015 16:34, Even Rouault wrote: 2) Variant of 1). With some Python magic on **kwargs it can be automated to redirect on 1) mem_ds = gdal.Translate('', src_ds, bands = [1,2,

[gdal-dev] Release 1.10.2?

2015-09-09 Thread Ari Jolma
Folks, 1.10.1 was released two years ago and there seems to be >60 commits to that branch since. For example the latest Debian (Jessie) seems to still use GDAL 1.10. Is it time for 1.10.2? Ari ___ gdal-dev mailing list gdal-dev@lists.osgeo.org htt

Re: [gdal-dev] Release 1.10.2?

2015-09-09 Thread Ari Jolma
On 09.09.2015 14:11, Even Rouault wrote: Le mercredi 09 septembre 2015 12:51:15, Ari Jolma a écrit : Folks, 1.10.1 was released two years ago and there seems to be >60 commits to that branch since. For example the latest Debian (Jessie) seems to still use GDAL 1.10. Is it time for 1.1

Re: [gdal-dev] Release 1.10.2?

2015-09-09 Thread Ari Jolma
On 09.09.2015 14:21, sebastic wrote: On 2015-09-09 12:51, Ari Jolma wrote: 1.10.1 was released two years ago and there seems to be >60 commits to that branch since. For example the latest Debian (Jessie) seems to still use GDAL 1.10. Is it time for 1.10.2? For Debian there is no need

Re: [gdal-dev] How to merge tile trees

2015-09-22 Thread Ari Jolma
Dash, I have only a limited experience with tiles and gdal2tiles, so I'm not sure the correctness of this but anyway. I'd also like to see if I have understood correctly, so please anybody correct if I'm wrong. The tiles are in a two-level directory tree, where the top level has the zoom lev

Re: [gdal-dev] combine two raster data

2015-10-07 Thread Ari Jolma
{$row_admin->[$x]}{$row_lu->[$x]}++; } } for my $admin (sort keys %lu_at_admin) { for my $lu (sort keys %{$lu_at_admin{$admin}}) { say "There are $lu_at_admin{$admin}{$lu} cells of land use $lu in admin area $admin."; } } Best, Ari Jolma On 07.10.2015 23:1

Re: [gdal-dev] OGR error handling

2015-10-21 Thread Ari Jolma
On 20.10.2015 22:20, Andre Vautour wrote: Hi all, We are using OGRSFDriver::CopyDataSource() to copy a GML data source to a memory data source on v1.11.x. We have encountered a problem where one of the feature tags of a particular GML file we are trying to read is malformed. What we are s

[gdal-dev] Transactional GDAL WFS client

2015-10-26 Thread Ari Jolma
Hi, I'm developing a WFS server in Perl based on GDAL (i.e., GDAL is generating the GML the server sends to the client) and I'm testing it using the GDAL WFS client. I'm obviously ignorant on some basic issues since I'm getting an error "Cannot insert feature because we didn't manage to pars

Re: [gdal-dev] Transactional GDAL WFS client

2015-10-26 Thread Ari Jolma
o setting the type. Ari On 26.10.2015 09:15, Ari Jolma wrote: Hi, I'm developing a WFS server in Perl based on GDAL (i.e., GDAL is generating the GML the server sends to the client) and I'm testing it using the GDAL WFS client. I'm obviously ignorant on some basic issues si

[gdal-dev] GDALGrid

2015-10-28 Thread Ari Jolma
The documentation of GDALGrid in gdal_utils.h claims it to " Converts raster data between different formats." Although it is the same as gdal_grid, which creates regular grid from the scattered data, i.e., vector data source. It seems to work, also from the bindings, if one uses a vector data

Re: [gdal-dev] GDALGrid

2015-10-28 Thread Ari Jolma
On 28.10.2015 11:40, Even Rouault wrote: Following the unification, I decided to use only GDALDatasetH even when a vector datasource is expected/output. So you may have to use GDALOpenEx() to open the vector dataset so as to get a GDALDatasetH instead of the legacy OGRDataSourceH. Or perhaps we

Re: [gdal-dev] GDALGrid

2015-10-28 Thread Ari Jolma
On 28.10.2015 12:00, Even Rouault wrote: Introducing more - exclusive - uses of OGRDataSource wouldn't really be consistant with the unification. Perhaps as additional possibilities if there's a way of doing so. ok, I'll add a method to force a OGR data source object into a GDAL dataset into

Re: [gdal-dev] forceToPoly causes crash when converting geom to json

2015-11-02 Thread Ari Jolma
No problems at least on the other side of bindings: my $g = Geo::OGR::Geometry->new( WKT=>'MULTIPOLYGON(((1 1,5 1,5 5,1 5,1 1),(2 2, 3 2, 3 3, 2 3,2 2)),((3 3,6 2,6 4,3 3)))'); my $h = $g->ForceToPolygon; say $h->AsText; say $h->As(Format=>'GeoJSON'); output: POLYGON ((1 1,5 1,5 5,1 5,1

[gdal-dev] 2.0.2, when?

2015-11-09 Thread Ari Jolma
2.0.2 would be quite important for me as it contains a fix to #6149. I actually already released a module to CPAN, which depends on that bug fixed. ;) 17 other tickets have been filed and none are active. https://trac.osgeo.org/gdal/roadmap I know that it won't happen without somebody making

[gdal-dev] Wrapping VSIStdoutSetRedirection

2015-11-10 Thread Ari Jolma
I'd like to wrap VSIStdoutSetRedirection. I would use it for streaming generated data in a web environment. The preferred way to stream data out nowadays in Perl web development is to use a write function in Perl space - i.e., not the standard print to stdout. I can capture stdout and achieve

Re: [gdal-dev] Wrapping VSIStdoutSetRedirection

2015-11-10 Thread Ari Jolma
Maybe because I'm an idiot. :) Too long coding today. 10.11.2015 19.42 "Even Rouault" kirjoitti: > Le mardi 10 novembre 2015 18:22:19, Ari Jolma a écrit : > > I'd like to wrap VSIStdoutSetRedirection. > > > > I would use it for streaming generated data in

[gdal-dev] OGR_Dr_Open deprecated

2015-11-13 Thread Ari Jolma
OGR_Dr_Open became deprecated in 2.0 but it is still the main method to open vector datasets in the bindings. I just realized that I would need one method to open all data sets. OpenEx seems to be it but I would still need to cast the object into a Dataset or a DataSource. Maybe OpenEx should

Re: [gdal-dev] OGR_Dr_Open deprecated

2015-11-13 Thread Ari Jolma
On 13.11.2015 15:58, Even Rouault wrote: Le vendredi 13 novembre 2015 14:48:02, Ari Jolma a écrit : OGR_Dr_Open became deprecated in 2.0 but it is still the main method to open vector datasets in the bindings. I just realized that I would need one method to open all data sets. OpenEx seems

Re: [gdal-dev] OGR_Dr_Open deprecated

2015-11-13 Thread Ari Jolma
On 13.11.2015 16:37, Even Rouault wrote: Not sure if it is a "swig" limitation, or something in the Perl bindings. But the Python and Java bindings for sure can use the vector part of GDALDatasetShadow. Ok, I've missed all that. Sigh. Until now there's been a strict difference between raste

Re: [gdal-dev] OGR_Dr_Open deprecated

2015-11-13 Thread Ari Jolma
er and DataSource classes completely and leave only GDAL Driver and Dataset classes. That's a backwards incompatible change and it should have been made in the 2.0 but it'll happen in 2.1 of the Perl bindings. Ari On 13.11.2015 16:37, Even Rouault wrote: Le vendredi 13 novembre 201

[gdal-dev] No IDATs written into file

2015-11-14 Thread Ari Jolma
I'm using the Translate function to clip tiles from a larger raster using Perl bindings. I'm clipping into PNG files. This is in a web service environment, i.e., several workers listening to a client. The Translate fails in pngwrite.c, in png_write_end with error "No IDATs written into file".

Re: [gdal-dev] No IDATs written into file

2015-11-14 Thread Ari Jolma
On 14.11.2015 18:59, Even Rouault wrote: Le samedi 14 novembre 2015 17:46:47, Ari Jolma a écrit : I'm using the Translate function to clip tiles from a larger raster using Perl bindings. I'm clipping into PNG files. This is in a web service environment, i.e., several workers list

Re: [gdal-dev] No IDATs written into file

2015-11-14 Thread Ari Jolma
2015 17:46:47, Ari Jolma a écrit : I'm using the Translate function to clip tiles from a larger raster using Perl bindings. I'm clipping into PNG files. This is in a web service environment, i.e., several workers listening to a client. Ari, Are the workers multi-threaded or each in t

Re: [gdal-dev] No IDATs written into file

2015-11-14 Thread Ari Jolma
Ari On 14.11.2015 18:59, Even Rouault wrote: Le samedi 14 novembre 2015 17:46:47, Ari Jolma a écrit : I'm using the Translate function to clip tiles from a larger raster using Perl bindings. I'm clipping into PNG files. This is in a web service environment, i.e., several workers

Re: [gdal-dev] GCPsToGeoTransform returns wrong values

2015-11-18 Thread Ari Jolma
Bar, I think you are setting the GCPs up wrongly if you want them to be at the corners. GCP(LeftDown.X, LeftDown.Y, LeftDown.Z, Height - 0.5, null, "4") does not have 0 before Height-0.5. GCPsToGeoTransform checks the special case of GCPs in rectangular shape and in top-left, top-right, bo

Re: [gdal-dev] GCPsToGeoTransform returns wrong values

2015-11-18 Thread Ari Jolma
o:gdal-dev-boun...@lists.osgeo.org] *On Behalf Of *Ari Jolma *Sent:* 18 November 2015 11:35 *To:* gdal-dev@lists.osgeo.org *Subject:* Re: [gdal-dev] GCPsToGeoTransform returns wrong values Bar, I think you are setting the GCPs up wrongly if you want them to be at the corners. GCP(LeftDown.X,

Re: [gdal-dev] GeoTransform confusion

2015-11-19 Thread Ari Jolma
Simon, If you set the configuration option GTIFF_POINT_GEO_IGNORE to "TRUE" instead of the default "FALSE" the offset will not happen. I've tested this and it works. The configuration option needs to be set in code, it is not a GTiff creation option. I'm not quite sure why you need to do th

Re: [gdal-dev] GeoTransform confusion

2015-11-19 Thread Ari Jolma
On 19.11.2015 11:26, Even Rouault wrote: GDAL version: GDAL 1.11.2, released 2015/02/10 Simon, Regarding the fact that the geotiff file looses the half-pixel shift, it seems to be due to the absence of a SRS. If I do "gdal_translate test.asc test.tif - a_srs EPSG:32630" for example, then the

[gdal-dev] Slow warping

2015-11-27 Thread Ari Jolma
I warped an image for which I estimated a geotransform. I'm wondering why it took so long (hours). My source image is a jpeg, lets call it src.jpg. I add the geotransform as a jpgw-file. This goes fast: gdal_translate -of JPEG src.jpg test.jpg Input file size is 6048, 4032 0...10...20...30..

Re: [gdal-dev] Slow warping

2015-11-27 Thread Ari Jolma
27.11.2015, 14:10, Even Rouault kirjoitti: Try setting GDAL_CACHEMAX to 150 (6048 * 4032 * 3 = 73 MB. and a x 2 security margin) This reduces the time into 4 s. Quite a bit reduction from several hours. Maybe the default is too low? 150 MB does not seem much. Ari _

Re: [gdal-dev] Changing default value for GDAL_CACHEMAX ? (was Re: Slow warping)

2015-12-01 Thread Ari Jolma
28.11.2015, 17:13, Even Rouault kirjoitti: Le vendredi 27 novembre 2015 13:43:34, Ari Jolma a écrit : 27.11.2015, 14:10, Even Rouault kirjoitti: Try setting GDAL_CACHEMAX to 150 (6048 * 4032 * 3 = 73 MB. and a x 2 security margin) This reduces the time into 4 s. Quite a bit reduction from

[gdal-dev] linker errors

2015-12-16 Thread Ari Jolma
I've got linker errors from some recent commits. I guess they are namespace issues. libgdal.so: undefined reference to `ods_formulalex(ods_formula_node**, ods_formula_parse_context*)' libgdal.so: undefined reference to `JPGDatasetCommon::EmitMessage(jpeg_common_struct*, int)' libgdal.so: undef

Re: [gdal-dev] linker errors

2015-12-16 Thread Ari Jolma
I think I did not. I just did configure. Hm. There should almost be make clean in configure, methinks. Thanks. 16.12.2015 17.07 "Even Rouault" kirjoitti: > Le mercredi 16 décembre 2015 14:28:17, Ari Jolma a écrit : > > I've got linker errors from some recent c

Re: [gdal-dev] calculating geotransform for a given bound Lat Long in EPSG:4326

2015-12-16 Thread Ari Jolma
17.12.2015, 09:32, Gane R kirjoitti: How a geotransform values are calulated. That depends on what you got. If you have a list of points in map coordinates and the same points in pixels then they can be computed with linear regression. I believe gdalwarper does it for example. You can do it

Re: [gdal-dev] gdal_calc.py gives different answers

2016-01-04 Thread Ari Jolma
I have no experience with gdal_calc.pv nor do I know about its internals anything beside it being implemented with numpy. So I comment this only from a general point of view. 05.01.2016, 09:00, Avyav Kumar kirjoitti: This is a rather interesting error, which is listed here (https://trac.osgeo.

Re: [gdal-dev] Intersection of two Layers

2016-01-18 Thread Ari Jolma
18.01.2016, 11:56, Kai Muehlbauer kirjoitti: Hi, at the moment I calculate the intersection of two OGR Layers (A, B) by iterating over features/geometries (GA) of layer A and then calling GA.Intersection(GB) for every Feature/Geometry (GB) of B. I set a spatial filter for layer B with every G

Re: [gdal-dev] Intersection of two Layers

2016-01-22 Thread Ari Jolma
22.01.2016, 10:06, Kai Muehlbauer kirjoitti: To quickly check if there is an improvement I used the python shapely package. Converting the outer loop geometry to an shapely prepared geometry and calling 'contains()' with the inner loop geometries to find those fully contained geometries I

Re: [gdal-dev] Intersection of two Layers

2016-01-22 Thread Ari Jolma
22.01.2016, 12:48, Kai Muehlbauer kirjoitti: Am 22.01.2016 um 10:52 schrieb Ari Jolma: 22.01.2016, 10:06, Kai Muehlbauer kirjoitti: To quickly check if there is an improvement I used the python shapely package. Converting the outer loop geometry to an shapely prepared geometry and calling

  1   2   3   4   5   6   >