Re: [gdal-dev] Setting DataType in ReadAsArray

2012-10-16 Thread Chris Barker
On Tue, Oct 16, 2012 at 1:59 PM, Antonio Falciano wrote: >> Does anybody know of a way to set the data type in the call ReadAsArray. >> It is currently reading a field as an unsigned int and it needs to be read >> as a signed int. > ReadAsArray returns substantially a numpy array, so you can use

Re: [gdal-dev] Setting DataType in ReadAsArray

2012-10-16 Thread elliott
> Il 16/10/2012 22.05, elli...@cpi.com ha scritto: >> Hello, >> >> Does anybody know of a way to set the data type in the call ReadAsArray. >> It is currently reading a field as an unsigned int and it needs to be >> read >> as a signed int. > > Hi, > ReadAsArray returns substantially a numpy array,

Re: [gdal-dev] Setting DataType in ReadAsArray

2012-10-16 Thread Antonio Falciano
Il 16/10/2012 22.05, elli...@cpi.com ha scritto: Hello, Does anybody know of a way to set the data type in the call ReadAsArray. It is currently reading a field as an unsigned int and it needs to be read as a signed int. Hi, ReadAsArray returns substantially a numpy array, so you can use np fu

[gdal-dev] Setting DataType in ReadAsArray

2012-10-16 Thread elliott
Hello, Does anybody know of a way to set the data type in the call ReadAsArray. It is currently reading a field as an unsigned int and it needs to be read as a signed int. Thanks! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.or

Re: [gdal-dev] ORA-01406 error when reading many attributes from Oracle

2012-10-16 Thread Eli Adam
Jukka, > Could it be possible that OCI driver reserves too little of some resourses and > fails because of that with large records? I am now running a query with > minimum > set of columns in my query and ogr2ogr is running well and I believe it will > convert all the million rows from the view

[gdal-dev] ORA-01406 error when reading many attributes from Oracle

2012-10-16 Thread Jukka Rahkonen
Hi, I have one view in Oracle 11 that I just cannot convert to another format with ogr2ogr. If I use -sql parameter "SELECT * FROM view" the conversion stops after couple of thousands of lines with the following error ERROR 1: ORA-01406: fetched column value was truncated in OCIStmtFetch I fou

Re: [gdal-dev] Help on using Ogr2ogr to load dxf data to postgis

2012-10-16 Thread Pietro Rossin
After googlin' around I get an answer myself.. This is the string I use to load a dxf file to postgis without any Layer that begin with "X": ogr2ogr --config DXF_INLINE_BLOCKS FALSE --config DXF_MERGE_BLOCK_GEOMETRIES FALSE -f "PostgreSQL" PG:"host=localhost user=postgres dbname=mydb password=myP

[gdal-dev] Import Shape file to PostGIS with Talend

2012-10-16 Thread Wael Tarhouni
Hi All; I'm tryin ti import a shapefile to a postgis database via the spatial component of Talend Data Integrator, so i have always the same error: no metadata found (metadata of the shapefile) so how can i get the metadata of the shapefile. NB: I had imported a shapefile into a postgis database

Re: [gdal-dev] OGRGeometry::Intersection returns NULL

2012-10-16 Thread Alisson Barbosa
Solved! The problem was because my GDAL/OGR had not been compiled with GEOS. 2012/10/10 Even Rouault > Le mercredi 10 octobre 2012 19:48:07, Alisson Barbosa a écrit : > > Hello, guys! > > > > I'm truggling through a rough moment here... > > I have this piece of code in a project that I work on: