MapTools.org

[maplab-users] Style-pickers-Gmapfactory-tutorial problems

Spyros Michas smichas@hydroex.gr
Sun, 4 Apr 2004 22:02:10 +0300
This is a multi-part message in MIME format.

------=_NextPart_000_0011_01C41A90.7A6C30A0
Content-Type: text/plain;
	charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable

Dear maplab friends,

I have managed to install MapLab 2.1-rc3 on my home PC:
WinXPpro
Apache 2.0.48
PHP 4.3.4
mapscript 36
mapserver 4.0
In the info page, the mapserver version 3.6.6 is shown, however I am =
sure I have a 4.0 version. I configured paths etc., after receiving =
several temp folder errors, and maplab comes to life with no errors. It =
is a wonderful, very friendly map file interface and is definitely worth =
the effort.

1) Now I am stuck completely. I have a map file that I had created =
manually and works fine when called directly =
(http://localhost/cgi-bin/mapserv.exe?map=3Dpath/to/mymapfile.map&mode=3D=
map) or htrough a simple html file I created. It is a very basic map =
with two layers, one of which has two classes.However, this file does =
not work in Maplab:
- My color settings for the class are not defined under a style, but are =
stated within the class lines. This is OK for mapserver. However, it =
does not work under map lab, and in the mapbrowser it displays a blank =
map.
- I try to set styles to define colors. When I am done and switch to =
mapbrowse, I get error messages that appear to come from mapserv.exe:

    Warning: MapServer Error in loadClass(): (STYLE):(116) in =
path\to\maplab\htdocs\common\wrapper\map_session.php on line 215

(This is followed by  a fail to read map file fatal error message)

- If the style is unnamed, then the direct mapserv call works. If it's =
named, it doesn't, but displays another error

    loadStyle(): Unknown identifier. Parsing error near (NAME):(line =
118)

- I manually comment the NAME line in the style, and the direct =
mapserv.exe call works again, but the mapbrowse still not.
- After loads of trials (new map files with single layer, etc.), I get =
the same result. The mapbrowse errors dissapear only when the styles are =
gone, but then I get a blank map.
- Can anyone see a possible error in the above procedure?

2) My color picker does not work. The browser window pops up, and inside =
there is a grey background and a darker grey box, but no colors. I have =
the colorpicker.class file. I try the test_color_picker.html and get the =
same empty popup window

3) My symbol picker is not working. I get a message window stating:
        No SYMBOLSET or invalid path in MAP object
        Symbol picker not available

4) My font picker is working, but is empty

5) I try to work Gmap Factory with my no-style blank map. The interface =
works. When rosa is enabled, no tools appear. When I switch to HTML =
tools, the tools appear, but the blank map dissapears (red x appears)

6) tutorial.map doesn't work. I tried it in vain. I get an msLoadMap() =
OUTPUTFORMAT error.  I read somwhere in the list to import the 3.x file. =
Unfortunately, importing does not seem to work at all.

Can anyone help me in any or all of the above? Thanks.

Spyros Michas
Athens, Greece
------=_NextPart_000_0011_01C41A90.7A6C30A0
Content-Type: text/html;
	charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-7">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear maplab friends,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have managed to install MapLab =
2.1-rc3 on my home=20
PC:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>WinXPpro</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Apache 2.0.48</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>PHP 4.3.4</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mapscript 36</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mapserver 4.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In the info page, the mapserver version =
3.6.6 is=20
shown, however I am sure I have a 4.0 version. I configured paths etc., =
after=20
receiving several temp folder errors, and maplab comes to life with no =
errors.=20
It is a wonderful, very friendly map file interface and is definitely =
worth the=20
effort.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1) Now I am stuck completely. I have a =
map file=20
that I had created manually and works fine when called directly (<A=20
href=3D"http://localhost/cgi-bin/mapserv.exe?map=3Dpath/to/mymapfile.map&=
amp;mode=3Dmap">http://localhost/cgi-bin/mapserv.exe?map=3Dpath/to/mymapf=
ile.map&amp;mode=3Dmap</A>)=20
or htrough a simple html file I created. It is a very basic map with two =
layers,=20
one of which has two classes.</FONT><FONT face=3DArial size=3D2>However, =
this file=20
does not work in Maplab:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- My color settings for the class are =
not defined=20
under a style, but are stated within the class lines. This is OK for =
mapserver.=20
However, it does not work under map lab, and in the mapbrowser it =
displays a=20
blank map.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- I try to set&nbsp;styles to define =
colors. When I=20
am done and switch to mapbrowse, I get error messages that appear to =
come from=20
mapserv.exe:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT size=3D3><FONT =

face=3D"Times New Roman"><STRONG>Warning</STRONG>: MapServer Error in =
loadClass():=20
(STYLE):(116) in =
<B>path\to\maplab\htdocs\common\wrapper\map_session.php</B> on=20
line <B>215</B></FONT></FONT></FONT></DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV>(This is followed by&nbsp; a fail to read map file fatal error=20
message)</DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>- If the style is unnamed, then the =
direct mapserv=20
call works. If it's named, it doesn't, but displays another =
error</FONT><FONT=20
face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; loadStyle(): Unknown identifier. Parsing error =
near=20
(NAME):(line 118)</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-&nbsp;I manually comment the NAME line =
in the=20
style, and</FONT><FONT face=3DArial size=3D2>&nbsp;the direct =
mapserv.exe call works=20
again, but the </FONT><FONT face=3DArial size=3D2>mapbrowse still =
not.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- After loads of trials (new map files=20
with&nbsp;single layer, etc.), I get the same result. The mapbrowse =
errors=20
dissapear only when the styles are gone, but then I get a blank=20
map.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- Can anyone see a possible&nbsp;error =
in the above=20
procedure?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2) My color picker does not work. The =
browser=20
window pops up, and inside there is a grey background and a darker grey =
box, but=20
no colors. I have the colorpicker.class file. I try the =
test_color_picker.html=20
and get the same empty popup window</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>3) My symbol picker is not working. I =
get a message=20
window stating:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
No SYMBOLSET=20
or invalid path in MAP object</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
Symbol picker=20
not available</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>4) My font picker is working, but is=20
empty</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>5) I try to work Gmap Factory with my =
no-style=20
blank map. The interface works. When rosa is enabled, no tools appear. =
When I=20
switch to HTML tools, the tools appear, but the blank map dissapears =
(red x=20
appears)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>6) tutorial.map doesn't work. I tried =
it in vain. I=20
get an msLoadMap() OUTPUTFORMAT error.&nbsp; I read somwhere in the list =
to=20
import the 3.x file. Unfortunately, importing does not seem to work at=20
all.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone help me in any or all of the =
above?=20
Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Spyros Michas</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Athens, =
Greece</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_0011_01C41A90.7A6C30A0--



This archive was generated by Pipermail.