Re: [ZMapServer-Developers] Create dynamically a layer point
Status: Alpha
Brought to you by:
sgillies
|
From: <sgi...@fr...> - 2005-03-18 21:51:33
|
> Hi everybody, > > I'm a new Zope and MapServer user and I have to make a Zope module to > allow users to get some map from the repository and add some layers to > them also from the repository. To do this I have some source code > example. But furthermore I have to allow user to dynamicaly build > layers to add information points to the map like towns, special > buildings, ... etc, for this functionnality I have no idea about what > technology to use ... ZMapServer, ZCO/PCL, others ... the users will > just have to click on the map and adding information like the name of > the building, the coordinate have to be automatically filled. > > Do you have any idea to solve my problem ? > > Thanks for your help, Sebastien Didelet. > Sebastien, ZCO and PCL do not have any data collection capability, you will need to customize this for your application. ZCO/PCL *do* have the capability to work with many different data sources. For example, see the examples of deomo/zdata/cpoints and demo/zdata/zpoints in the demo application. This would give you the option of storing user-defined features in a CSV formatted file, or storing them in an external database. If you use a database, the PostGIS extension for PostgreSQL is excellent. For points, two columns in a MySQL table may suffice. All you would need would be several Python Scripts that implement ZCO's IDataStore interface. I hope this helps. I can't provide any better examples until I return to my office next week. cheers, Sean |