Re: [gdal-dev] Can't convert .dgn file to shape file by using ogr2ogr

2012-07-11 Thread taibc
Dear Chaitanya, Please find the attached .dgn file. Thanks and regards, Tai From: chaitanya_ch [via OSGeo.org] To: taibc Sent: Thursday, July 12, 2012 11:10 AM Subject: Re: Can't convert .dgn file to shape file by using ogr2ogr Tai, Can you send me you

Re: [gdal-dev] Can't convert .dgn file to shape file by using ogr2ogr

2012-07-11 Thread Chaitanya kumar CH
Tai, Can you send me your dgn file? On Thu, Jul 12, 2012 at 7:31 AM, taibc wrote: > Dear friends, > > I tried to convert .dgn file to shape files by using ogr2ogr with FWTools > Shell as below: > > ogr2ogr -f "ESRI Shapefile" Dc16.shp Dc16.dgn > > but I got an bellow error: > > /Warning 6: Norm

[gdal-dev] Can't convert .dgn file to shape file by using ogr2ogr

2012-07-11 Thread taibc
Dear friends, I tried to convert .dgn file to shape files by using ogr2ogr with FWTools Shell as below: ogr2ogr -f "ESRI Shapefile" Dc16.shp Dc16.dgn but I got an bellow error: /Warning 6: Normalized/laundered field name: 'GraphicGroup' to 'GraphicGro' ERROR 1: Attempt to write non-linestring (

Re: [gdal-dev] Error handlers in Python bindings

2012-07-11 Thread lpinner
The python function needs to accept three arguments, error class, error code and error message. i.e. from osgeo import gdal def f(err_class, err_code, msg): print err_class, err_code, msg gdal.PushErrorHandler(f) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal

[gdal-dev] Kakadu JP2 Output Overviews possible?

2012-07-11 Thread Zermeno, Robert J CIV NAVAIR, 472100D
GDAL Community, I noticed GDAL has a utility program gdaladdo which embeds new overviews to a supplied file. Does gdal have a utility program that allows me to extract overviews to a file? If not, how would I be able to programmatically extract a specified overview within a JP2 image (using C

[gdal-dev] Memory leaks when using SQL queries with shapefiles

2012-07-11 Thread Pierluigi Guasqui
Hello, I am experiencing a big memory allocation (with no subsequent memory release) when using SQL queries with shapefiles. This is a sample code that triggers this problem: OGRRegisterAll(); // opening shapefile data source const char *fname = "path/to/shapefile.shp"; OGRDa

Re: [gdal-dev] Ogr to access MSSQL DB

2012-07-11 Thread Tamas Szekeres
It is required with the current ogr driver, however we could implement some support to eliminate. This table is anyway included in the simple features specification for databases standard. If you create the layers by using ogr (ie. by using ogr2ogr command line tool) the metadata tables are also cr

Re: [gdal-dev] Ogr to access MSSQL DB

2012-07-11 Thread Benjamin
Is the geometry_columns table mandatory ? Because I have not such table. This table is not in the spatial standard, isn't it ? Ogr need to acces it ? If yes, I think I will have to create it. Thx for the clue, Benjamin. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-

Re: [gdal-dev] Ogr to access MSSQL DB

2012-07-11 Thread Tamas Szekeres
Benjamin, What is the content of the geometry_columns metadata table in your database? Best regards, Tamas 2012/7/11 Benjamin > Hi, I try to connect my application to a DB with the framework Ogr (with > C# warper). When I write folloing code, Ogr methods view the DB but can't > read it. [co

[gdal-dev] Problem reading shapefile via /vsizip

2012-07-11 Thread Smith, Michael ERDC-CRREL-NH
Reading a zipped shapefile (with 4 shapefiles in it) via vsicurl and vsizip ogrinfo /vsizip//vsicurl/http://www.srh.noaa.gov/images/shv/shp/Day1_Conv_Outlook/Day1_Conv_Outlook.latest.zip -ro CATEGORICAL Layer name: CATEGORICAL Geometry: Polygon Feature Count: 1 Extent: (-119.60, 24.217000) -

[gdal-dev] Ogr to access MSSQL DB

2012-07-11 Thread Benjamin
Hi, I try to connect my application to a DB with the framework Ogr (with C# warper). When I write folloing code, Ogr methods view the DB but can't read it. [code] Ogr.RegisterAll(); const string connectionString = @"Server=SERVEUR_NAME;Database=DATABASE_NAME;trusted_conne

[gdal-dev] Error handlers in Python bindings

2012-07-11 Thread Fabian Schindler
Hey folks, I'd like to know how I could set a custom error handling function in the GDAL Python bindings? Currently I was able to turn off error messages like so: >>> gdal.PushErrorHandler("CPLQuietErrorHandler") What I want is something like this: >>> def f(error): ...logger.error(erro

Re: [gdal-dev] Can I create a win form program (using C++ or C#) to convert .dgn files to shape files by using ogr2ogr

2012-07-11 Thread Mateusz Loskot
On 11 July 2012 10:27, taibc wrote: > I want to create a win form program (in Visual Studio 2010, C++ or C#) to > allow to convert .dgn files into shape files by using ogr2ogr as a library. > > Do you think it is possible ? I think it is not possible. Best regards, -- Mateusz Loskot, http://mat

[gdal-dev] Can I create a win form program (using C++ or C#) to convert .dgn files to shape files by using ogr2ogr

2012-07-11 Thread taibc
I want to create a win form program (in Visual Studio 2010, C++ or C#) to allow to convert .dgn files into shape files by using ogr2ogr as a library. Then, I will integrate that program into our project. Do you think it is possible ? Are there any one have experiences about this ? Thanks and reg