[Mapserver-dev] Fw: [Mapserver-users] number of layers : DYNAMICALLY GENERATED ??

Stephen Clark stephen.clark at focus.ca
Mon Dec 8 12:46:50 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_011E_01C3BD70.340F2360
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ed,

I have attached an email from Daniel Morisette about the BUG 302 he =
posted awhile back about this.

I think I am probably familiar enough with C code to fix this "bug" or =
to enhance mapserver  but would like some help in any event.

Would someone on this list be willing to post a VC7 (.NET edition) =
project file so that I could start the process to "enhance mapserver".



Thanks Stephen



----- Original Message -----=20
From: "Ed McNierney" <ed at topozone.com>
To: "Stephen Clark" <stephen.clark at focus.ca>; =
<mapserver-users at lists.gis.umn.edu>
Cc: <mapserver-dev at lists.gis.umn.edu>
Sent: Monday, December 08, 2003 8:32 AM
Subject: RE: [Mapserver-dev] suggestion needed for using mapserver as a =
generic browser of 2000+ layers of data?


Stephen -

The HARD CODED number is easily changed in map.h, and a rebuild can make =
the number any size you like.  There are some performance advantages to =
the current implementation, so deciding to call it a "bug" doesn't make =
it one <g>.  One can make a good case for either the current scheme or a =
"all you can load" scheme - the biggest disadvantage to the current =
implementation is that if you're not already set up to rebuild MapServer =
it can be a bit of work to make a rather simple change.

- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242=20




----- Original Message -----=20
From: "Daniel Morissette" <morissette at dmsolutions.ca>
To: "Stephen Clark" <stephen.clark at focus.ca>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Friday, October 24, 2003 8:11 AM
Subject: Re: [Mapserver-users] number of layers : DYNAMICALLY GENERATED =
??


> These are compile-time settings, there is still no way to set those=20
> values at run time.
>=20
> We have bug 302 about this, so it's on our list of things to change:
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=3D302
>=20
> Daniel
>=20
>=20
> Stephen Clark wrote:
> > =20
> >=20
> >     ----- Original Message -----
> >     *From:* Stephen Clark <mailto:stephen.clark at focus.ca>
> >     *To:* mapserver-users at lists.gis.umn.edu
> >     <mailto:mapserver-users at lists.gis.umn.edu>
> >     *Sent:* Wednesday, October 22, 2003 11:03 AM
> >     *Subject:* [Mapserver-users] Max number of layers
> >=20
> >     hi all,
> >     =20
> >     Does anyone know if there is support to have the number of =
layers
> >     generated dynamically?
> >     =20
> >     In the "map.h" file the
> >     =20
> >     #define MS_MAXLAYERS
> >     =20
> >     and the
> >     =20
> >     #define MS_MAXCLASSES
> >     =20
> >     have to be set before compiling.
> >     =20
> >     Is there anyone who knows if it is possible to dynamically set =
this
> >     parameter or does it require significant amounts of code =
rewrite.
> >     =20
> >     Also,
> >     Is this the correct list to be posting this question?
> >     =20
> >     =20
> >     Stephen
> >     =20
>=20
>=20
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
------=_NextPart_000_011E_01C3BD70.340F2360
Content-Type: text/html;
	charset="iso-8859-1"
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-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<P><FONT face=3DArial size=3D2>Ed,</FONT></P>
<P><FONT face=3DArial size=3D2>I have attached an email from Daniel =
Morisette about=20
the BUG 302 he posted awhile back about this.</FONT></P>
<P><FONT face=3DArial size=3D2>I think I am probably familiar enough =
with C code to=20
fix this "bug"&nbsp;or to enhance mapserver&nbsp;&nbsp;but would like =
some help=20
in any event.</FONT></P>
<P><FONT face=3DArial size=3D2>Would someone on this list be willing to =
post a VC7=20
(.NET edition) project file so that I could start the process to =
"enhance=20
mapserver".</FONT></P>
<P><FONT face=3DArial size=3D2></FONT>&nbsp;</P>
<P><FONT face=3DArial size=3D2>Thanks Stephen</FONT></P>
<P><FONT face=3DArial size=3D2></FONT>&nbsp;</P>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Ed McNierney" &lt;</FONT><A=20
href=3D"mailto:ed at topozone.com"><FONT face=3DArial=20
size=3D2>ed at topozone.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: "Stephen Clark" &lt;</FONT><A=20
href=3D"mailto:stephen.clark at focus.ca"><FONT face=3DArial=20
size=3D2>stephen.clark at focus.ca</FONT></A><FONT face=3DArial =
size=3D2>&gt;;=20
&lt;</FONT><A href=3D"mailto:mapserver-users at lists.gis.umn.edu"><FONT =
face=3DArial=20
size=3D2>mapserver-users at lists.gis.umn.edu</FONT></A><FONT face=3DArial=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Cc: &lt;</FONT><A=20
href=3D"mailto:mapserver-dev at lists.gis.umn.edu"><FONT face=3DArial=20
size=3D2>mapserver-dev at lists.gis.umn.edu</FONT></A><FONT face=3DArial=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Monday, December 08, 2003 8:32=20
AM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: RE: [Mapserver-dev] suggestion =
needed for=20
using mapserver as a generic browser of 2000+ layers of =
data?</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV>
<P><FONT face=3DArial size=3D2>Stephen -<BR><BR>The HARD CODED number is =
easily=20
changed in map.h, and a rebuild can make the number any size you =
like.&nbsp;=20
There are some performance advantages to the current implementation, so =
deciding=20
to call it a "bug" doesn't make it one &lt;g&gt;.&nbsp; One can make a =
good case=20
for either the current scheme or a "all you can load" scheme - the =
biggest=20
disadvantage to the current implementation is that if you're not already =
set up=20
to rebuild MapServer it can be a bit of work to make a rather simple=20
change.<BR><BR>- Ed<BR><BR>Ed McNierney<BR>President and Chief=20
Mapmaker<BR>TopoZone.com / Maps a la carte, Inc.<BR>73 Princeton Street, =
Suite=20
305<BR>North Chelmsford, MA&nbsp; 01863<BR></FONT><A=20
href=3D"mailto:ed at topozone.com"><FONT face=3DArial=20
size=3D2>ed at topozone.com</FONT></A><BR><FONT face=3DArial size=3D2>(978) =
251-4242=20
<BR><BR></FONT></P></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Daniel Morissette" &lt;</FONT><A =

