[QGIS-trac] [Quantum GIS] #1249: Submission of OGR Layer Converter plugin

Quantum GIS qgis at qgis.org
Tue Aug 26 19:27:55 EDT 2008


#1249: Submission of OGR Layer Converter plugin
-----------------------------------------------+----------------------------
   Reporter:  mloskot                          |              Owner:  nobody
       Type:  enhancement                      |             Status:  new   
   Priority:  minor: annoyance or enhancement  |          Milestone:        
  Component:  Plugins                          |            Version:  HEAD  
   Keywords:  ogr2gui ogr                      |   Platform_version:        
   Platform:  All                              |           Must_fix:  No    
Status_info:  0                                |  
-----------------------------------------------+----------------------------
 Folks,

 Inspired by [http://www.inventis.ca/ogr2gui/index_en.htm ogr2gui] tool, I
 created today similar utility but available as QGIS plugin. I called it
 "OGR Layer Converter".

 Using this ticked, I'm submitting my plugin for review with hope it is
 interesting to other users, so could be included to the official set of
 QGIS plugin and SVN repo. This is first version of the OGR Layer Converter
 plugin, number 0.1, so it's still in alpha state and testing would be
 appreciated.

 The plugin was written in C++ (GCC 4.0.1) with Qt 4.4.1 and was tested
 under Mac OS X 10.5.

 I've attached the plugin as a regular patch against trunk r9174. So, it's
 easy to deploy, compile, install, test and use.

 More on the plugin in README file (below).

 ''README'' file:
 {{{
 OGR Layer Converter Pluginm, Version 0.1 (Alpha)
 ------------------------------------------------------------------------------
 Author: Mateusz Loskot <mateusz at loskot.net>

 OGR Layer Converter aims to be a GUI-based implementation of well-known
 ogr2ogr utility from GDAL/OGR package. The plugin translates layers
 between OGR supported formats built-in GDAL/OGR library available for
 particular QGIS installation.
 Built-in formats are listed in drop-down boxes.

 Currently, it is possible to translate one selected source
 layer to another OGR format.

 Testing appreciated.
 }}}

 List of TODOs I plan to implement soon:

 {{{
 TODO: Add selection of QGIS active layer as a source layer

 translator.h: // TODO: Implement, currently always overwrite
 translator.h: // TODO: Append option not supported
 dialog.cpp:   // TODO: Add support of QGIS projection selector
 dialog.cpp:   // TODO: Transformation support
 dialog.cpp:   // TODO: SRS transformation support
 dialog.cpp:   // TODO: Use try-catch to display more meaningful error
 messages from Translator
 plugin.cpp:   // TODO: Who is responsible for OGR cleanup?
 translator.cpp:    // TODO: RAII for OGR handlers!!!
 translator.cpp:    // TODO: Support translation of all layers from input
 data source
 translator.cpp:    // TODO: -nlt option support
 translator.cpp:    // TODO: Implement SRS transformation
 translator.cpp:    // TODO: Append and createion options not implemented
 translator.cpp:    // TODO: RAII for feature handlers!!!
 translator.cpp:    // TODO: Transform feature geometry
 translator.cpp:    // TODO: Skip failures support
 translator.cpp:    // TODO: Add support for creation options
 }}}

 Looking forward to hear from you...

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1249>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list