Opened 8 years ago
Closed 8 years ago
#6477 closed defect (invalid)
OSM: osmconf.ini isn't loaded at all
Reported by: | tobwen | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
I'm using GDAL 2.0.2, released 2016/01/26
I'm trying to load the osmconf.ini attached, but I can't get ogr2ogr to load it at all:
- CONFIG_FILE=./osmconf.ini ogr2ogr
- CONFIG_FILE=/tmp/osmconf.ini ogr2ogr
- and overwriting the default file in the share folder (I'm on Debian)
The output of ogr2ogr never changes and doesn't return any error, even with an invalid osmconf.ini
Attachments (1)
Change History (2)
by , 8 years ago
Attachment: | osmconf.ini added |
---|
comment:1 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
If you use the environment variable, it must be OSM_CONFIG_FILE=xxx If you want to use the open option, you need to use -oo CONFIG_FILE=xxx
Regarding your 3) point, that can't be true ;-) You're probably don't overwriting the file that is read. The validation of the content of the ini file is minimal, so you might not get errors. If the file isn't found, you'd get a 'Cannot find osmconf.ini configuration file' error. So you might try renaming the file you think should be loaded, if you don't get the error, then it's not the one that is used.