[gdal-dev] GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread heng.feng
Hi, I have used the (OSGeo4W) GDALWARP command to warp some height data image files (NTv2 transformation). When displaying one warped height data in our own application, there appear to be visible tiles on the image and some misalignments exist between those square tiles (chunks). After

[gdal-dev] Re: GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread heng.feng
http://osgeo-org.1803224.n2.nabble.com/file/n6749062/gdalwarp_chunk_problem.doc gdalwarp_chunk_problem.doc The attached file did not seem to be uploaded, so here it is. -- View this message in context:

Re: [gdal-dev] GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread Brian Case
Chris, Try passing gdalwarp -et 0.0 I am also suspicious of doing compression with the warp. you might want to do that as a second step Brian On Wed, 2011-08-31 at 23:16 -0700, heng.feng wrote: Hi, I have used the (OSGeo4W) GDALWARP command to warp some height data image files (NTv2

RE: [gdal-dev] GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread Heng Feng
Thanks for your prompt reply, Brian. I did try GDALWARP command on the same height data without the compression option and the tiling effect still exists, but I will try the option -et 0.0 and let you know it goes. BR, Chris Home: www.aircominternational.com/Home-v2 About Us:

[gdal-dev] RE: GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread heng.feng
Tried the -et 0.0 option with no luck :( Any other idea about how to get rid of this tiling effect? Thanks, Chris -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GDALWARP-Chunk-Problem-Tiling-Effect-tp6749055p6749118.html Sent from the GDAL - Dev mailing list archive

Re: [gdal-dev] RE: GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread Brian Case
Chris have you tryed other kernels? cubic, etc.. read this too http://www.gdal.org/structGDALWarpOptions.html#0ed77f9917bb96c7a9aabd73d4d06e08 perhaps someone else may have other ideas. Brian On Wed, 2011-08-31 at 23:58 -0700, heng.feng wrote: Tried the -et 0.0 option with no luck :( Any

RE: [gdal-dev] RE: GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread Heng Feng
Thanks for the link, Brian. I will take a look at it. Home: www.aircominternational.com/Home-v2 About Us: www.aircominternational.com/About-Us-v2 Consultancy: www.aircominternational.com/Consultancy-v2 Products: www.aircominternational.com/Products-v2 I-View:

[gdal-dev] Re: ogr2ogr - output WKT to console?

2011-09-01 Thread Hermann Peifer
On 31/08/2011 23:28, Even Rouault wrote: ... But it was easy to also support /dev/stdout as an alias for /vsistdout/. Added in r23016. Works as expected. Thanks for your time. Hermann ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] ECW writing (was GTiff optimisation) [SEC=UNCLASSIFIED]

2011-09-01 Thread Yves Jacolin
Hello, Thanks Even! I did not test it yet, I will see between ecwhed and the python script you wrote. Le jeudi 01 septembre 2011 01:56:04, Pinner, Luke a écrit : Does this apply to the 4.x read-only version of the ERDAS ECW/JP2 SDK as well as the old 3.3 SDK? good question :) Y. -- Yves

[gdal-dev] NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'.

2011-09-01 Thread Ole Nielsen
Developing on a code which relies on ogr.py and that has been running for a while on Ubuntu 10.04, 10.10 and 11.04 I saw for the first time today the error ERROR 1: No such field: 'CONTENTS_DAMAGE_fraction' ERROR 1: No such field: 'STRUCT_INUNDATED' ERROR 1: No such field: 'STRUCT_LOSS_AUD'

Re: [gdal-dev] GTiff optimisation

2011-09-01 Thread Yves Jacolin
Le mercredi 31 août 2011 16:45:09, Jean-Claude Repetto a écrit : Le 31/08/2011 14:13, Yves Jacolin a écrit : Another question: I have 2 000 ECW files (40 Mo each), 49 ECW files (1 Go each) and 2 ECW files (2 Go each). I worked first on 2 Go ECW file, it takes around 1 day to assign the

Re: [gdal-dev] GTiff optimisation

2011-09-01 Thread Yves Jacolin
Le jeudi 01 septembre 2011 10:39:50, Yves Jacolin a écrit : Le mercredi 31 août 2011 16:45:09, Jean-Claude Repetto a écrit : Le 31/08/2011 14:13, Yves Jacolin a écrit : Another question: I have 2 000 ECW files (40 Mo each), 49 ECW files (1 Go each) and 2 ECW files (2 Go each). I worked

