Skip to content

Commit

Permalink
Add pcpoint as a supported spatial type
Browse files Browse the repository at this point in the history
  • Loading branch information
strk authored and nyalldawson committed Dec 4, 2019
1 parent a9ad76e commit fca857b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -409,7 +409,10 @@ QStringList QgsPostgresConn::supportedSpatialTypes() const
<< quotedValue( "geography" );

if ( hasPointcloud() )
{
supportedSpatialTypes << quotedValue( "pcpatch" );
supportedSpatialTypes << quotedValue( "pcpoint" );
}

if ( hasRaster() )
supportedSpatialTypes << quotedValue( "raster" );
Expand Down Expand Up @@ -785,7 +788,8 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
{
layerProperty.geometryColType = SctTopoGeometry;
}
else if ( coltype == QLatin1String( "pcpatch" ) )
else if ( coltype == QLatin1String( "pcpatch" ) ||
coltype == QLatin1String( "pcpoint" ) )
{
layerProperty.geometryColType = SctPcPatch;
}
Expand Down

0 comments on commit fca857b

Please sign in to comment.