[mapserver-dev] help:create maps on the fly without having a map file

Tamas Szekeres szekerest at gmail.com
Fri Oct 2 11:01:35 EDT 2009


Hi,

MapScript provides the object model (a couple of classes with
properties and methods) for setting up your map configuration from
scratch. You would normally require to create a map object (mapObj)
add layers and set up the styles and symbology for each layer. You
could then render the map into an image object or you could optionally
save your map configuration to a mapfile for later use.
Here is an example written in C# to set up a map configuration
programmatically:
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapscript/csharp/ex=
amples/inline.cs
This example creates the shapes for the layer programmatically as well.

Best regards,

Tamas




2009/10/2 =DC=C7=BD=A8=D1=AB <ruijianxun at 126.com>:
> Hi everyone,
> I have found a paragraph in a book named <Web Mapping Illustrated-p>,as
> fllowing:
> "MapServer map files are still a key component to writing a MapScript-bas=
ed
> application. If you have a map file ready to use, you can start accessing
> and manipulating it right away. However, a powerful feature of MapScript =
is
> the ability to create maps on the fly without having a map file. In this
> case, you can build your map from scratch".
> I donot understand that we can create maps on the fly without having a ma=
p
> file.Is mapserver can really work without mapfile,especially in the
> environment via PHP/MapScript or Python /MapScript ?
> Best Regards,
> Rui jx
>
>
> ________________________________
> =CD=F8=D2=D7=D3=CA=CF=E4=D3=C3=BB=A7=B9=BA=CE=EF=B6=C0=CF=ED=CF=D6=BD=F0=
=B7=B5=BB=B9
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>


More information about the mapserver-dev mailing list