Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349789

Summary: Create a ESRI shape file import functionality
Product: [Technology] STEM Reporter: Matthias Filter <matthias.filter>
Component: UIAssignee: Christian Thoens <christian.thoens>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.thoens, mattadav
Version: unspecifiedFlags: gordonmax: pmc_approved?
gordonmax: review?
Target Milestone: 1.3.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
GIS Data Graph Generator Plug-in
none
patch to additionaly export two packages
sedlund: iplog-
Screenshot of Gis Data Graph Genarator Wizard none

Description Matthias Filter CLA 2011-06-20 04:40:30 EDT
Features:
- user should be able to choose from different type of base coordinate systems and the program then should correctly transform the data from each of these systems to the STEM coordinate system
- user should manually assign property fields from shape files to the correct STEM variables in case the field labels are not standardized
- it should be possible to transform streets and highways into the correct STEM edge types
Comment 1 James Kaufman CLA 2011-06-30 18:41:44 EDT
Matthias,
Assigning this to your group. Please feel free to reassign to one of your committers. Any code already created should be attached as an patch to this bug so we can take it through the IP process.
Comment 2 Markus Schwehm CLA 2011-08-01 10:13:00 EDT
Created attachment 200655 [details]
GIS Data Graph Generator Plug-in

This is my firt attempt to implement a GIS dataset import plug-in. It can read the shapes from a shapefile , create a STEM graph and store the shape polygons as inline latlon strings in the spatial attribute of the Dublin Core of region nodes. However it can not map other attributes from the GIS dataset to corresponding STEM attributes.
Comment 3 Markus Schwehm CLA 2011-08-01 10:15:56 EDT
Created attachment 200656 [details]
patch to additionaly export two packages

This patch is necessary to run the GisDataGraphGenerator Plugin. It modifies the MANIFES.MF file to additionally export rg.eclipse.stem.ui.graphgenerators.adapters.graphgeneratorpropertyeditor and org.eclipse.stem.ui.graphgenerators.wizards.
Comment 4 Markus Schwehm CLA 2011-08-01 10:20:13 EDT
Created attachment 200657 [details]
Screenshot of Gis Data Graph Genarator Wizard

The GisDataGraphGenerator integrates with the New Graph Wizard. It is possible to select the GIS Dataset Graph Generator from the combo box right below the Pajek Net Graph Generator, then select the shapefile of a GIS Dataset from a file selector, an then press finish (see STEMNewGraphWizard.png). Now GisDataGraphGeneratorImpl will use the com.bbn.openmap library to open *.shp. *.shx and *.dbf files of the GIS dataset and create a new STEM graph using this data. The polygons are stored as a SpatialInlineURIString in the spatial attribute of the Dublin Core
Comment 5 Matthew Davis CLA 2011-08-04 17:05:16 EDT
Request to include BBN OpenMap with STEM has been submitted to Eclipse Legal and is being tracked under CQ 5454 (https://dev.eclipse.org/ipzilla/show_bug.cgi?id=5454)

Markus, the original (self-authored) contribution here appears to be < 250 lines of code.  Therefore, it can be accepted using the Bugzilla contribution process.

I need you to state (in a comment to this thread) that the original code is 100% authored by you and that you have permission to contribute it to Eclipse.  It appears the appropriate license headers are already in the files.

Thank you.
Comment 6 Christian Thoens CLA 2012-03-06 05:51:08 EST
I committed the ShapefileGraphGenerator. Documetation on how to use it will be added this week.
Comment 7 Christian Thoens CLA 2012-03-07 11:43:31 EST
I added documentation to the wiki.
http://wiki.eclipse.org/Importing_an_Esri_Shapefile
Comment 8 Matthew Davis CLA 2012-04-27 11:45:05 EDT
This is completed and in 1.3.1.  Shall we close, Chris?  Or do you want to keep it open for future updates?

Also note that we withdrew our request to use OpenMap in CQ 5454.
Comment 9 Christian Thoens CLA 2012-04-27 11:52:07 EDT
We can close it. Everything that we need right now is implemented.
Comment 10 Stefan Edlund CLA 2012-09-10 14:46:24 EDT
Comment on attachment 200656 [details]
patch to additionaly export two packages

This patch was never used