[Mapserver-users] Too many layers
Stepan Kafka
stepan.kafka at centrum.cz
Tue Jan 14 01:08:01 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0014_01C2BBB4.D20DEAB0
Content-Type: text/plain;
charset="windows-1250"
Content-Transfer-Encoding: 8bit
Hi Vaidas,
with tileindex user can see all data across the all regions as seamless
dataset. It may be useful for you - or not? If you can choose only one
region and display it, you can do it by changing underlying dataset names
(or paths) on-fly using cgi variables, e.g.
map_yourlayer_data="/region2/pylons"
It requires probably more javascript in your page to switch the desired
region. But you will have only 3 layers in your mapfile.
(About compiling mapserver - We were successful with increasing the number
of layers as well as classes etc. I don't know, why it doesn't work.)
Stepan Kafka
Help Service Remote Sensing
tel: +420-327514118
mailto:kafka at email.cz
http://www.bnhelp.cz
-----Pùvodní zpráva-----
Od: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]za uivatele Vaidas Velykis
Odesláno: 14. ledna 2003 9:11
Komu: mapserver-users at lists.gis.umn.edu
Pøedmìt: [Mapserver-users] Too many layers
I`m sorry for my poor english:)
Mapserv returns such error line: msLoadMap(): Unknown identifier. Too many
layers defined
I have map of electricity supply system, in wich are 3 basic elements:
lines, pylons and substations. But all the electricity supply system I must
graduated by regions: one layer - one basic element in that region. So, for
one region I have 3 grouped layers. In map, user chooses, wich regions
(grouped layers) he wants to see in map. There are ~42regions, that equals
126 layers.
How can I make my mapserv work?
In previuos posts I read about tileindex. But in my case, I think, that
doesn`t work, because with tileindex user in map will see only 3 layers:
lines, pylons and substations, and can`t choose any separate region. Or i`m
I wrong?
Besides, I can`t compile map.h file (now MS_Maxlayers=100): when I compile
map.h with MS_Maxlayers=400, mapserv returns the same error. What can be
wrong?
Thanks in advance,
Vaidas Velykis
Lithuania
------=_NextPart_000_0014_01C2BBB4.D20DEAB0
Content-Type: text/html;
charset="windows-1250"
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=3Dwindows-1250">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D841075508-14012003><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Vaidas,</FONT></SPAN></DIV>
<DIV><SPAN class=3D841075508-14012003><FONT face=3DArial color=3D#0000ff =
size=3D2> =20
with tileindex user can see all data across the all regions as seamless =
dataset.=20
It may be useful for you - or not? If you can choose only one region and =
display=20
it, you can do it by changing underlying dataset names (or=20
paths) on-fly using cgi variables, e.g.</FONT></SPAN></DIV>
<DIV><SPAN class=3D841075508-14012003></SPAN> </DIV>
<DIV><SPAN class=3D841075508-14012003><FONT face=3D"Courier New"=20
size=3D2>map_yourlayer_data=3D"/region2/pylons"</FONT></SPAN></DIV>
<DIV><SPAN class=3D841075508-14012003></SPAN> </DIV>
<DIV><SPAN class=3D841075508-14012003><FONT face=3DArial color=3D#0000ff =
size=3D2>It=20
requires probably more javascript in your page to switch the desired=20
region.</FONT> <FONT face=3DArial color=3D#0000ff size=3D2>But you =
will have only=20
3 layers in your mapfile. </FONT></SPAN></DIV>
<DIV><SPAN class=3D841075508-14012003><FONT face=3DArial color=3D#0000ff =
size=3D2>(About=20
compiling mapserver - We were successful with increasing the number of =
layers as=20
well as classes etc. I don't know, why it doesn't =
work.)</FONT></SPAN></DIV>
<DIV><SPAN class=3D841075508-14012003><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D841075508-14012003>
<P><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D841075508-14012003>Stepan =
Kafka<BR></SPAN></FONT></FONT></FONT><FONT=20
face=3DArial><FONT color=3D#0000ff><FONT size=3D2>Help Service Remote =
Sensing<BR>tel:=20
+420-327514118<BR></FONT></FONT></FONT><A href=3D"mailto:kafka at email.cz" =
target=3D_blank><FONT face=3DArial =
size=3D2>mailto:kafka at email.cz</FONT></A><BR><A=20
href=3D"http://www.bnhelp.cz/" target=3D_blank><FONT face=3DArial=20
size=3D2>http://www.bnhelp.cz</FONT></A><FONT face=3DArial =
color=3D#0000ff size=3D2>=20
</FONT></P></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
size=3D2>-----P=F9vodn=ED zpr=E1va-----<BR><B>Od:</B>=20
mapserver-users-admin at lists.gis.umn.edu=20
[mailto:mapserver-users-admin at lists.gis.umn.edu]<B>za u=9Eivatele</B> =
Vaidas=20
Velykis<BR><B>Odesl=E1no:</B> 14. ledna 2003 9:11<BR><B>Komu:</B>=20
mapserver-users at lists.gis.umn.edu<BR><B>P=F8edm=ECt:</B> =
[Mapserver-users] Too=20
many layers<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I`m sorry for my poor =
english:)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Mapserv returns such error line: =
<FONT=20
face=3D"Times New Roman" size=3D3>msLoadMap(): Unknown identifier. Too =
many layers=20
defined</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have map of electricity supply =
system, in=20
wich are 3 basic elements: lines, pylons and substations. But all =
the=20
electricity supply system I must graduated by regions: one layer - one =
basic=20
element in that region. So, for one region I have 3 grouped layers. In =
map,=20
user chooses, wich regions (grouped layers) he wants to see in =
map. There=20
are ~42regions, that equals 126 layers.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How can I make my mapserv =
work?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>In previuos posts I read about =
tileindex. But in=20
my case, I think, that doesn`t work, because with tileindex user in =
map will=20
see only 3 layers: lines, pylons and substations, and=20
can`t choose any separate region. Or i`m I =
wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></DIV>
<DIV><FONT face=3DArial size=3D2>Besides, I can`t compile map.h =
file (now=20
MS_Maxlayers=3D100): when I compile map.h with MS_Maxlayers=3D400, =
mapserv returns=20
the same error. What can be wrong?</FONT></DIV>
<DIV> </DIV>
<DIV>Thanks in advance,</DIV>
<DIV>Vaidas Velykis</DIV>
<DIV>Lithuania</DIV></BLOCKQUOTE></FONT></BODY></HTML>
------=_NextPart_000_0014_01C2BBB4.D20DEAB0--
More information about the MapServer-users
mailing list