[Community] Problem with adding a new layer

Darius K. Mott dmott at radiancetech.com
Fri Feb 24 00:38:30 EET 2006


> On Feb 23, 2006, at 2:29 PM, Darius K. Mott wrote:
>
>> Hello All,
>>
>> I am trying to add my own vector layer to the PrimaGIS demo.   
>> Everything is working fine up until the point of adding the style  to 
>> the layer.  If I do not add a  style to the layer, it renders  with 
>> no problem within the map.  Upon adding the style, I just get  a 
>> blank image in the map.  When I went back in and clicked on the  
>> rules tab for the style, there is a broken image link.  When I  
>> clicked the details link, I got the following error message:
>>
>> Error Type SyntaxError Error Message unexpected EOF while parsing  (, 
>> line 1) Request made at 2006/02/23 15:25:23.310 US/Central  Here  are 
>> the settings for style:
>>
>>  Rule NameFilter ExpressionSymbolizer PathMin Scale DenominatorMax  
>> Scale Denominator
>> us_states
>> No Filter
>> ../../symbolizers/polygon/state
>> -1.0
>> -1.0
>>
>> I have checked the symbolizer path multiple times and it is right.   
>> Anybody have a clue what could be going wrong?
>>
>> TIA,
>> -- Darius K. Mott
>
>
> Darius,
>
> There should be a little more information in the Plone event.log  
> telling what module this error is raised from. Could you find that  
> and show me?
>
> Sean
>
> ---
> Sean Gillies
> sgillies at frii dot com
> http://zcologia.com/news
>
>
>
>
>
Sean,

Here's the last entry in the event log:

------
2006-02-23T15:31:13 ERROR(200) SiteError 
http://localhost:8080/Plone/demo/zco/layers/us_states/states/overview
Traceback (most recent call last):
 File "C:\Program Files\Plone 2\Zope\lib\python\ZPublisher\Publish.py", 
line 101, in publish
   request, bind=1)
 File "C:\Program Files\Plone 2\Zope\lib\python\ZPublisher\mapply.py", 
line 88, in mapply
   if debug is not None: return debug(object,args,context)
 File "C:\Program Files\Plone 2\Zope\lib\python\ZPublisher\Publish.py", 
line 39, in call_object
   result=apply(object,args) # Type s<cr> to step into published object.
 File "C:\Program Files\Plone 2\Data\Products\ZCO\overview.py", line 66, 
in overview
   format=format, bgcolor=bgcolor)
 File "C:\Program Files\Plone 2\Data\Products\ZCO\MapRenderer.py", line 
193, in render
   image = r.render(layering, view, format, size, bgcolor, transparent)
 File "C:\Program Files\Plone 
2\Python\Lib\site-packages\cartography\engine\mapserver\rendering.py", 
line 177, in render
   layer, style)
 File "C:\Program Files\Plone 
2\Python\Lib\site-packages\cartography\engine\mapserver\rendering.py", 
line 1031, in _apply_style
   c_filters = [compile(f, '<string>', 'eval') for f in fkeys]
 File "<string>", line 1
    No Filter
            ^
SyntaxError: unexpected EOF while parsing

-- 
Darius




More information about the Community mailing list