Skip to content

Commit

Permalink
Ogr converter plugin written by mloskot
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9191 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 27, 2008
1 parent fc29941 commit 27113fc
Show file tree
Hide file tree
Showing 14 changed files with 1,953 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/CMakeLists.txt
Expand Up @@ -21,4 +21,6 @@ INSTALL(FILES qgisplugin.h qgsrendererplugin.h DESTINATION ${QGIS_INCLUDE_DIR})
SUBDIRS (quick_print)


SUBDIRS (coordinate_capture dxf2shp_converter)
SUBDIRS (coordinate_capture dxf2shp_converter)

SUBDIRS (ogr_converter)
65 changes: 65 additions & 0 deletions src/plugins/ogr_converter/CMakeLists.txt
@@ -0,0 +1,65 @@
# $Id$
#
# CMake configuration file for OGR Converter plugin
# Author: Mateusz Loskot <mateusz@loskot.net>
########################################################
# Files

SET (OGR_CONVERTER_SRCS
plugin.cpp
dialog.cpp
format.cpp
translator.cpp
)

SET (OGR_CONVERTER_UIS ogrconverterguibase.ui)

SET (OGR_CONVERTER_MOC_HDRS
plugin.h
dialog.h
)

SET (OGR_CONVERTER_RCCS ogrconverter.qrc)

SET (OGR_CONVERTER_PLUGIN ogrconverterplugin)

########################################################
# Build

QT4_WRAP_UI (OGR_CONVERTER_UIS_H ${OGR_CONVERTER_UIS})

QT4_WRAP_CPP (OGR_CONVERTER_MOC_SRCS ${OGR_CONVERTER_MOC_HDRS})

QT4_ADD_RESOURCES(OGR_CONVERTER_RCC_SRCS ${OGR_CONVERTER_RCCS})

ADD_LIBRARY (${OGR_CONVERTER_PLUGIN} MODULE
${OGR_CONVERTER_SRCS}
${OGR_CONVERTER_MOC_SRCS}
${OGR_CONVERTER_RCC_SRCS}
${OGR_CONVERTER_UIS_H}
)

INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_BINARY_DIR}
../../core
../../core/raster
../../core/renderer
../../core/symbology
../../gui
..
${GDAL_INCLUDE_DIR}
)

TARGET_LINK_LIBRARIES(${OGR_CONVERTER_PLUGIN}
${GDAL_LIBRARY}
qgis_core
qgis_gui
)

########################################################
# Install

INSTALL(TARGETS ${OGR_CONVERTER_PLUGIN}
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR}
)
35 changes: 35 additions & 0 deletions src/plugins/ogr_converter/README
@@ -0,0 +1,35 @@
OGR Layer Converter Pluginm, Version 0.1 (Alpha)
------------------------------------------------------------------------------
Author: Mateusz Loskot <mateusz@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.

------------------------------------------------------------------------------
TODO
------------------------------------------------------------------------------
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: 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

0 comments on commit 27113fc

Please sign in to comment.