href=3D"mailto:morissette at dmsolutions.ca"><FONT face=3DArial=20
size=3D2>morissette at dmsolutions.ca</FONT></A><FONT face=3DArial=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: "Stephen Clark" &lt;</FONT><A=20
href=3D"mailto:stephen.clark at focus.ca"><FONT face=3DArial=20
size=3D2>stephen.clark at focus.ca</FONT></A><FONT face=3DArial=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Cc: &lt;</FONT><A=20
href=3D"mailto:mapserver-users at lists.gis.umn.edu"><FONT face=3DArial=20
size=3D2>mapserver-users at lists.gis.umn.edu</FONT></A><FONT face=3DArial=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Friday, October 24, 2003 8:11 =
AM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: Re: [Mapserver-users] number =
of layers :=20
DYNAMICALLY GENERATED ??</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV><FONT =
face=3DArial=20
size=3D2>&gt; These are compile-time settings, there is still no way to =
set those=20
<BR>&gt; values at run time.<BR>&gt; <BR>&gt; We have bug 302 about =
this, so=20
it's on our list of things to change:<BR>&gt; </FONT><A=20
href=3D"http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=3D302"><FONT =
face=3DArial=20
size=3D2>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=3D302</FONT></=
A><BR><FONT=20
face=3DArial size=3D2>&gt; <BR>&gt; Daniel<BR>&gt; <BR>&gt; <BR>&gt; =
Stephen Clark=20
wrote:<BR>&gt; &gt;&nbsp; <BR>&gt; &gt; <BR>&gt; =
&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
----- Original Message -----<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; =
*From:*=20
Stephen Clark &lt;</FONT><A href=3D"mailto:stephen.clark at focus.ca"><FONT =

face=3DArial size=3D2>mailto:stephen.clark at focus.ca</FONT></A><FONT =
face=3DArial=20
size=3D2>&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; *To:* </FONT><A=20
href=3D"mailto:mapserver-users at lists.gis.umn.edu"><FONT face=3DArial=20
size=3D2>mapserver-users at lists.gis.umn.edu</FONT></A><BR><FONT =
face=3DArial=20
size=3D2>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</FONT><A=20
href=3D"mailto:mapserver-users at lists.gis.umn.edu"><FONT face=3DArial=20
size=3D2>mailto:mapserver-users at lists.gis.umn.edu</FONT></A><FONT =
face=3DArial=20
size=3D2>&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; *Sent:* Wednesday, =
October 22,=20
2003 11:03 AM<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; *Subject:* =
[Mapserver-users]=20
Max number of layers<BR>&gt; &gt; <BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; =
hi=20
all,<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Does anyone know if there is support to =
have the=20
number of layers<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; generated=20
dynamically?<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; In the "map.h" file the<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; =
#define=20
MS_MAXLAYERS<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; and the<BR>&gt; =
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; #define MS_MAXCLASSES<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; =
have to=20
be set before compiling.<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Is there anyone who knows if it is possible =
to=20
dynamically set this<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; parameter or =
does it=20
require significant amounts of code rewrite.<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; =

Also,<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Is this the correct list to =
be=20
posting this question?<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; =

Stephen<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; <BR>&gt; =
<BR>&gt;=20
_______________________________________________<BR>&gt; Mapserver-users =
mailing=20
list<BR>&gt; </FONT><A =
href=3D"mailto:Mapserver-users at lists.gis.umn.edu"><FONT=20
face=3DArial =
size=3D2>Mapserver-users at lists.gis.umn.edu</FONT></A><BR><FONT=20
face=3DArial size=3D2>&gt; </FONT><A=20
href=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users"><FONT =

face=3DArial=20
size=3D2>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</FONT>=
</A><BR><FONT=20
face=3DArial size=3D2>&gt; </FONT></BODY></HTML>

------=_NextPart_000_011E_01C3BD70.340F2360--




More information about the mapserver-dev mailing list