[gdal-dev] Re: ogr2ogr and spatialite

2011-04-19 Thread iomeneandrei
Hi Even, Even Rouault wrote: > > So try replacing -dsco SPATIALITE=NO with -lco SPATIAL_INDEX=NO > my fault, I'm stupid :) Thank you very much - Andrea Borruso email: aborr...@tin.it website: http://blog.spaziogis.it my 2.0 life: http

[gdal-dev] ogr2ogr and spatialite

2011-04-19 Thread iomeneandrei
Dear all, I'm using ogr2ogr (GDAL 1.8.0) to import a shapefile in a spatialite db. If I use spatialite gui to make it (without check "with spatial index" option), I have only a new one table in my sqlite db. If I use ogr2ogr "ogr2ogr -append -s_srs EPSG:3004 -t_srs EPSG:3004 -f SQLite -dsco SPATI

[gdal-dev] Re: OGR and spatialite View

2011-04-12 Thread iomeneandrei
Chaitanya, Chaitanya kumar CH wrote: > > Try to explicitly ask for the view as a layer with ogrinfo. You can also > try > to set the SQLITE_LIST_ALL_TABLES environment variable to TRUE. > I have set the SQLITE_LIST_ALL_TABLES environment variable to TRUE, and now it works. Thank you very much

[gdal-dev] OGR and spatialite View

2011-04-12 Thread iomeneandrei
Dear all, I have created a spatialite View and ogrinfo does not see any spatialite View. Is there some error in my data? Is it OGR able to read spatialite View? Thank you, a - Andrea Borruso email: aborr...@tin.it website: http://blog.sp

Re: [gdal-dev] Re: Mosaic the output of gdal2tiles

2011-01-05 Thread iomeneandrei
Hi Rahkonen, thank you. Rahkonen Jukka wrote: > > I have a feeling that gdal wms driver might be able to do it. See > examples at http://gdal.org/frmt_wms.html > This seems the right solution. best regards - Andrea Borruso email: abor

Re: Fwd: Re: [gdal-dev] FWTools and GDAL 1.7.0

2011-01-05 Thread iomeneandrei
Hi all, for what is worth also for me the simplicity of FWTOOLS wins. Best regards, andrea - Andrea Borruso email: aborr...@tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner

Re: [gdal-dev] RE: Mosaic the output of gdal2tiles (iomeneandrei)

2011-01-04 Thread iomeneandrei
7' 48" N, 13° 21' 9" E -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/gdal-dev-RE-Mosaic-the-output-of-gdal2tiles-iomeneandrei-tp5887707p5888231.html Sent from the GD

[gdal-dev] Mosaic the output of gdal2tiles

2011-01-03 Thread iomeneandrei
Hi all, I have a folder with a gdal2tiles output: 6 levels of zoom (and folders), with subfolders and the .png tiles. Is there a gdal tool to merge in a single geotiff file these .png tiles? Thank you very much, Andrea - Andrea Borruso

Re: [gdal-dev] Can't make Python binding work

2010-12-12 Thread iomeneandrei
Hi Martin, you can download GDAL python from here: http://www.python.org/ftp/python/2.6.5/ Best regards, a - Andrea Borruso email: aborr...@tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://

[gdal-dev] Re: Multipart to singlepart

