Skip to content
Permalink
Browse files
Added Paolo Scala's dxf importer plugin (initial import to SVN)
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 7011bf08bb6767ad13aefb301510fccb994e914e
Showing with 14,971 additions and 1 deletion.
  1. +1 −1 src/plugins/CMakeLists.txt
  2. +61 −0 src/plugins/dxf2shp_converter/CMakeLists.txt
  3. +27 −0 src/plugins/dxf2shp_converter/README
  4. +649 −0 src/plugins/dxf2shp_converter/builder.cpp
  5. +113 −0 src/plugins/dxf2shp_converter/builder.h
  6. BIN src/plugins/dxf2shp_converter/dxf2shp_converter.png
  7. +188 −0 src/plugins/dxf2shp_converter/dxf2shpconverter.cpp
  8. +91 −0 src/plugins/dxf2shp_converter/dxf2shpconverter.h
  9. +5 −0 src/plugins/dxf2shp_converter/dxf2shpconverter.qrc
  10. +175 −0 src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp
  11. +44 −0 src/plugins/dxf2shp_converter/dxf2shpconvertergui.h
  12. +178 −0 src/plugins/dxf2shp_converter/dxf2shpconvertergui.ui
  13. +1 −0 src/plugins/dxf2shp_converter/dxflib/confdefs.h
  14. +182 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_attributes.h
  15. +537 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_codes.h
  16. +98 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_creationadapter.h
  17. +252 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_creationinterface.h
  18. +4,951 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_dxf.cpp
  19. +414 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_dxf.h
  20. +1,355 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_entities.h
  21. +55 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_exception.h
  22. +145 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_extrusion.h
  23. +614 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_writer.h
  24. +153 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.cpp
  25. +75 −0 src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.h
  26. +74 −0 src/plugins/dxf2shp_converter/getInsertions.cpp
  27. +54 −0 src/plugins/dxf2shp_converter/getInsertions.h
  28. +483 −0 src/plugins/dxf2shp_converter/shapelib-1.2.10/LICENSE.LGPL
  29. +1,495 −0 src/plugins/dxf2shp_converter/shapelib-1.2.10/dbfopen.c
  30. +484 −0 src/plugins/dxf2shp_converter/shapelib-1.2.10/shapefil.h
  31. +42 −0 src/plugins/dxf2shp_converter/shapelib-1.2.10/shapelib.def
  32. +1,866 −0 src/plugins/dxf2shp_converter/shapelib-1.2.10/shpopen.c
  33. +109 −0 src/plugins/dxf2shp_converter/shapelib-1.2.10/shprewind.c
@@ -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)
@@ -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})

@@ -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.