Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Thanks Chaitanya, I tried to use -nlt option as you said. But, still got bellow error: /ERROR 1: Dc16.shp is not a directory. ESRI Shapefile driver failed to create Dc16.shp/ -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987501.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Thanks Simon, I installed and run FWTool 2.4.7. I don't know how to upgrading GDAL files as your suggestion. Could you tell me more ? Kind regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987506.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
On 11/07/12 16:29, taibc wrote: Thanks Simon, I installed and run FWTool 2.4.7. I don't know how to upgrading GDAL files as your suggestion. Could you tell me more ? Kind regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987506.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss What OS are you using? -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides.com GIS Packages http://www.fossworkflowguides.com/gis bash / Pythonhttp://www.fossworkflowguides.com/scripting ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
I am using Win 7. Kind regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987514.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Tai, Delete the existing shapefile files or use the option -overwrite with the ogr2ogr utility. On Wed, Jul 11, 2012 at 11:46 AM, taibc taibc_colt...@yahoo.com wrote: Thanks Chaitanya, I tried to use -nlt option as you said. But, still got bellow error: /ERROR 1: Dc16.shp is not a directory. ESRI Shapefile driver failed to create Dc16.shp/ -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987501.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Thanks Chaitanya, I deleted the existing shapefile files and tried to use -overwrite, but still got errors. Can you use ogr2ogr to convert .dgn file to shapefiles on your computer ? Thanks and regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987811.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Hello Tai, For OGR specific questions, please use the GDAL mailing-list. http://lists.osgeo.org/mailman/listinfo/gdal-dev OSGeo-Discuss list is for general discussion about OSGeo. Thanks, Nick 2012/7/12 taibc taibc_colt...@yahoo.com Thanks Chaitanya, I deleted the existing shapefile files and tried to use -overwrite, but still got errors. Can you use ogr2ogr to convert .dgn file to shapefiles on your computer ? Thanks and regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987811.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Ok, thanks Nick nicolas bozon wrote Hello Tai, For OGR specific questions, please use the GDAL mailing-list. http://lists.osgeo.org/mailman/listinfo/gdal-dev OSGeo-Discuss list is for general discussion about OSGeo. Thanks, Nick -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987815.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
[OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Dear friends, I tried to convert .dgn file to shape files by using ogr2ogr with FWTools Shell as below: ogr2ogr -f ESRI Shapefile Dc16.dgn Dc16.shp but I got an bellow error: / FAILURE: Unable to open datasource `Dc16.shp' with the following drivers. - ESRI Shapefile - MapInfo File - UK .NTF - SDTS - TIGER - S57 - DGN - VRT - REC - Memory - BNA - CSV - NAS - GML - GPX - KML - GeoJSON - Interlis 1 - Interlis 2 - GMT - SQLite - ODBC - PGeo - OGDI - PostgreSQL - MySQL - XPlane - AVCBin - AVCE00 - DXF - Geoconcept - GeoRSS - GPSTrackMaker - VFK / Are there anyone know how to fix this error ? Thanks and Regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Tai, You switched the source and destination datasets. Use this command: ogr2ogr -f ESRI Shapefile Dc16.shp Dc16.dgn On Wed, Jul 11, 2012 at 7:47 AM, taibc taibc_colt...@yahoo.com 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.dgn Dc16.shp but I got an bellow error: / FAILURE: Unable to open datasource `Dc16.shp' with the following drivers. - ESRI Shapefile - MapInfo File - UK .NTF - SDTS - TIGER - S57 - DGN - VRT - REC - Memory - BNA - CSV - NAS - GML - GPX - KML - GeoJSON - Interlis 1 - Interlis 2 - GMT - SQLite - ODBC - PGeo - OGDI - PostgreSQL - MySQL - XPlane - AVCBin - AVCE00 - DXF - Geoconcept - GeoRSS - GPSTrackMaker - VFK / Are there anyone know how to fix this error ? Thanks and Regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Thanks Chaitanya. I modified the command, but I still got an other error: Warning 6: Normalized/laundered field name: 'GraphicGroup' to 'GraphicGro' ERROR 1: Attempt to write non-linestring (POINT) geometry to ARC type shapefile. ERROR 1: Terminating translation prematurely after failed translation of layer elements (use -skipfailures to skip errors) Do you know how to fix it ? Thanks and regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987480.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
On 11/07/12 13:41, Bui Chi Tai wrote: Thanks Simon for your help, After modifying the command to ogr2ogr Dc16.shp Dc16.dgn , I got an other error: /Warning 6: Normalized/laundered field name: 'GraphicGroup' to 'GraphicGro' ERROR 1: Attempt to write non-linestring (POINT) geometry to ARC type shapefile. ERROR 1: Terminating translation prematurely after failed translation of layer elements (use -skipfailures to skip errors)/ Do you know this error ? Thanks and regards, Tai *From:* Simon Cropper simoncrop...@fossworkflowguides.com *To:* taibc taibc_colt...@yahoo.com *Sent:* Wednesday, July 11, 2012 10:12 AM *Subject:* Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr On 11/07/12 12:17, 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.dgn Dc16.shp but I got an bellow error: / FAILURE: Unable to open datasource `Dc16.shp' with the following drivers. - ESRI Shapefile - MapInfo File - UK .NTF - SDTS - TIGER - S57 - DGN - VRT - REC - Memory - BNA - CSV - NAS - GML - GPX - KML - GeoJSON - Interlis 1 - Interlis 2 - GMT - SQLite - ODBC - PGeo - OGDI - PostgreSQL - MySQL - XPlane - AVCBin - AVCE00 - DXF - Geoconcept - GeoRSS - GPSTrackMaker - VFK / Are there anyone know how to fix this error ? Thanks and Regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477.html Sent from the OSGeo Discuss mailing list archive at Nabble.com http://nabble.com/. ___ Discuss mailing list Discuss@lists.osgeo.org mailto:Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss Try removing the -f ESRI Shapefile as that is the expected default, and swap your destination and source file around... so... ogr2ogr Dc16.shp Dc16.dgn look here... http://www.gdal.org/ogr2ogr.html -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides.com GIS Packages http://www.fossworkflowguides.com/gis bash / Pythonhttp://www.fossworkflowguides.com/scripting Try updating you GDAL files. Also check to ensure you don't have files on your system that are older that are higher up the system path than the FWTools versions. http://trac.osgeo.org/gdal/ticket/3796 Also from what I can tell there is a 10 charaxter limit on older versions of ogr2ogr filenames. Name your files something else that is shorter. Rename the files to something else after the conversion. -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides.com GIS Packages http://www.fossworkflowguides.com/gis bash / Pythonhttp://www.fossworkflowguides.com/scripting ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
Re: [OSGeo-Discuss] Can't convert .dgn file to shape file by using ogr2ogr
Tai, ESRI Shapefiles restrict the type of geometry in a layer to one type. You may be able to overcome this using the -nlt option ogr2ogr -f ESRI Shapefile -nlt GEOMETRY Dc16.shp Dc16.dgn On Wed, Jul 11, 2012 at 9:10 AM, taibc taibc_colt...@yahoo.com wrote: Thanks Chaitanya. I modified the command, but I still got an other error: Warning 6: Normalized/laundered field name: 'GraphicGroup' to 'GraphicGro' ERROR 1: Attempt to write non-linestring (POINT) geometry to ARC type shapefile. ERROR 1: Terminating translation prematurely after failed translation of layer elements (use -skipfailures to skip errors) Do you know how to fix it ? Thanks and regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-t-convert-dgn-file-to-shape-file-by-using-ogr2ogr-tp4987477p4987480.html Sent from the OSGeo Discuss mailing list archive at Nabble.com. ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E ___ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss