Re: [gdal-dev] Does everything have to be separated into bands?

2009-09-30 Thread Even Rouault
Selon tasmi...@rockwellcollins.com: GDAL can also read at the dataset level. Look at the GDALRasterIO() / GDALDataset::RasterIO() call. By adjusting the nPixelSpace, nLineSpace and nBandSpace values, you can fill a pixel-interleaved buffer, or a line-interleaved buffer or a band-interleaved buffer

[gdal-dev] Does everything have to be separated into bands?

2009-09-30 Thread tasmith3
Hi there, I am working on software that takes geospatial imagery (usually GeoTIFFs) and converts it into textures that are used in our rendering engine. The application also takes terrain files and generates terrain geometry. When we process our imagery (RGB), we want to do so on a per pixel

[gdal-dev] Re: can ogr2ogr split polygons that cross 180 degree longitude

2009-09-30 Thread Hermann Peifer
Even wrote: The crash was due to a bug in my code in fact. I've also reworked the algorithm to operate on single polygons instead of multipolygons. That seems to be enough to avoid triggering the GEOS topology exception in the countries.shp case. So if you apply r17716 + r17717, it should work o

Re: [Gdal-dev] ogr2ogr creation of internal object id (oid) column in pgsql table

2009-09-30 Thread Even Rouault
Selon Ted Spradley : When OGR creates a PG table, the name of the primary key is 'OGC_FID'. So, you just have to replace 'oid' by 'OGC_FID' in your example. > > Hi, > > I have used ogr2ogr to load data from shapefile countyp020.shp into > db=project1, following Tyler Mitchell's 'Web Mapping Illus

Re: [gdal-dev] Referencing GDAL in an article

2009-09-30 Thread Markus Neteler
On Wed, Sep 30, 2009 at 2:28 PM, Agustin Lobo wrote: > Which is the appropriate reference to GDAL > for being included in an article? For citing GRASS GIS, we suggest a list of citations, see http://grass.osgeo.org/download/index.php#citing -> for example: "GRASS Development Team, 2009. Geograph

[Gdal-dev] ogr2ogr creation of internal object id (oid) column in pgsql table

2009-09-30 Thread Ted Spradley
Hi, I have used ogr2ogr to load data from shapefile countyp020.shp into db=project1, following Tyler Mitchell's 'Web Mapping Illustrated'. > ogr2ogr -f "PostgreSQL" PG:dbname=project1 countyp020.shp Tyler explains that: to optimize for Mapserver we can create an index on the unique ID for the

[gdal-dev] Re: can ogr2ogr split polygons that cross 180 degree longitude

2009-09-30 Thread Even Rouault
Selon Hermann Peifer : The crash was due to a bug in my code in fact. I've also reworked the algorithm to operate on single polygons instead of multipolygons. That seems to be enough to avoid triggering the GEOS topology exception in the countries.shp case. So if you apply r17716 + r17717, it shou

[gdal-dev] Annotations from S-57 Files

2009-09-30 Thread Michael Childs
I am using the S57Reader class to read in S-57 data files and a user has reported that while applications like SeeMyEnc show annotation points with text, I cannot seem to find any returned features that include those annotations. There is a sample data file at http://www.globalmapper.com/Incoming/1

Re: [gdal-dev] Performance issues with gdal vrt

2009-09-30 Thread Greg Coats
Because JPEG2000 images inherently contain a pyramid of reduced resolution images, the Kakadu Software demo application kdu_expand, that is available for free for Win32, Mac OS X, Linux, Solaris, provides a very fast way to create reduced resolution overview images. For me, the kdu_expand -

Re: [gdal-dev] Performance issues with gdal vrt

2009-09-30 Thread Craig Leat
Hi Frank and Even I need to investigate further, but I am suspecting that this issue may be specific to the MrSid format. My tests have been with a collection of 24 sid images. I just went back to an older project where I have 188 tiles in GeoTiff format (and similar base resolution) and QGIS work

[gdal-dev] Re: Preserving Character Encoding

2009-09-30 Thread Nicholas Efremov-Kendall
Thank you Hermann! On Tue, Sep 29, 2009 at 7:20 PM, Hermann Peifer wrote: > Nicholas Efremov-Kendall wrote: > >> Hi all, >> >> Just a quick question: This isn't a huge file, three entities, would it >> work to just change the characters in a text editor? >> >> > Yes. Just make sure that your tex

