Opened 21 years ago

Closed 21 years ago

#295 closed defect (fixed)

[OGR] Make OGR Connections honour SHAPEPATH

Reported by: dmorissette Owned by: dmorissette
Priority: high Milestone:
Component: OGR Support Version: 4.0
Severity: normal Keywords:
Cc: LVN@…

Description

"Lars V. Nielsen" wrote:
> 
> When you're looking into it, you might wanna check why OGR connection paths 
(e.g. MapInfo
tabs) aren't relative to SHAPEPATH but to
> the MAP file itself.
> 

This is the way things have been implemented.  Whether this is a good or
a bad thing could be argued I guess.  For sure we won't change this
behavior in version 3.6, but I'll CC the mapserver-dev list to find out
what others would think about changing the behavior in 3.7 so that OGR
CONNECTIONS try to honour the SHAPEPATH when it's set.

Change History (2)

comment:1 by dmorissette, 21 years ago

Cc: assefa@… added
Summary: [OGR] Should OGR Connections honour SHAPEPATH?[OGR] Make OGR Connections honour SHAPEPATH
Steve Lime wrote:
> 
> That would make it consistent with raster and shapefile layers. I
> modified 3.7 so that for
> shapefiles the following rules apply
> 
>   1) check for absolute path first
>   2) check releative to shapepath next
>   3) finally check relative to mappath (mapfile location)
> 
> Pretty easy mod given the functions you guys have already written.
> 
> Steve
> 

comment:2 by dmorissette, 21 years ago

Cc: LVN@… added
Resolution: fixed
Status: newclosed
I've made this change in MapServer 4.1 (CVS).  OGR now does the same as
shapefiles with relative paths: try to open the files relative to shapepath, and
if not found then try relative to mapfile path.
Note: See TracTickets for help on using tickets.