Skip to content

Commit 50bb4db

Browse files
authored
moar debugging
1 parent 5e8b6ed commit 50bb4db

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/mapogr.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,9 +1336,6 @@ static msOGRFileInfo *msOGRFileOpen(layerObj *layer, const char *connection)
13361336
}
13371337
} else if (strcmp(name, "Parquet") == 0) {
13381338
psInfo->dialect = "Parquet";
1339-
if (layer->debug >= MS_DEBUGLEVEL_DEBUG)
1340-
msDebug("msOGRFileInfo: Yes its parquet\n");
1341-
13421339
// todo: Parquet not yet tested
13431340

13441341
} else if (strcmp(name, "PostgreSQL") == 0) {
@@ -1401,6 +1398,9 @@ static msOGRFileInfo *msOGRFileOpen(layerObj *layer, const char *connection)
14011398
if (psInfo->dialect != NULL && EQUAL(psInfo->dialect, "Spatialite"))
14021399
msOGRFileOpenSpatialite(layer, pszLayerDef, psInfo);
14031400

1401+
if (layer->debug >= MS_DEBUGLEVEL_DEBUG)
1402+
msDebug("msOGRFileInfo: Yes its %s\n", psInfo->dialect);
1403+
14041404
return psInfo;
14051405
}
14061406

@@ -2135,6 +2135,9 @@ static int msOGRFileWhichShapes(layerObj *layer, rectObj rect,
21352135
return (MS_FAILURE);
21362136
}
21372137

2138+
if (layer->debug >= MS_DEBUGLEVEL_DEBUG)
2139+
msDebug("msOGRFileWhichShapes: Yes its %s\n", psInfo->dialect);
2140+
21382141
char *select = (psInfo->pszSelect) ? msStrdup(psInfo->pszSelect) : NULL;
21392142
const rectObj rectInvalid = MS_INIT_INVALID_RECT;
21402143
bool bIsValidRect = memcmp(&rect, &rectInvalid, sizeof(rect)) != 0;

0 commit comments

Comments
 (0)