Re: [gdal-dev] Performance issues with gdal vrt

2009-09-30 Thread Even Rouault
Selon Frank Warmerdam : Craig, Sorry for giving you wrong directions. Frank is obviously right. I somehow got confused by the fact that the VRT driver doesn't expose overviews, but its implementation of RasterIO() can indeed use overviews of the underlying rasters. I could check it with OpenEV by

Re: [gdal-dev] Performance issues with gdal vrt

2009-09-30 Thread Frank Warmerdam
Even Rouault wrote: Selon Craig Leat : Craig, I suppose you are speaking about bad performance when not viewing the VRT at its full resolution ? (at full resolution, the overhead of VRT should be small hopefully) I'm afraid there's little you can do to improve the situation in a simple way. As

Re: [gdal-dev] Performance issues with gdal vrt

2009-09-30 Thread Craig Leat
Hi Even Thanks for your valuable comments. If I understand you correctly I can either access the overviews in the tiles by hand crafting vrt files for each overview level or sacrifice disk space and generate external overviews using your gdalwarp trick [1]. A comment from Frank [2] back in 2005 c

[gdal-dev] Referencing GDAL in an article

2009-09-30 Thread Agustin Lobo
Which is the appropriate reference to GDAL for being included in an article? Thanks Agus ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Performance issues with gdal vrt

2009-09-30 Thread Even Rouault
Selon Craig Leat : Craig, I suppose you are speaking about bad performance when not viewing the VRT at its full resolution ? (at full resolution, the overhead of VRT should be small hopefully) I'm afraid there's little you can do to improve the situation in a simple way. As you noticed, the VRT

Re: [gdal-dev] Looking for libecwj2.dll Win-64Bit version

2009-09-30 Thread Tamas Szekeres
Paul, You can download any of the -dev packages containing the required libs to compile against libecw at this location: http://vbkto.dyndns.org/sdk/ Best regards, Tamas 2009/9/30 Paul Meems : > Hi all, > > We're using GDAL and libecwj2.dll in our application: MapWindow GIS > (www.mapwindow.

Re: [gdal-dev] Looking for libecwj2.dll Win-64Bit version

2009-09-30 Thread Mateusz Loskot
Paul Meems wrote: Mateusz, I'll get the compiler and compilation procedure (command, flags) tonight and if needed I'll send them to the list. I can set WIN32 but don't I need WIN64? No, you don't as it's always defined: Windows 32-bit: WIN32 Windows 64-bit: WIN32 && WIN64 Best regards, --

Re: [gdal-dev] Looking for libecwj2.dll Win-64Bit version

2009-09-30 Thread Mateusz Loskot
Paul Meems wrote: Mateusz, I'm getting error in NCSTypes.h #error : unknown machine type will require custom 64 bit variables It looks like there may be something misconfigured, build configuration, and "#ifdef WIN32" is not being caught (WIN32 not defined), so it skips to unknown platform cl

Re: [gdal-dev] Looking for libecwj2.dll Win-64Bit version

2009-09-30 Thread Mateusz Loskot
Paul Meems wrote: GDAL is compiling great, except when using libecwj2.dll. Because I can 't compile the libecwj2 library for Win-64Bit. In some of the header files is stated when compiling to a 64-Bit version raise an error. What errors? It's said to say, but code of libecwj is well-known [1]

[gdal-dev] Performance issues with gdal vrt

2009-09-30 Thread Craig Leat
Hi I am having performance issues with gdal raster vrt files and since I am not experienced with this format I am hoping someone can offer some advice. I built the vrt files from a collection of MrSid images using gdalbuildvrt. I then used sed to add the tag and changed from to . I am using QGIS

[gdal-dev] Looking for libecwj2.dll Win-64Bit version

2009-09-30 Thread Paul Meems
Hi all, We're using GDAL and libecwj2.dll in our application: MapWindow GIS ( www.mapwindow.org) I'm trying to compile a Win-64Bit version of MapWindow. To do that I need to compile all supporting libraries to Win-64Bit version as well. GDAL is compiling great, except when using libecwj2.dll. Beca