[gdal-dev] read S57 files from OGR

2011-09-01 Thread andval
Hi! Sorry for my English. I trying read s-57 files by OGR. But its parsing into geometry layers (points, lines e.t.c.) instead objects (DEPARE, COALNE e.t.c.). CSV files drop into *.exe directory. -- View this message in context:

[gdal-dev] OGR GML and other drivers producing text output: stdout, /dev/stdout and /vsistdout/ (was: ogr2ogr - output WKT to console?)

2011-09-01 Thread Hermann Peifer
On 01/09/2011 00:28, Even Rouault wrote: Le jeudi 01 septembre 2011 00:19:52, Elijah Robison a écrit : ogr2ogr -f GML /vsistdout/ C:\xData\CountyUpdate\GeoFix\feb16_polygons.shp -sql select * from feb16_polygons where objectid= 2126 ogr2ogr -f KML /vsistdout/

[gdal-dev] Fwd: NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'.

2011-09-01 Thread Ole Nielsen
Sorry for the addition, but regarding the issue with SetField, I just had the same error with the inputs SetField('STRUCT_DAMAGE_fraction', 0.346734256639) To repeat, this works on every standard Ubuntu installation I have used (10.04, 10.10, 11.04). However, after installing qgis 1.7 on Ubuntu

[gdal-dev] Failed to initialize PROJ.4 with ...

2011-09-01 Thread Marco Scheuble
Hi all, I got following error-message while using gdalwarp: ERROR 6: Failed to initialize PROJ.4 with `+proj=merc+a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m+nadgri...@null +wktext +no_defs'. Situation: I've installed GDAL 1.4.4, because the CentOS on the server

Re: [gdal-dev] Failed to initialize PROJ.4 with ...

2011-09-01 Thread Ralf Suhr
Hi Marco, it's look like only a typo. Put a space between +proj=merc +a=6378137 Gr Ralf On Donnerstag 01 September 2011 12:32:27 Marco Scheuble wrote: Hi all, I got following error-message while using gdalwarp: ERROR 6: Failed to initialize PROJ.4 with `+proj=merc+a=6378137 +b=6378137

[gdal-dev] Re: Failed to initialize PROJ.4 with ...

2011-09-01 Thread Marco Scheuble
hi Ralf, thanks for your answer, but unfortunately I got the same error-message. Failed to initialize PROJ.4 with `+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m+nadgri...@null +wktext +no_defs' Marco -- View

[gdal-dev] Re: OGR GML and other drivers producing text output: stdout, /dev/stdout and /vsistdout/ (was: ogr2ogr - output WKT to console?)

2011-09-01 Thread Even Rouault
About the GML driver: I was just wondering where the .xsd file is written to when using: ogr2ogr -f gml /vsistdout/. According to the gml file's xsi:schemaLocation attribute, the schema file is `.xsd', see [1]. I can't find `.xsd' locally. When using /dev/stdout rather than /vsistdout/, I

[gdal-dev] Re: Failed to initialize PROJ.4 with ...

2011-09-01 Thread Jukka Rahkonen
Marco Scheuble mail at marco-scheuble.de writes: hi Ralf, thanks for your answer, but unfortunately I got the same error-message. Failed to initialize PROJ.4 with `+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m+nadgri...@null

Re: [gdal-dev] Re: Failed to initialize PROJ.4 with ...

2011-09-01 Thread Marco Scheuble
hey Jukka an Ralf, great work, that solved my problem :-) thanks a lot, cheers, Marco -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Failed-to-initialize-PROJ-4-with-tp6749580p6749805.html Sent from the GDAL - Dev mailing list archive at Nabble.com.

Re: [gdal-dev] ECW writing (was GTiff optimisation) [SEC=UNCLASSIFIED]

2011-09-01 Thread Even Rouault
Le jeudi 01 septembre 2011 01:56:04, Pinner, Luke a écrit : Does this apply to the 4.x read-only version of the ERDAS ECW/JP2 SDK as well as the old 3.3 SDK? I've just commited a new changeset. Now the support for updating the header info has been successfully tested on Linux 64bit with 3.3

