Skip to content
Permalink
Browse files

QGIS-Server doesn't publish vector layer without geometry in WMS

Because vector layer without geometry hasn't rendered by QGIS, the
QGIS-Server doesn't publish these layer.
  • Loading branch information
rldhont committed Jun 2, 2013
1 parent fa0444f commit c78a5d1941d8d14c68032cdcd507b28cfd226e32
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/mapserver/qgsprojectparser.cpp
@@ -629,6 +629,17 @@ void QgsProjectParser::addLayers( QDomDocument &doc,
{
continue;
}
//vector layer without geometry
if ( currentLayer->type() == QgsMapLayer::VectorLayer )
{
QgsVectorLayer* vectorLayer = dynamic_cast<QgsVectorLayer*>( currentLayer );
QGis::WkbType wkbType = vectorLayer->wkbType();
if ( wkbType == QGis::WKBNoGeometry )
{
continue;
}
}
// queryable layer
if ( nonIdentifiableLayers.contains( currentLayer->id() ) )
{
layerElem.setAttribute( "queryable", "0" );

0 comments on commit c78a5d1

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