Skip to content

Commit

Permalink
Added Paolo Scala's dxf importer plugin (initial import to SVN)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9036 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 8, 2008
1 parent 4e05fc3 commit 7011bf0
Show file tree
Hide file tree
Showing 33 changed files with 14,971 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/CMakeLists.txt
Expand Up @@ -21,4 +21,4 @@ INSTALL(FILES qgisplugin.h qgsrendererplugin.h DESTINATION ${QGIS_INCLUDE_DIR})
SUBDIRS (quick_print)


SUBDIRS (coordinate_capture)
SUBDIRS (coordinate_capture dxf2shp_converter)
61 changes: 61 additions & 0 deletions src/plugins/dxf2shp_converter/CMakeLists.txt
@@ -0,0 +1,61 @@

########################################################
# Files

SET (dxf2shpconverter_SRCS
dxf2shpconverter.cpp
dxf2shpconvertergui.cpp
builder.cpp
getInsertions.cpp
dxflib/src/dl_dxf.cpp
dxflib/src/dl_writer_ascii.cpp
)

SET (dxf2shpconverter_UIS dxf2shpconvertergui.ui)

SET (dxf2shpconverter_MOC_HDRS
dxf2shpconverter.h
dxf2shpconvertergui.h
builder.h
getInsertions.h
dxflib/src/dl_dxf.h
dxflib/src/dl_writer_ascii.h
)

SET (dxf2shpconverter_RCCS dxf2shpconverter.qrc)

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

QT4_WRAP_UI (dxf2shpconverter_UIS_H ${dxf2shpconverter_UIS})

QT4_WRAP_CPP (dxf2shpconverter_MOC_SRCS ${dxf2shpconverter_MOC_HDRS})

QT4_ADD_RESOURCES(dxf2shpconverter_RCC_SRCS ${dxf2shpconverter_RCCS})

ADD_LIBRARY (dxf2shpconverterplugin MODULE ${dxf2shpconverter_SRCS} ${dxf2shpconverter_MOC_SRCS} ${dxf2shpconverter_RCC_SRCS} ${dxf2shpconverter_UIS_H})

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

TARGET_LINK_LIBRARIES(dxf2shpconverterplugin
${QT_LIBRARIES}
qgis_core
qgis_gui
)


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

INSTALL(TARGETS dxf2shpconverterplugin
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})

27 changes: 27 additions & 0 deletions src/plugins/dxf2shp_converter/README
@@ -0,0 +1,27 @@
/***************************************************************************
*Copyright (C) 2008 Paolo L. Scala, Barbara Rita Barricelli, Marco Padula *
* CNR, Milan Unit (Information Technology), *
* Construction Technologies Institute.\n"; *
* *
* email : Paolo L. Scala <scala@itc.cnr.it> *
* *
* This is a plugin generated from the QGIS plugin template *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
DXF2SHP Plugin converter

We've just developed and partially tested this plugin that converts a DXF file
into one or more vector layers in QGIS; it can also extract labels from the
DXF file and inserts the data (string, x, y ,z, angle) in the dbf file of a new
point layer populated with points located where the labels should be rendered.
The purpose is to let Mapserver render them.

The plugin uses shapelib and dxflib to convert and create the shp files.
For any suggestion or criticism, please contact us at:

scala@itc.cnr.it
barricelli@itc.cnr.it

0 comments on commit 7011bf0

Please sign in to comment.