Skip to content

Commit 27113fc

Browse files
author
mhugent
committed
Ogr converter plugin written by mloskot
git-svn-id: http://svn.osgeo.org/qgis/trunk@9191 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fc29941 commit 27113fc

14 files changed

+1953
-1
lines changed

src/plugins/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ INSTALL(FILES qgisplugin.h qgsrendererplugin.h DESTINATION ${QGIS_INCLUDE_DIR})
2121
SUBDIRS (quick_print)
2222

2323

24-
SUBDIRS (coordinate_capture dxf2shp_converter)
24+
SUBDIRS (coordinate_capture dxf2shp_converter)
25+
26+
SUBDIRS (ogr_converter)
+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# $Id$
2+
#
3+
# CMake configuration file for OGR Converter plugin
4+
# Author: Mateusz Loskot <mateusz@loskot.net>
5+
########################################################
6+
# Files
7+
8+
SET (OGR_CONVERTER_SRCS
9+
plugin.cpp
10+
dialog.cpp
11+
format.cpp
12+
translator.cpp
13+
)
14+
15+
SET (OGR_CONVERTER_UIS ogrconverterguibase.ui)
16+
17+
SET (OGR_CONVERTER_MOC_HDRS
18+
plugin.h
19+
dialog.h
20+
)
21+
22+
SET (OGR_CONVERTER_RCCS ogrconverter.qrc)
23+
24+
SET (OGR_CONVERTER_PLUGIN ogrconverterplugin)
25+
26+
########################################################
27+
# Build
28+
29+
QT4_WRAP_UI (OGR_CONVERTER_UIS_H ${OGR_CONVERTER_UIS})
30+
31+
QT4_WRAP_CPP (OGR_CONVERTER_MOC_SRCS ${OGR_CONVERTER_MOC_HDRS})
32+
33+
QT4_ADD_RESOURCES(OGR_CONVERTER_RCC_SRCS ${OGR_CONVERTER_RCCS})
34+
35+
ADD_LIBRARY (${OGR_CONVERTER_PLUGIN} MODULE
36+
${OGR_CONVERTER_SRCS}
37+
${OGR_CONVERTER_MOC_SRCS}
38+
${OGR_CONVERTER_RCC_SRCS}
39+
${OGR_CONVERTER_UIS_H}
40+
)
41+
42+
INCLUDE_DIRECTORIES (
43+
${CMAKE_CURRENT_BINARY_DIR}
44+
../../core
45+
../../core/raster
46+
../../core/renderer
47+
../../core/symbology
48+
../../gui
49+
..
50+
${GDAL_INCLUDE_DIR}
51+
)
52+
53+
TARGET_LINK_LIBRARIES(${OGR_CONVERTER_PLUGIN}
54+
${GDAL_LIBRARY}
55+
qgis_core
56+
qgis_gui
57+
)
58+
59+
########################################################
60+
# Install
61+
62+
INSTALL(TARGETS ${OGR_CONVERTER_PLUGIN}
63+
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
64+
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR}
65+
)

src/plugins/ogr_converter/README

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
OGR Layer Converter Pluginm, Version 0.1 (Alpha)
2+
------------------------------------------------------------------------------
3+
Author: Mateusz Loskot <mateusz@loskot.net>
4+
5+
OGR Layer Converter aims to be a GUI-based implementation of well-known
6+
ogr2ogr utility from GDAL/OGR package. The plugin translates layers
7+
between OGR supported formats built-in GDAL/OGR library available for
8+
particular QGIS installation.
9+
Built-in formats are listed in drop-down boxes.
10+
11+
Currently, it is possible to translate one selected source
12+
layer to another OGR format.
13+
14+
Testing appreciated.
15+
16+
------------------------------------------------------------------------------
17+
TODO
18+
------------------------------------------------------------------------------
19+
translator.h: // TODO: Implement, currently always overwrite
20+
translator.h: // TODO: Append option not supported
21+
dialog.cpp:// TODO: Add support of QGIS projection selector
22+
dialog.cpp: // TODO: Transformation support
23+
dialog.cpp: // TODO: Transformation support
24+
dialog.cpp: // TODO: SRS transformation support
25+
dialog.cpp: // TODO: Use try-catch to display more meaningful error messages from Translator
26+
plugin.cpp: // TODO: Who is responsible for OGR cleanup?
27+
translator.cpp: // TODO: RAII for OGR handlers!!!
28+
translator.cpp: // TODO: Support translation of all layers from input data source
29+
translator.cpp: // TODO: -nlt option support
30+
translator.cpp: // TODO: Implement SRS transformation
31+
translator.cpp: // TODO: Append and createion options not implemented
32+
translator.cpp: // TODO: RAII for feature handlers!!!
33+
translator.cpp: // TODO: Transform feature geometry
34+
translator.cpp: // TODO: Skip failures support
35+
translator.cpp: // TODO: Add support for creation options

0 commit comments

Comments
 (0)