Skip to content

Commit

Permalink
QGIS-Server doesn't publish vector layer without geometry in WMS
Browse files Browse the repository at this point in the history
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 c78a5d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/mapserver/qgsprojectparser.cpp
Expand Up @@ -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" );
Expand Down

0 comments on commit c78a5d1

Please sign in to comment.