2010-12-09 Thread iomeneandrei
Hi Even, Even Rouault wrote: > > Geometry have been made iterable only since GDAL 1.7.0. You need to > upgrade > your GDAL version or modify a bit the script to make the iteration with > the > OGR API. > > instead of : > > for geom_part in geom: > addPolygon(geom_part.ExportToWkb(), ou

[gdal-dev] Re: Multipart to singlepart

2010-12-09 Thread iomeneandrei
Caro Paolo, Paolo Corti wrote: > > Ciao Andrea > this code will do the trick (note that it will create a polygon for > each ring, so you will get a polygon for each hole as well) > [...] > writing in groups like this is always a surprise and a great pleasure. Thank you, thank you, thank you. I

Re: [gdal-dev] Re: Multipart to singlepart

2010-12-09 Thread iomeneandrei
Hi Jukka, thank you for your time and for your advice. Rahkonen Jukka wrote: > > If it does not matter to use some other tool than OGR, OpenJUMP can > explode > multifeatures and geometry collections. > My goal is to make this transformation in Python, and I did not want to write either unneces

[gdal-dev] Re: Multipart to singlepart

2010-12-07 Thread iomeneandrei
Dear Frank, Frank Warmerdam wrote: > > I tried it with a trunk build and the multipolygon is converted to a > polygon. > I suspect the feature of the forcing support is new and if you want it you > would need a reasonably recent development build - more recent than > FWTools. > I have download

[gdal-dev] Re: Multipart to singlepart

2010-12-07 Thread iomeneandrei
Hi Frank, Frank Warmerdam wrote: > > Reviewing the ogr2ogr code I see this does trigger a call to > forceToPolygon() > though *mostly* it exists to set the type of the created layer. So, yes, > -nlt polygon with ogr2ogr may well do what you want. > I have used this GML file as input: https://g

[gdal-dev] Re: Multipart to singlepart

2010-12-06 Thread iomeneandrei
Hi Frank, Frank Warmerdam wrote: > > I am not aware of a way to do this from the commandline utilities. > could I use the -nlt parameter of ogr2ogr and force POLYGON? If no, what's the "power" of -nlt parameter? Once again, thank you, a - Andrea Borruso -

[gdal-dev] Re: Multipart to singlepart

2010-12-06 Thread iomeneandrei
Hi Frank, Frank Warmerdam wrote: > > At the API or scripting level there is the > OGRGeometryFactory::forceToPolygon() > method to try and convert a multipolygon to a simple polygon. > I will try using OGR API. I will be slow, but I hope I'll be able to do it. Thank you very much, a -

[gdal-dev] Multipart to singlepart

2010-12-06 Thread iomeneandrei
Hi all, is there in OGR a command that I can use to convert multipart polygons in singleparts? Thank you, a - Andrea Borruso email: aborr...@tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://

[Gdal-dev] branched objects

2009-03-16 Thread iomeneandrei
Dear all, is there a way, using some ogr utilities, to split a branched object into simple (non-branched) objects? For example, a single, branched area object composed of three "islands" will be split into three separate area objects. Thank you very much, Andrea - Andrea Borruso --

Re: [Gdal-dev] SQLite problem

2008-10-30 Thread iomeneandrei
Hi all, I have change client and I have no more problems. Thank you for all. This is a great mailing list. Best regards, a P.S. the client is http://sqliteadmin.orbmu2k.de/ - Andrea Borruso email: [EMAIL PROTECTED] blog: http://blog.

Re: [Gdal-dev] SQLite problem

2008-10-29 Thread iomeneandrei
Hi Even, Even Rouault wrote: > > Yes, see http://www.sqlite.org/lang_altertable.html > You need SQLite > 3.1.3 > to build my sqlite spatial db I use ogr2ogr utility I have in the lates fwtools for windows. The same for ogrinfo. Whit this I have: "FAILURE: Unable to open datasource `C:\output2.s

Re: [Gdal-dev] SQLite problem

2008-10-29 Thread iomeneandrei
Hi Even, thank you very much. Even Rouault wrote: > > This must be a problem with your SQLite client. > I will make some test with another client. Best regards, Andrea - Andrea Borruso email: [EMAIL PROTECTED] blog: http://blog.spaz

Re: [Gdal-dev] SQLite problem

2008-10-29 Thread iomeneandrei
Hi Frank, thank you very much. Frank Warmerdam-2 wrote: > > The file you referenced seems to work fine with my (trunk) ogrinfo. Can > you > provide an example that ogrinfo can't read? Generally, adding new columns > to > a spatial table should not cause problems for OGR. > The file I have att

[Gdal-dev] SQLite problem

2008-10-29 Thread iomeneandrei
Hi all, I have created a sqlite spatial db with ogr2ogr, starting from a simple shapefile. I'm able to read the proper info of this sqlite db with ogrinfo. If I add a column to this sqlite db inside the table where I have the WKT_GEOMETRY, ogrinfo is no more able to read properly this db. Is it