[mapserver-dev] mapserver 3.7 - msBuildPath call in msOGRFileOpen breaks ogdi connections

Daniel Morissette morissette at dmsolutions.ca
Mon Nov 18 15:24:49 EST 2002


For the record, this problem has been fixed by Frank in CVS (3.7)
yesterday.  
See also http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=219

Daniel




> Administrator wrote:
> 
> I'm regression testing my 3.7 mapserver build against some of my 3.6.3
> map files.
> 
> In 3.7, the connection string for this layer:
> 
> 
> LAYER
>   NAME "NORTHAMERICA"
>   CONNECTION "gltp:/vrf/H:/GIS Data/Digital Chart of the
> World/NIMA/Level 0/v0noa/vmaplv0/noamer:polbndl at bnd(*):Line"
>   CONNECTIONTYPE OGR
>   PROJECTION
>  "AUTO"
>   END
>   TYPE LINE
>   STATUS DEFAULT
>   CLASS
>  COLOR 255 255 0
>   END
> END
> is prepended with the absolute path to the map file, causing great
> sadness in the open routine for this data type as the gltp parser
> barfs when gltp: is not found as the first five characters of the
> URL.  It appears that the addition of the msBuildPath invocation in
> msOGRFileOpen is the culprit.  As I'm sure this works for other data
> types I have not needed or tested, could I get some advice regarding
> handling of this particular situation.
> 
> I have temporarily munged the gltp: parser to search for that string
> and throw away anything before it, but I suspect this not the optimal
> fix.
> 
> Thanks,
> 
> John Novak
> Novacell Technologies



More information about the mapserver-dev mailing list