[mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1
Bistrais, Bob
Bob.Bistrais at maine.gov
Wed Dec 28 14:14:32 PST 2011
Thanks Mike. This will be a big help.
-----Original Message-----
From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil]
Sent: Wednesday, December 28, 2011 5:02 PM
To: Bistrais, Bob; Stephen Woodbridge; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to
6.0.1
Yes, CARTOLINE was deprecated back at version 5 and completely removed
at
version 6.
Here's the migration guide
http://mapserver.org/MIGRATION_GUIDE.html#migration
Mike
--
Michael Smith
US Army Corps
Remote Sensing GIS/Center
On 12/28/11 4:50 PM, "Bistrais, Bob" <Bob.Bistrais at maine.gov> wrote:
>Thanks Mike,
>
>Looking at that now. Does the same apply to Cartoline? I seem to be
>having issues with those symbols as well.
>
>
>-----Original Message-----
>From: Smith, Michael ERDC-CRREL-NH
[mailto:Michael.Smith at usace.army.mil]
>
>Sent: Wednesday, December 28, 2011 4:08 PM
>To: Bistrais, Bob; Stephen Woodbridge; mapserver-users at lists.osgeo.org
>Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to
>6.0.1
>
>Bob,
>
>STYLE at the SYMBOL level was renamed PATTERN in 5.0 and removed in v6.
>This is a dashed line and now the PATTERN is applied at the LAYER level
>rather than at the SYMBOL.
>
>You should remove the STYLE..END block from the SYMBOL and apply it as
a
>PATTERN at the LAYER level (see
>http://mapserver.org/mapfile/style.html#style)
>
>Mike
>
>--
>Michael Smith
>
>US Army Corps
>Remote Sensing GIS/Center
>
>
>
>
>On 12/28/11 3:58 PM, "Bistrais, Bob" <Bob.Bistrais at maine.gov> wrote:
>
>>Not sure if this helps, but here's the first few lines of the symbol
>>file- notice that line 6 contains the Style keyword. Does anything
>look
>>out of place with that?
>>
>>SYMBOL
>> NAME 'county-line'
>> TYPE ELLIPSE
>> POINTS 2 2 END
>> FILLED true
>> STYLE 4 2 2 4 END
>>END
>>
>>
>>
>>-----Original Message-----
>>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
>>Sent: Wednesday, December 28, 2011 11:31 AM
>>To: mapserver-users at lists.osgeo.org
>>Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to
>>6.0.1
>>
>>Hi Bob,
>>
>>What does the top 15+- lines of your mapfile look like?
>>This error is in loadSymbol, do you have a reference to a symbol file?
>>is this where the error is coming from? Are you sure you are loading
>the
>>
>>correct symbol file?
>>
>>-Steve W
>>
>>On 12/28/2011 11:20 AM, Bistrais, Bob wrote:
>>> When I try to get the mapfile in cgi mode, a different error
appears:
>>>
>>> loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line
6)
>>>
>>> *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
>>> *Sent:* Wednesday, December 28, 2011 11:00 AM
>>> *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org
>>> *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1
>>>
>>> Nothing should have to be done. 6.0.1 was primarily a security
>update.
>>> Can you try accessing the mapfile
>>>
>>> outside PHP with shp2img or mapserv itself?
>>>
>>> Steve
>>>
>>> *From: * mapserver-users-bounces at lists.osgeo.org
>>> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of
>>> *Bistrais, Bob
>>> *Sent:* Wednesday, December 28, 2011 9:56 AM
>>> *To:* mapserver-users at lists.osgeo.org
>>> *Subject:* [mapserver-users] failed to open map file - MS 6.0 to
>6.0.1
>>>
>>> I'm trying to upgrade some MapServer applications which were
>>originally
>>> written before MS 6.0. These had been migrated to 6.0, now I am
>trying
>>> to upgrade them to 6.0.1. I would have thought nothing needed to be
>>> done, but when I try to view these applications, I get the following
>>> error message:
>>>
>>> Warning: ms_newMapObj(): [MapServer Error]: msLoadMap():
>>> (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line
>218
>>> Fatal error: Uncaught exception 'MapScriptException' with message
>>> 'Failed to open map file "../maps/mymap.map"' in
>>> C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0
>>> C:\ms4w\apps\mgs\htdocs\drawMap.php(218):
>>> ms_newMapObj('../maps/mymap...') #1 {main} thrown in
>>> C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218
>>>
>>> -I checked the obvious, such as permissions, paths, etc, but not
able
>>to
>>> figure out what's going wrong here. As mentioned, it works OK in MS
>>6.0.
>>>
>>>
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>_______________________________________________
>>mapserver-users mailing list
>>mapserver-users at lists.osgeo.org
>>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list