Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a shape file that contains the bus route information for a city.

I want to do two things..

  1. Merge all the existing rows so that just one feature represents all the routes...

  2. I have a Points shape file that overlays this polyline shapefile , i want to break the single polyline shapefile into multiple polylines based on these point locations

i.e. output will be many points each connected by individual shapefiles, preferably i would like each new shapefile to contain information regarding the points it connects.

Can someone suggest a solution preferably in QGIS but ArcGIS works too

share|improve this question
add comment

6 Answers 6

up vote 4 down vote accepted

In QGIS

1) put the vector in editing mode, select all the features and in the editing toolbar use the "merge features" tool

2) the dynamic segmentation plugin should do the trick ( https://wiki.faunalia.it/dokuwiki/doku.php/qgis/lrs )

share|improve this answer
    
the dynamic segmentation require postGIS , is there an alternative approach ? –  GeoH2O Feb 16 '12 at 21:38
1  
A linear referencing/dynamic segmentantion tool has been added to QGIS development version in the last days. The developer is working on a GUI then it shold be exposed in the QGIS interface. My guess is that is juts a few days away. Keep checked by installing qgis-dev with osgeo4w (assuming you are on Windows) and keep it updated daily. –  Giovanni Manghi Feb 17 '12 at 8:45
    
I will keep a watch.. –  GeoH2O Feb 17 '12 at 17:50
    
The link is broken, could you in future posts add some more information? –  vertoe Dec 3 '13 at 12:51
    
faunalia.eu/en/lrs.html –  Giovanni Manghi Dec 14 '13 at 8:36
add comment

I have just done something similar using Arc GIS. I had a layer of linear features and a fishnet grid that I was using to split the lines, I needed to do this to ascertain the length of the linear features per fishnet polygon. I did it by intersecting the lines and the fishnet grid. This split the lines where the fishnet crossed them per polygon. I could then dissolve the linear features based upon the fishnet polygon ID field and use a statistic type of SUM to give me the total length of the lines within each polygon.

Might not be elegant but it works. Hope it helps.

share|improve this answer
add comment

In ArcGIS you may use ET Geowizard\Polyline\Split polyline. It gives an option for splitting by reference to other feature class.

share|improve this answer
    
Yes but the tool is an add-on –  GeoH2O Feb 16 '12 at 17:17
add comment

Although this is not QGIS or ArcGIS, another alternative that maybe you can serve is in gvSIG the SEXTANTE tool "Split lines with points layer" (very useful for creating network segments together with "Snap points to layer").

share|improve this answer
add comment

Here is just another option to use in ArcGIS.

Split Lines at Points

share|improve this answer
    
sadly i do not have the license for this tool –  GeoH2O Feb 16 '12 at 17:28
    
@GeoH2O, Yes this is an older VBA tool, however if you are into programming the code in the .rtf and .bas file could be converting into an ArcGIS Add-In. –  artwork21 Feb 16 '12 at 19:01
    
This is actually a built-in tool at ArcGIS 10, but it requires an ArcInfo level license. –  blah238 Feb 17 '12 at 21:17
add comment

The first step is easy to accomplish using SAGA GIS, ( and if you are on linux you could even try running the modules from Qgis)

Merge all the existing rows so that just one feature represents all the routes... Use modules>lines>Line dissolve I have a Points shape file that overlays this polyline shapefile , i want to break the single polyline shapefile into multiple polylines based on these point locations This seems much harder, especially since your points may not be exactly on the line.

share|improve this answer
    
Yes but it is the second step for which i want an elegant solution in a free gis....which i believe is in gvSIG –  GeoH2O Feb 17 '12 at 20:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.