Re: [gdal-dev] creating graph for single line shape layer using gdal gnm

2014-11-13 Thread Jukka Rahkonen
Mikhail Gusev gmail.com> writes: > > Is it correct to do this way?First I will save point layer using > start and end points of lineĀ  layer.Again then connect the two layers > using autoconnect method . So that I can find shortest path between > features of the line layer. > > hema, > yes i

Re: [gdal-dev] creating graph for single line shape layer using gdal gnm

2014-11-12 Thread Mikhail Gusev
> > Is it correct to do this way?First I will save point layer using start and > end points of line layer.Again then connect the two layers using > autoconnect method . So that I can find shortest path between features of > the line layer. > hema, yes it's correct, but note, that there must be on

Re: [gdal-dev] creating graph for single line shape layer using gdal gnm

2014-11-12 Thread yhema
hello Mikhail Gusev , Is it correct to do this way?First I will save point layer using start and end points of line layer.Again then connect the two layers using autoconnect method . So that I can find shortest path between features of the line layer. thanks, hema On Wed, Nov 12, 2014 at 3:03 P

Re: [gdal-dev] creating graph for single line shape layer using gdal gnm

2014-11-12 Thread Mikhail Gusev
> > The algorithm is using only the features that are connected manually and > that are present in _gnm_graph. No, if you use automatic connection the _gnm_graph is also formed automatically because it internally calls ConnectFeatures(). Is there any other simple solution to solve this. > It i

Re: [gdal-dev] creating graph for single line shape layer using gdal gnm

2014-11-11 Thread Hema Yeedunuri
hello Mikhail Gusev , Thank u for the reply .I want to find the shortest distance between features .But the road layer I am using is having 10055 features. without creating graph it is not possible to find shortest distance.And to my understanding I think it is difficult to manually connect featu

Re: [gdal-dev] creating graph for single line shape layer using gdal gnm

2014-11-11 Thread Mikhail Gusev
Hello, hema. The current default implementation of GNMNetwork::AutoConnect() can work only if the passing array of layers contains at least one point and one line layer (i.e. GetGeomType() for the layers equals wkbPoint and wkbLineString accordingly). For each line feature the algorithm takes the s

[gdal-dev] creating graph for single line shape layer using gdal gnm

2014-11-10 Thread yhema
Hello all, I am trying to create a graph for network analysis using gdalgnm.The feature auto connect is working if we provide more than one layer.How can we connect features of a single layer so that graph is created automatically. We can connect features using connect features but automatically i