RE: [gdal-dev] Trouble with python+gdal+sqlite+utf-8 [SEC=UNCLASSIFIED]

2011-04-17 Thread Pinner, Luke
newFeature.SetField('name', u"Calle Garbí, 2".encode('utf-8')) Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Iván Sánchez Ortega Sent: Monday, 18 April 2011 9:17 AM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] Tr

Re: [gdal-dev] Re: LAS format driver for OGR?

2011-04-17 Thread Stefan Keller
Mateeusz wrote: > Dumping a point cloud to PostGIS and trying to make a vector sense of it > without any relevant processing has very little sense, IMHO. Agreed. >> My goal is to import it in PostGIS and a Java program. >> > > las2ogr should work here. PostGIS yes, but Java only e.g. via an 'int

[gdal-dev] Trouble with python+gdal+sqlite+utf-8

2011-04-17 Thread Iván Sánchez Ortega
Hi all, I'm working with a script to do some data translation, and it seems it's failing when trying to set the value of a string attribute field to a UTF-8 string. I'm attaching a small script that reproduces the error (notice the "í" in "Calle Garbí"). If someone can point me to the right wa

Re: [gdal-dev] gdal_grid inverts y axis

2011-04-17 Thread Christopher Dedels
Thanks. That worked for me. Chris On Sun, Apr 17, 2011 at 4:52 PM, Even Rouault wrote: > Le dimanche 17 avril 2011 22:10:57, Christopher Dedels a écrit : > > I am using gdal_grid to create a grid from a point shapefile. gdalinfo > > reports inverted y-axis coordinates for the output raster.

[gdal-dev] Re: LAS format driver for OGR?

2011-04-17 Thread Mateusz Loskot
Stefan Keller wrote: > >> Some time ago I have written a tool to dump LAS data to virtually >> any OGR dataset: >> >> http://liblas.org/utilities/las2ogr.html > > I'll have a look at http://liblas.org/utilities/las2ogr.html > > My goal is to import it in PostGIS and a Java program. > las2ogr

Re: [gdal-dev] gdal_grid inverts y axis

2011-04-17 Thread Even Rouault
Le dimanche 17 avril 2011 22:10:57, Christopher Dedels a écrit : > I am using gdal_grid to create a grid from a point shapefile. gdalinfo > reports inverted y-axis coordinates for the output raster. The command I > am running is: > > gdal_grid -ot Float32 -outsize 800 600 -l sites -zfield elev s

[gdal-dev] gdal_grid inverts y axis

2011-04-17 Thread Christopher Dedels
I am using gdal_grid to create a grid from a point shapefile. gdalinfo reports inverted y-axis coordinates for the output raster. The command I am running is: gdal_grid -ot Float32 -outsize 800 600 -l sites -zfield elev sites.shp /tmp/sites.tif I am using gdal 1.8.0. the output of gdalinfo for

Re: [gdal-dev] LAS format driver for OGR?

2011-04-17 Thread Stefan Keller
Mateusz, Thanks for your replies (also to Even). Your answered: > Some time ago I have written a tool to dump LAS data to virtually > any OGR dataset: > > http://liblas.org/utilities/las2ogr.html I'll have a look at http://liblas.org/utilities/las2ogr.html My goal is to import it in PostGIS and