Skip to content

Commit

Permalink
fixes #1052
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Mar 7, 2023
1 parent 867f9dd commit e500e57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/read_ogr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,7 @@ bool SpatVector::read_ogr(GDALDataset *poDS, std::string layer, std::string quer
read_query = query;
}


OGRSpatialReference *poSRS = poDS->GetLayer(0)->GetSpatialRef();
OGRSpatialReference *poSRS = poLayer->GetSpatialRef();

if (poSRS) {
char *psz = NULL;
Expand Down

0 comments on commit e500e57

Please sign in to comment.