Skip to content
Permalink
Browse files

support 25D layers in network analysis library (fix #11952)

(cherry picked from commit 904dc21)
  • Loading branch information
alexbruy committed Jun 23, 2016
1 parent c943531 commit 8b57da3ab12ba1dc906b43b06ea63e69784c4cb6
Showing with 2 additions and 3 deletions.
  1. +0 −1 src/analysis/network/qgsgraph.cpp
  2. +2 −2 src/analysis/network/qgslinevectorlayerdirector.cpp
@@ -52,7 +52,6 @@ const QgsGraphArc& QgsGraph::arc( int idx ) const
return mGraphArc[ idx ];
}


int QgsGraph::vertexCount() const
{
return mGraphVertexes.size();
@@ -162,9 +162,9 @@ void QgsLineVectorLayerDirector::makeGraph( QgsGraphBuilderInterface *builder, c
while ( fit.nextFeature( feature ) )
{
QgsMultiPolyline mpl;
if ( feature.constGeometry()->wkbType() == QGis::WKBMultiLineString )
if ( feature.constGeometry()->wkbType() == QGis::WKBMultiLineString || feature.constGeometry()->wkbType() == QGis::WKBMultiLineString25D )
mpl = feature.constGeometry()->asMultiPolyline();
else if ( feature.constGeometry()->wkbType() == QGis::WKBLineString )
else if ( feature.constGeometry()->wkbType() == QGis::WKBLineString || feature.constGeometry()->wkbType() == QGis::WKBLineString25D )
mpl.push_back( feature.constGeometry()->asPolyline() );

QgsMultiPolyline::iterator mplIt;

0 comments on commit 8b57da3

Please sign in to comment.
You can’t perform that action at this time.