Skip to content

Commit

Permalink
NAS: do not recognize wfs:FeatureCollection results (fixes #720)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jul 26, 2018
1 parent 15091b7 commit 29c1d1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gdal/ogr/ogrsf_frmts/nas/ogrnasdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ static int OGRNASDriverIdentify( GDALOpenInfo* poOpenInfo )
if( strstr(szPtr,"opengis.net/gml") == nullptr )
return FALSE;

if( strstr(szPtr,"<wfs:FeatureCollection") != nullptr )
return FALSE;

char **papszIndicators = CSLTokenizeStringComplex(
CPLGetConfigOption(
"NAS_INDICATOR",
Expand Down

2 comments on commit 29c1d1d

@jef-n
Copy link
Contributor

@jef-n jef-n commented on 29c1d1d Jul 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rouault And that's not good for NAS - as wfs:FeatureCollection can also appear in NAS files.

@rouault
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, reverting that then

Please sign in to comment.