Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ogr converter plugin written by mloskot
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
Showing
14 changed files
with
1,953 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.