Re: [gdal-dev] PostgreSQL

2011-09-26 Thread Andy Colson
On Thu, Sep 22, 2011 at 9:18 PM, Andy Colson mailto:a...@squeakycode.net>> wrote: Hi List, I'm using ogr2ogr to convert (and reproject) data from shapefile to PG, if I use insert statements the null dates are not a problem, but if I set PG_USE_COPY=YES, then I get errors: ERROR 1:

[gdal-dev] DXF export and text label

2011-09-26 Thread Lorenzo Moretti
Hi Everyone ogr2ogr is a great tool for converting any format. Now there is DXF format and ogr2ogr works very well with polygons, lines and points. There is a problem if I want to export a DXF file with the text from a field. When I have a point shape file with text field ogr2ogr only export a D

Re: [gdal-dev] OGR SQL implicit conversions

2011-09-26 Thread Even Rouault
Selon Tamas Szekeres : > Hi Even, > > Thanks for the valuable comments, I've modified the patch in accordance with > your suggestions. > http://trac.osgeo.org/gdal/attachment/ticket/4259/swq_op_general.cpp.patch > Looks good to me. > Best regards, > > Tamas > > > > 2011/9/23 Even Rouault > > >

Re: [gdal-dev] Problem with type of data in ESRI SHAPEFILE

2011-09-26 Thread Guilhain Averlant
It Works ! Thanks ! Guilhain 2011/9/26 Jay L. > What about something like this? The block in the middle copies your fields > and field definitions. The def statement handles copying the individual > fields for each feature. Your script then goes in an modifies the geometry. > > > This does

Re: [gdal-dev] Problem with type of data in ESRI SHAPEFILE

2011-09-26 Thread Jay L.
What about something like this? The block in the middle copies your fields and field definitions. The def statement handles copying the individual fields for each feature. Your script then goes in an modifies the geometry. This does roughly the same thing that Frank suggested, but is more scri

Re: [gdal-dev] Problem with type of data in ESRI SHAPEFILE

2011-09-26 Thread Frank Warmerdam
Guilhain, The problem is that you aren't setting the precison when you create the new fields, so it is defaulting to precision zero (integer). You will need a call something like: newField.SetPrecision( 11 ) Best regards, On Mon, Sep 26, 2011 at 9:09 AM, Guilhain Averlant wrote: > Hi Every

Re: [gdal-dev] OGR SQL implicit conversions

2011-09-26 Thread Tamas Szekeres
Hi Even, Thanks for the valuable comments, I've modified the patch in accordance with your suggestions. http://trac.osgeo.org/gdal/attachment/ticket/4259/swq_op_general.cpp.patch Let me know if you find something else that can be changed. I've just added a warning if the conversion fails, but I'm

[gdal-dev] Re: OGR SQL expression parser overflow

2011-09-26 Thread Tamas Szekeres
Just an update to this, I've created a ticket for this problem, and attached a patch which seems to be working in my local set-up. http://trac.osgeo.org/gdal/ticket/4262 Due to the lack of my knowledge about bison let me know if one have a more appropriate solution to this problem. Any objection

[gdal-dev] Re: GDAL link problem on MS Visual Express 2010

2011-09-26 Thread canduc17
I solved with the following steps: 1 - right click on project name in "Property Manager" window; 2 - click on properties; 3 - go to Configuration Properties --> Linker --> Input --> Additional Dependencies; 4 - Add gdal_i.lib (which should be installed by nmake into $GDAL_HOME\lib) Now the linkin

Re: [gdal-dev] Installing GDAL with GEOS and Python Bindings on Ubuntu Linux Natty Narwhal 11.04

2011-09-26 Thread Anton Korosov
Hi first install geos library using Ubuntu software center (libgeos, libgeos-dev) then download gdal source and configure it: ./configure --with-python -with-geos=yes then make sudo make install If that doesn't work give me a sign, I'll publish more detailed instructions. Good luck! Anton p