[mapserver-users] MapScriptException error
ankur chitranshi
ankuriimt at gmail.com
Thu Jun 18 23:48:07 PDT 2015
hi
make changes, after your , suggestion ,still m facing bellow error
*Warning*: mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to
draw layer named 'BASE'.
in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *77*
*Warning*: mapObj::draw(): [MapServer Error]:
msPostGISLayerWhichShapes(): Error executing query: ERROR:
zero-length delimited identifier at or near """"
LINE 1: select "","textstring",encode(ST_AsBinary(ST_Force_2D("the_g...
^
in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *77*
*Fatal error*: Call to a member function saveWebImage() on a
non-object in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *80*
*kindly help me out,*
*thanks in advance*
On Fri, Jun 19, 2015 at 12:08 PM, ankur chitranshi <ankuriimt at gmail.com>
wrote:
> hi,
>
> can you please send some sample map file......
>
> On Fri, Jun 19, 2015 at 11:57 AM, TC Haddad <tchaddad at gmail.com> wrote:
>
>>
>> Hi
>>
>> you are calling symbol "foo" but you do not have a line that references
>> your symbol file
>>
>> try adding a SYMBOLSET with path to you symbols definition file in the
>> top part of your map file...
>>
>> Tanya
>>
>> On Thu, Jun 18, 2015 at 11:05 PM, ankur chitranshi <ankuriimt at gmail.com>
>> wrote:
>>
>>> yes sure,
>>>
>>> in line 18 my code is
>>>
>>> $map=ms_newMapObj('C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map');
>>>
>>>
>>> and my 'khasra.map ' file code follows....
>>>
>>> MAP
>>> NAME "bhopal Map"
>>> IMAGECOLOR 255 255 255
>>> SIZE 1050 637
>>> IMAGETYPE PNG
>>> WEB
>>> TEMPLATE "index.php"
>>> IMAGEPATH "/ms4w/tmp/ms_tmp/"
>>> IMAGEURL "/ms_tmp"
>>> END
>>> SCALEBAR
>>> INTERLACE ON
>>> INTERVALS 1
>>> LABEL
>>> SIZE TINY
>>> END
>>> TRANSPARENT ON
>>> UNITS KILOMETERS
>>> END
>>> LAYER
>>> NAME "BASE"
>>> STATUS ON
>>> CONNECTIONTYPE POSTGIS
>>> CONNECTION ""
>>> DATA ""
>>> TYPE polygon
>>> CLASSITEM "BASE"
>>> CLASS
>>> NAME "Data Not Available"
>>> STYLE
>>> COLOR 0 0 0
>>> END
>>> STYLE
>>> SYMBOL "foo"
>>> COLOR 255 0 0
>>> END
>>> LABEL
>>> COLOR 145 145 145
>>> SIZE medium
>>> END
>>> END
>>> END
>>> END
>>>
>>> ----------------
>>> my MapServer version is 6.0.3 (MS4W 3.0.6)
>>>
>>>
>>> thanks in advance....
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Jun 19, 2015 at 11:18 AM, TDS <tds at tds-net.de> wrote:
>>>
>>>> Hi,
>>>>
>>>> can you post the lines in that file around line 18?
>>>> Has the file correct permissions and can Apache access that file - e.g.
>>>> no restrictions like open_basedir?
>>>>
>>>> Bye, Mathias
>>>> ------------------------------
>>>> mailto:tds at tds-net.de <tds at tds-net.de>
>>>> ------------------------------
>>>> 1+1=10
>>>> You have a question? - 42 or RTFM.
>>>> Am 19.06.2015 um 07:16 schrieb ankur chitranshi:
>>>>
>>>> Dear,
>>>>
>>>> Still facing error....
>>>>
>>>>
>>>> *Warning*: ms_newMapObj(): [MapServer Error]: loadSymbol(): Parsing
>>>> error near (position):(line 29) in
>>>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18*
>>>>
>>>> *Fatal error*: Uncaught exception 'MapScriptException' with message
>>>> 'Failed to open map file
>>>> "C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map"' in
>>>> C:\ms4w\Apache\htdocs\bhopalf\index.php:18 Stack trace: #0
>>>> C:\ms4w\Apache\htdocs\bhopalf\index.php(18):
>>>> ms_newMapObj('C:\ms4w\Apache\...') #1 {main} thrown in
>>>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18*
>>>>
>>>> On Fri, Jun 19, 2015 at 9:45 AM, TDS <tds at tds-net.de> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> MapScript can't find the file. Try to use absolute path instead of
>>>>> relative path, e.g. /MyWorkingDir/mapFiles/khasra.map instead of
>>>>> mapFiles/khasra.map. Check also that on linux/posix system all is case
>>>>> sensitive.
>>>>>
>>>>> Bye, TDS
>>>>> ------------------------------
>>>>> mailto:tds at tds-net.de <tds at tds-net.de>
>>>>> ------------------------------
>>>>> 1+1=10
>>>>> You have a question? - 42 or RTFM.
>>>>> Am 19.06.2015 um 06:13 schrieb ankur chitranshi:
>>>>>
>>>>> while updating map server version 5.2.3 to 6.0.3, i am facing bellow
>>>>> error,
>>>>>
>>>>> *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap():
>>>>> (mapFiles/khasra.map) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on
>>>>> line *26*
>>>>>
>>>>> *Fatal error*: Uncaught exception 'MapScriptException' with message
>>>>> 'Failed to open map file "mapFiles/khasra.map"' in
>>>>> C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0
>>>>> C:\ms4w\Apache\htdocs\bhopalf\index.php(26):
>>>>> ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in
>>>>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26*
>>>>>
>>>>> *kindly help me*
>>>>>
>>>>>
>>>>> *thanking you *
>>>>>
>>>>> --
>>>>> thanks & regards
>>>>> Ankur Chitranshi
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> thanks & regards
>>>> Ankur Chitranshi
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> thanks & regards
>>> Ankur Chitranshi
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>>
>
>
> --
> thanks & regards
> Ankur Chitranshi
>
--
thanks & regards
Ankur Chitranshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150619/024e5de1/attachment.htm>
More information about the MapServer-users
mailing list