Re: [gdal-dev] GTiff optimisation

2011-09-01 Thread Even Rouault
I know why raster data made by GDAL show RAW string as projection information, documentation explain it: When writing coordinate system information to ECW files, many less common coordinate systems are not mapped properly. If you know the ECW name for the coordinate system you can force

Re: [gdal-dev] Fwd: NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'.

2011-09-01 Thread Even Rouault
Selon Ole Nielsen ole.moller.niel...@gmail.com: Sorry for the addition, but regarding the issue with SetField, I just had the same error with the inputs SetField('STRUCT_DAMAGE_fraction', 0.346734256639) To repeat, this works on every standard Ubuntu installation I have used (10.04, 10.10,

Re: [gdal-dev] Failed to initialize PROJ.4 with ...

2011-09-01 Thread Jean-Claude Repetto
Le 01/09/2011 12:32, Marco Scheuble a écrit : GDAL 1.4.4 doesn't support EPSG:900913, so I added the following lines to 'cubewerx_extra.wkt': # # EPSG:900913 # 900913,PROJCS[Google Maps Global

[gdal-dev] RE: GDALWARP Chunk Problem (Tiling Effect)

2011-09-01 Thread heng.feng
I am still stuck. Any more ideas? Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GDALWARP-Chunk-Problem-Tiling-Effect-tp6749055p6750029.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___ gdal-dev

[gdal-dev] Re: OGR GML and other drivers producing text output: stdout, /dev/stdout and /vsistdout/

2011-09-01 Thread Hermann Peifer
On 01/09/2011 13:33, Even Rouault wrote: But yes, it lacks the special case to recognize /dev/stdout as a particular value where you must not try to write a file, which would avoid error [2]. Ticket created at http://trac.osgeo.org/gdal/ticket/4225 Yes we probably lack consistency in that

Re: [gdal-dev] read S57 files from OGR

2011-09-01 Thread Frank Warmerdam
On 11-09-01 02:45 AM, andval wrote: Hi! Sorry for my English. I trying read s-57 files by OGR. But its parsing into geometry layers (points, lines e.t.c.) instead objects (DEPARE, COALNE e.t.c.). CSV files drop into *.exe directory. Andval, This indicates that the S57 CSV files with the

Re: [gdal-dev] using GDALGridCreate in python?

2011-09-01 Thread Matt Funk
Hi, i got a question on using the gdal_grid utility: My input file looks like: lat,lon,data 24.007521,-114.111420,-0.078077 24.003864,-114.064293,-0.017523 24.000221,-114.017540,-0.069692 23.996593,-113.971153,-0.014572 23.992981,-113.925117,-0.032931 23.989380,-113.879440,-0.068089

[gdal-dev] getting 3x3 minute box of coords with gdal

2011-09-01 Thread George C
Hello,   Does anyone know how I would get a 3x3 minute box of coords with gdal given the south west corner coord?   Preferably using either C or Java.   Thanks, George___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] GTiff optimisation

2011-09-01 Thread Armin Burger
On 01/09/2011 14:23, Even Rouault wrote: As I did not use DATUM and PROJ creation option GDAL don't add it! Yes, the mapping between WKT representation and ECW DATUM/PROJ is not perfect, especially in the WKT - DATUM/PROJ direction (the other direction is simpler). You could perhaps try the

[gdal-dev] Using GDAL to update DBFs of an ESRI Shapefile ?

2011-09-01 Thread vasile
I failed in finding a programatic way of updating the attributes of an ESRI Shapefile feature (using Ruby 1.9.x on OSX Lion) therefore I wonder if I can use GDAL to accomplish this task. Let's say I have a CSV file containing the fields/rows that I want to update and an ESRI shapefile with the

Re: [gdal-dev] Using GDAL to update DBFs of an ESRI Shapefile ?

2011-09-01 Thread Even Rouault
Le jeudi 01 septembre 2011 19:29:58, vasile a écrit : I failed in finding a programatic way of updating the attributes of an ESRI Shapefile feature (using Ruby 1.9.x on OSX Lion) therefore I wonder if I can use GDAL to accomplish this task. Let's say I have a CSV file containing the

[gdal-dev] help with getting started for writing swig typemaps for GDALGridCreate()

