Thread: [ZMapServer-Developers] PCL/ZCO CVS head
Status: Alpha
Brought to you by:
sgillies
|
From: Kai <kai...@mb...> - 2005-03-07 11:07:59
|
Hi I was trying the current CVS head for both PCL/ZCO and bumped into a following problem with both the ZCO demo and my own project. While trying to render the map, the exception at the bottom of this message occurs. In my case the problem occurs when I render layers with MemoryFeatureStore as datastore. Without them the map renders as it should. The demo suffers from this too, simply viewing the index_html fails rendering all the images. Have you bumped into this, Sean? I'll try this again with a clean install tomorrow if it still occurs then, but let me know if it's something else. cheers, Kai ---begin-stack-trace--- 2005-03-07T12:54:32 ERROR(200) SiteError http://some.site/demo/layers/cpoints/dot/viewLayer Traceback (most recent call last): File "/usr/local/zope/lib/python/ZPublisher/Publish.py", line 101, in publish request, bind=3D1) File "/usr/local/zope/lib/python/ZPublisher/mapply.py", line 88, in mapply if debug is not None: return debug(object,args,context) File "/usr/local/zope/lib/python/ZPublisher/Publish.py", line 39, in call_object result=3Dapply(object,args) # Type s<cr> to step into published object. File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line 306, in __call__ return self._bindAndExec(args, kw, None) File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec return self._exec(bound_data, args, kw) File "/usr/local/zope/lib/python/Products/PythonScripts/PythonScript.py", line 323, in _exec result =3D f(*args, **kw) File "Script (Python)", line 37, in viewLayer File "/usr/local/zope/inst-main/Products/ZCO/MapRenderer.py", line 172, in render def draw(self, symbolizer, format=3D'image/png', size=3D[16, 16], File "/usr/lib/python2.3/site-packages/cartography/engine/mapserver/mapserver.= py", line 149, in render fkeys, c_filters) File "/usr/lib/python2.3/site-packages/cartography/engine/mapserver/mapserver.= py", line 980, in _render_layer_memory_intrinsic lo.addFeature(shape) File "/usr/lib/python2.3/site-packages/mapscript.py", line 764, in addFeature def addFeature(*args): return _mapscript.layerObj_addFeature(*args) TypeError: Expected a pointer --=20 Kai H=E4nninen mobile:+358-44-541 9567 Software engineer www.mbconcert.fi MB Concert Ky kai...@mb... |
|
From: Sean G. <sgi...@fr...> - 2005-03-07 19:22:33
|
On Mar 7, 2005, at 4:07 AM, Kai H=E4nninen wrote: > Hi > > I was trying the current CVS head for both PCL/ZCO and bumped into a > following problem with both the ZCO demo and my own project. While > trying to render the map, the exception at the bottom of this message > occurs. > > In my case the problem occurs when I render layers with > MemoryFeatureStore as datastore. Without them the map renders as it > should. The demo suffers from this too, simply viewing the index_html > fails rendering all the images. > > Have you bumped into this, Sean? > > I'll try this again with a clean install tomorrow if it still occurs > then, but let me know if it's something else. > > cheers, > Kai > > > ---begin-stack-trace--- > > 2005-03-07T12:54:32 ERROR(200) SiteError > http://some.site/demo/layers/cpoints/dot/viewLayer > Traceback (most recent call last): > File "/usr/local/zope/lib/python/ZPublisher/Publish.py", line 101, = in > publish > request, bind=3D1) > File "/usr/local/zope/lib/python/ZPublisher/mapply.py", line 88, in > mapply > if debug is not None: return debug(object,args,context) > File "/usr/local/zope/lib/python/ZPublisher/Publish.py", line 39, in > call_object > result=3Dapply(object,args) # Type s<cr> to step into published > object. > File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", = line > 306, in __call__ > return self._bindAndExec(args, kw, None) > File "/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py", = line > 343, in _bindAndExec > return self._exec(bound_data, args, kw) > File > "/usr/local/zope/lib/python/Products/PythonScripts/PythonScript.py", > line 323, in _exec > result =3D f(*args, **kw) > File "Script (Python)", line 37, in viewLayer > File "/usr/local/zope/inst-main/Products/ZCO/MapRenderer.py", line > 172, in render > def draw(self, symbolizer, format=3D'image/png', size=3D[16, 16], > File > "/usr/lib/python2.3/site-packages/cartography/engine/mapserver/=20 > mapserver.py", line 149, in render > fkeys, c_filters) > File > "/usr/lib/python2.3/site-packages/cartography/engine/mapserver/=20 > mapserver.py", line 980, in _render_layer_memory_intrinsic > lo.addFeature(shape) > File "/usr/lib/python2.3/site-packages/mapscript.py", line 764, in > addFeature > def addFeature(*args): return = _mapscript.layerObj_addFeature(*args) > TypeError: Expected a pointer > > --=20 > Kai H=E4nninen mobile:+358-44-541 9567 > Software engineer www.mbconcert.fi > MB Concert Ky kai...@mb... > Kai, It is likely that the HEADs of PCL and ZCO are out of synch right now. =20= That layerObj_addFeature() method from mapscript is expecting a =20 reference to a mapscript shapeObj and it must be getting something else =20= instead. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies= |
|
From: Kai <kai...@mb...> - 2005-03-08 09:10:35
|
ma, 2005-03-07 kello 12:22 -0700, Sean Gillies kirjoitti: > It is likely that the HEADs of PCL and ZCO are out of synch right now. = =20 > That layerObj_addFeature() method from mapscript is expecting a =20 > reference to a mapscript shapeObj and it must be getting something else= =20 > instead. I reverted to PCL 0.7 / ZCO 0.4 and still get the same problem with both the demo and my project. Does the demo work for you with the 0.7/0.4 combination? Kai --=20 Kai H=E4nninen mobile:+358-44-541 9567 Software engineer www.mbconcert.fi MB Concert Ky kai...@mb... |
|
From: Sean G. <sgi...@fr...> - 2005-03-08 15:26:00
|
On Mar 8, 2005, at 2:10 AM, Kai H=E4nninen wrote: > ma, 2005-03-07 kello 12:22 -0700, Sean Gillies kirjoitti: > >> It is likely that the HEADs of PCL and ZCO are out of synch right = now. >> That layerObj_addFeature() method from mapscript is expecting a >> reference to a mapscript shapeObj and it must be getting something=20 >> else >> instead. > > I reverted to PCL 0.7 / ZCO 0.4 and still get the same problem with=20 > both > the demo and my project. Does the demo work for you with the 0.7/0.4 > combination? > Kai, I have an idea ... did you import the demo.zexp file included with ZCO=20= 0.4? The zdata/points_catalog data store in 0.3 had WKB geometries,=20 but in 0.4 we are now using PCL's geometries. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies= |