Re: [ZMapServer-Developers] Render a .map with PCL 0.7 / ZCO 0.4
Status: Alpha
Brought to you by:
sgillies
|
From: Sean G. <sgi...@fr...> - 2005-04-12 14:35:58
|
Seb, You can not use a MapServer map file like this with ZCO. ZCO Data=20 Stores must point to shapefiles, raster images, or WMS services. Sean On Apr 12, 2005, at 8:27 AM, S=E9bastien Didelet wrote: > Sean, > > I've already installed the ZCO demo, I see all the layers. I tried to=20= > add the itasca.map file to the ZCO demo without any succes. > > I add itasca.map file to the mapserver test directory (where other=20 > layers are), > I added a ZCO Data Store called "map" in the data directory with the=20= > following property : > =A0 - path =3D itasca.map > I created a ZCO layer called "testMap" in the layers directory with=20= > the following properties : > =A0 - geometrytype =3D RASTER > =A0 - srs =3D EPSG:4326 > =A0 - datastore =3D ../../data/map > I changed the index_html file to add my layer "testMap" to the=20 > layers_path constant. > > I surely done a mistake but I don't know where ... I have no script=20= > error ... > > cheers, > Seb > > On Apr 12, 2005 3:21 PM, Sean Gillies <sgi...@fr...> wrote: > On Apr 12, 2005, at 2:04 AM, S=E9bastien Didelet wrote: > > > Hi everyone, > > > >=A0=A0I would like to render a .map file using PCL 0.7 and ZCO 0.4, I=20= > don't > > know how can I do ... maybe with the IMapRenderer ... could you send > > me an example ? > > > >=A0=A0thank you, > >=A0=A0Seb > > > > Use the ZCO.MapRenderer.MapRenderer class.=A0=A0The best example is in = the > ZCO demo application.=A0=A0Import ZCO/demo/demo.zexp into your Zope > instance and look at the Python Script named demo/getmap.=A0=A0It = shows an > example of using a map renderer. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > |