Skip to content

Commit

Permalink
Do not use pcpatch type name when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
strk authored and nyalldawson committed Dec 4, 2019
1 parent 9a710f2 commit 66ea653
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -406,8 +406,11 @@ QStringList QgsPostgresConn::supportedSpatialTypes() const
QStringList supportedSpatialTypes;

supportedSpatialTypes << quotedValue( "geometry" )
<< quotedValue( "geography" )
<< quotedValue( "pcpatch" );
<< quotedValue( "geography" );

if ( hasPointcloud() )
supportedSpatialTypes << quotedValue( "pcpatch" );

if ( hasRaster() )
supportedSpatialTypes << quotedValue( "raster" );

Expand Down

0 comments on commit 66ea653

Please sign in to comment.