Skip to content

Commit 0c47351

Browse files
author
timlinux
committed
Added Paolo Scala's dxf importer plugin (initial import to SVN)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9036 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent cafc0b8 commit 0c47351

33 files changed

+14971
-1
lines changed

src/plugins/CMakeLists.txt

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

2323

24-
SUBDIRS (coordinate_capture)
24+
SUBDIRS (coordinate_capture dxf2shp_converter)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
########################################################
3+
# Files
4+
5+
SET (dxf2shpconverter_SRCS
6+
dxf2shpconverter.cpp
7+
dxf2shpconvertergui.cpp
8+
builder.cpp
9+
getInsertions.cpp
10+
dxflib/src/dl_dxf.cpp
11+
dxflib/src/dl_writer_ascii.cpp
12+
)
13+
14+
SET (dxf2shpconverter_UIS dxf2shpconvertergui.ui)
15+
16+
SET (dxf2shpconverter_MOC_HDRS
17+
dxf2shpconverter.h
18+
dxf2shpconvertergui.h
19+
builder.h
20+
getInsertions.h
21+
dxflib/src/dl_dxf.h
22+
dxflib/src/dl_writer_ascii.h
23+
)
24+
25+
SET (dxf2shpconverter_RCCS dxf2shpconverter.qrc)
26+
27+
########################################################
28+
# Build
29+
30+
QT4_WRAP_UI (dxf2shpconverter_UIS_H ${dxf2shpconverter_UIS})
31+
32+
QT4_WRAP_CPP (dxf2shpconverter_MOC_SRCS ${dxf2shpconverter_MOC_HDRS})
33+
34+
QT4_ADD_RESOURCES(dxf2shpconverter_RCC_SRCS ${dxf2shpconverter_RCCS})
35+
36+
ADD_LIBRARY (dxf2shpconverterplugin MODULE ${dxf2shpconverter_SRCS} ${dxf2shpconverter_MOC_SRCS} ${dxf2shpconverter_RCC_SRCS} ${dxf2shpconverter_UIS_H})
37+
38+
INCLUDE_DIRECTORIES(
39+
${CMAKE_CURRENT_BINARY_DIR}
40+
../../core
41+
../../core/raster
42+
../../core/renderer
43+
../../core/symbology
44+
../../gui
45+
..
46+
)
47+
48+
TARGET_LINK_LIBRARIES(dxf2shpconverterplugin
49+
${QT_LIBRARIES}
50+
qgis_core
51+
qgis_gui
52+
)
53+
54+
55+
########################################################
56+
# Install
57+
58+
INSTALL(TARGETS dxf2shpconverterplugin
59+
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
60+
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})
61+

src/plugins/dxf2shp_converter/README

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/***************************************************************************
2+
*Copyright (C) 2008 Paolo L. Scala, Barbara Rita Barricelli, Marco Padula *
3+
* CNR, Milan Unit (Information Technology), *
4+
* Construction Technologies Institute.\n"; *
5+
* *
6+
* email : Paolo L. Scala <scala@itc.cnr.it> *
7+
* *
8+
* This is a plugin generated from the QGIS plugin template *
9+
* *
10+
* This program is free software; you can redistribute it and/or modify *
11+
* it under the terms of the GNU General Public License as published by *
12+
* the Free Software Foundation; either version 2 of the License, or *
13+
* (at your option) any later version. *
14+
***************************************************************************/
15+
DXF2SHP Plugin converter
16+
17+
We've just developed and partially tested this plugin that converts a DXF file
18+
into one or more vector layers in QGIS; it can also extract labels from the
19+
DXF file and inserts the data (string, x, y ,z, angle) in the dbf file of a new
20+
point layer populated with points located where the labels should be rendered.
21+
The purpose is to let Mapserver render them.
22+
23+
The plugin uses shapelib and dxflib to convert and create the shp files.
24+
For any suggestion or criticism, please contact us at:
25+
26+
scala@itc.cnr.it
27+
barricelli@itc.cnr.it

0 commit comments

Comments
 (0)