[gdal-dev] JPEG2000 OpenCL Update

2014-03-27 Thread Aaron Boxer
Hello There, Just wanted to let y'all know that I have implemented the OpenCL coefficient decoding portion of the j2k decode workflow. I am testing it with select images from OpenJPEG. Remaining steps are: dequantization, inverse wavelet transform, and colour decoding. Cheers, Aaron ___

Re: [gdal-dev] "Syncing" two rasters together...

2014-03-27 Thread Jonathan Greenberg
Hi Tim: Not quite -- all I'm trying to do is basically crop (or expand) one raster to another's extent, but given two images may have their upper left coordinates somewhat "out of sync" (so the pixels don't line up perfectly with one another), I'm a bit unclear on how to do this -- the goal is to

Re: [gdal-dev] "Syncing" two rasters together...

2014-03-27 Thread Tim Keitt
On Thu, Mar 27, 2014 at 4:26 PM, Jonathan Greenberg wrote: > GDALers: > > What is the most efficient way, given a "reference raster", and an > arbitrary raster (we'll call it "unsynced") synced together to allow > them to be stacked: the output of this should be the unsynced raster > with the same

[gdal-dev] "Syncing" two rasters together...

2014-03-27 Thread Jonathan Greenberg
GDALers: What is the most efficient way, given a "reference raster", and an arbitrary raster (we'll call it "unsynced") synced together to allow them to be stacked: the output of this should be the unsynced raster with the same number of rows, columns, pixel size, upper left coordinates, and proje

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Dmitriy Baryshnikov
Hi Etienne, Yes, on first stage some format will be dropped. But exist GDAL 1.x will help where. It seems to me that rewriting of formats will not so hard as develop new one. NetCDF is popular form and should be rewrite in first stage. We can create a wiki page with table of format and stages

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Etienne Tourigny
Dmitry - I am not sure that a wholescale refactor is the way to go - many formats will be dropped because quite a few do not have active maintainers, and development is mostly on a volunteer basis (correct me if I am wrong, Even). As an example, the netcdf driver has been mostly maintained by myse

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Dmitriy Baryshnikov
Hi Even, I think that we can discuss the starting point for 2.0. You start with idea "...to "refactor" a code base of 1.2 million lines.." Maybe we have to start from white list - create ideal (brilliant) set of classes and create a well-designed foundation for GDAL. Also rewrite several wide u

Re: [gdal-dev] Open WMS datasets with GDAL Java

2014-03-27 Thread Etienne Tourigny
Have you tried running in debug mode (CPL_DEBUG=ON)? On Thu, Mar 27, 2014 at 3:37 PM, Fabio Rinnone wrote: > Il 27/03/2014 18:27, Even Rouault ha scritto: > > Selon Fabio Rinnone : > >> Hi, I'm trying to open datasets of WMS service with GDAL Java warp in an > >> Android app project with native

Re: [gdal-dev] Open WMS datasets with GDAL Java

2014-03-27 Thread Fabio Rinnone
Il 27/03/2014 18:27, Even Rouault ha scritto: > Selon Fabio Rinnone : >> Hi, I'm trying to open datasets of WMS service with GDAL Java warp in an >> Android app project with native support. Opening datasets always returns >> null datasets. An example WMS is the following: >> >> http://kaart.maakaar

Re: [gdal-dev] Open WMS datasets with GDAL Java

2014-03-27 Thread Even Rouault
Selon Fabio Rinnone : > Hi, I'm trying to open datasets of WMS service with GDAL Java warp in an > Android app project with native support. Opening datasets always returns > null datasets. An example WMS is the following: > > http://kaart.maakaart.ee/geoserver/wms > > I use following statements: >

[gdal-dev] Open WMS datasets with GDAL Java

2014-03-27 Thread Fabio Rinnone
Hi, I'm trying to open datasets of WMS service with GDAL Java warp in an Android app project with native support. Opening datasets always returns null datasets. An example WMS is the following: http://kaart.maakaart.ee/geoserver/wms I use following statements: name = "WMS:http://kaart.maakaart.e

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Even Rouault
Selon Ivan Lucena : > Hi there, > > That is a great discussion and I applause Evens efforts and all the > contributions, so but don't get me wrong by asking that: > > What do we want to accomplish with that class hierarchy? > > Will GDAL 2.0 be able to do thinks like: > > $ gdalinfo > > And the p

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Mateusz Łoskot
On 27 March 2014 16:08, Even Rouault wrote: > Selon Ivan Lucena : > >> Hi there, >> >> That is a great discussion and I applause Evens efforts and all the >> contributions, so but don't get me wrong by asking that: >> >> What do we want to accomplish with that class hierarchy? >> >> Will GDAL 2.0

[gdal-dev] HOW-TO convert USGS topo to GTiff

2014-03-27 Thread Smith, Michael
I have had several people send me follow-up emails about converting the USGS eTopos (you can download these from store.usgs.gov), so I thought it might make sense to just post this to the list as a HOW-TO. Apologies for cross-post. The challenge is to take the GeoPDF that you download from USGS

Re: [gdal-dev] Compile gdal/ogr with mingw

2014-03-27 Thread David Tran
Hi Even Thanks for your input. i586-mingw32msvc in Ubuntu 13.10 compiles gdal without errors. Some test code: #include #include "ogrsf_frmts.h" int main() { std::cerr << "Hello World!" << std::endl; OGRRegisterAll(); } Result: "Hello World!" does not show in the console w

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Ivan Lucena
Hi there, That is a great discussion and I applause Evens efforts and all the contributions, so but don't get me wrong by asking that: What do we want to accomplish with that class hierarchy? Will GDAL 2.0 be able to do thinks like: $ gdalinfo And the proposed classes will be able to figure

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Even Rouault
Selon Florent JITIAUX : > 2014-03-27 11:24 GMT+01:00 Even Rouault : > > > Hi, > > > > > Hi all, > > > > > > MY opinion is that's not a really good way to count how many classes you > > > will have and trying to have minimal classes. > > > > > > Drawing a model with UML is not easy : it's not easy

Re: [gdal-dev] Compile gdal/ogr with mingw

2014-03-27 Thread Even Rouault
I haven't tried recently with mingw binaries in Windows, but the build with the i586-mingw32msvc cross compiler from Linux works and the resulting executable can pass the regression tests. > > Hi to everyone > > Did somebody compile gdal/ogr with mingw? > > I tried to compile gdal (static/shared)

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Mateusz Łoskot
On 27 March 2014 13:40, Etienne Tourigny wrote: > How about multiple inheritance for mixed class? Say you have a class for > rasters and a class for vectors, and a dataset that would support both types > would inherit from these two base classes. Is that what you mean by > composite? I meant se

Re: [gdal-dev] Compile gdal/ogr with mingw

2014-03-27 Thread David Tran
Hi to everyone Did somebody compile gdal/ogr with mingw? I tried to compile gdal (static/shared) with MinGW without success of calling the function OGRRegisterAll() in QT 5.2.1 (C++). Starting the binary results in: > The program has unexpectedly finished. I used those tutorials: http://gvsi

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Etienne Tourigny
How about multiple inheritance for mixed class? Say you have a class for rasters and a class for vectors, and a dataset that would support both types would inherit from these two base classes. Is that what you mean by composite? Etienne On Thu, Mar 27, 2014 at 9:32 AM, Mateusz Łoskot wrote:

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Florent JITIAUX
2014-03-27 11:24 GMT+01:00 Even Rouault : > Hi, > > > Hi all, > > > > MY opinion is that's not a really good way to count how many classes you > > will have and trying to have minimal classes. > > > > Drawing a model with UML is not easy : it's not easy to have a good model > > from the beginning,

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Mateusz Łoskot
On 27 March 2014 11:24, Even Rouault wrote: >> >> Is it possible to put it as a member in classes ? > > That could have been a way of doing it, yes. Always the debate composition vs > inheritance. The base classes for raster and vector datasets could have common base class. The mixed raster/vecto

Re: [gdal-dev] gdal-dev Digest, Vol 118, Issue 58

2014-03-27 Thread Etienne Tourigny
On Thu, Mar 27, 2014 at 3:21 AM, ridgewang wrote: > Hi, > I have 2 suggestions: > 1. supply an option that can build the gdal using the static c++ runtime > library, so we can use it not depends on the msvcr80.dll and msvcp80.dll. > > 2. provide a gdal_merge.exe utility program with the same

Re: [gdal-dev] gdal_merge gdal-dev Digest, Vol 118, Issue 59

2014-03-27 Thread ridgewang
Hi, I need to merge two images and want get a smooth blending effect in the overlap region of the two images. I have not get a successful result by trying gdal_merge.py. Using the gdalwarp,I just got a result that one image replaces the other within the overlay region and a sharpen seamline

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Even Rouault
Hi, > Hi all, > > MY opinion is that's not a really good way to count how many classes you > will have and trying to have minimal classes. > > Drawing a model with UML is not easy : it's not easy to have a good model > from the beginning, it's not easy to name all members and methods > correctly,

Re: [gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

2014-03-27 Thread Florent JITIAUX
Hi all, MY opinion is that's not a really good way to count how many classes you will have and trying to have minimal classes. Drawing a model with UML is not easy : it's not easy to have a good model from the beginning, it's not easy to name all members and methods correctly, and the worst is in

Re: [gdal-dev] gdal_merge (was: gdal-dev Digest, Vol 118, Issue 58)

2014-03-27 Thread Jean-Claude Repetto
On 27/03/2014 07:21, ridgewang wrote: > Hi, > I have 2 suggestions: > 1. supply an option that can build the gdal using the static c++ runtime > library, so we can use it not depends on the msvcr80.dll and msvcp80.dll. > Hi, You can use gdalwarp to merge several files.