2011-09-01 Thread Matt Funk
Hi, i would like be able to make use of GDALGridCreate() in my python code. Since it has not been mapped to python i'd like to do that myself. I don't have experience with this though, so i am looking for some direction on how to get started. I read up a little on it and i think i understand the

[gdal-dev] Re: help with getting started for writing swig typemaps for GDALGridCreate()

2011-09-01 Thread Matt Funk
Nevermind, i got confused. Downloaded the wrong code. Sorry about that. matt On 9/1/2011 12:15 PM, Matt Funk wrote: Hi, i would like be able to make use of GDALGridCreate() in my python code. Since it has not been mapped to python i'd like to do that myself. I don't have experience with this

[gdal-dev] spatialreference.org down

2011-09-01 Thread Matt Wilkie
Hey All, www.spatialreference.org is down right now (/The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later./) . Anyone know if this a glitch or something more permanent? thanks, -- matt wilkie

[gdal-dev] Java Erdas Image

2011-09-01 Thread Leidy Garzon
Hello I am working in a project using Erdas Apollo Server, I have to build a excel report from a .img file but I dont know how to get the pixel data from the image. I was trying using GDALImageReader class from imageio-ext-gdalerdasimg-1.1.1.jar but I dont know how use it, I would appreciate if

Re: [gdal-dev] Fwd: NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'.

2011-09-01 Thread Ole Nielsen
Thank you very much for replying. The output I got from you suggestion is nielso@shakti:~$ dpkg -l|grep gdal ii gdal-bin 1.8.0-2~natty2 Geospatial Data Abstraction Library - Utility programs ii libgdal1-1.6.0 1.6.3-4build3 Geospatial Data

Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)

2011-09-01 Thread Eli Adam
Ole, Is there a way of telling which one I am using (both when running commandline org2org and when importing the ogr module in python)? ogr2ogr --version will work on the command line for at least the major version number. I'm not sure about in python. HTH, Eli Cheers and thanks Ole

Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)

2011-09-01 Thread Ole Nielsen
Many thanks for the reply, but I need the Python bindings as we are using ogr deeply embedded in an application and creating of new layers using the SetField command (amongst others) is critical. Hence my worry when we get the error NotImplementedError: Wrong number of arguments for overloaded

Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)

2011-09-01 Thread Marius Jigmond
On 09/01/2011 08:23 PM, Ole Nielsen wrote: Many thanks for the reply, but I need the Python bindings as we are using ogr deeply embedded in an application and creating of new layers using the SetField command (amongst others) is critical. Hence my worry when we get the error

Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)

2011-09-01 Thread Ole Nielsen
good idea, thanks. However, it appears that qgis 1.7 is the one that depends on gdal 1.6. I am confused. (riab_env)nielso@shakti:~/dev$ sudo dpkg --purge libgdal1-1.6.0 dpkg: dependency problems prevent removal of libgdal1-1.6.0: libqgis1.7.0 depends on libgdal1-1.6.0. qgis-providers depends on

[gdal-dev] best way to make a branch for a subset of gdal?

2011-09-01 Thread Etienne Tourigny
Hi all, I would like to setup a git repository of a subset of gdal (the netcdf driver) and I would like to know the best solution. 1) the full git-svn sync as explained in http://trac.osgeo.org/gdal/wiki/UsingGitToMaintainGDALWorkflow It works, but overkill for my needs. 2) just setup a small

Re: [gdal-dev] spatialreference.org down

2011-09-01 Thread christopher.schmidt
On Sep 1, 2011, at 2:37 PM, ext Matt Wilkie wrote: Hey All, www.spatialreference.org is down right now (/The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later./) . Anyone know if this a glitch or something more

Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)

2011-09-01 Thread Marius Jigmond
From personal experience (and others') you get some odd error messages when you start mixing different versions of libgdal. I would expect the error to go away if you stick to one version of libgdal. Ubuntu-GIS should have all the packages you need without having to mix GDAL versions. -marius

[gdal-dev] Re: read S57 files from OGR

2011-09-01 Thread Andrey Shafranyuk
Thank you for your help, Frank. Then i acquire object-layer oriented model i can`t define geometry type for feature, becouse some objects have several of geometry types. But ogrinfo defined geom type for feture and write POLYGON, LINESTRING, e.t.c. I find, that for each geom type correspond one