<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi list,<br><br>I am encoutering some problems with the InitialView
widget. I want to show multiple polygons that have the same te_tenure_id
value. I have this configuration in my xml configuration file:<br><br> <initialview><br> <name>InitialViewTenures</name><br> <options><br> <urlfield>te_tenure_id</urlfield><br> <queryfield>te_tenure_id</queryfield><br>
<defaultzoom>7</defaultzoom><br> <highlight>true</highlight><br> </options><br> </initialview><br><br>When I call GeoPrisma with the option "&te_tenure_id=1564", the URL request sent to featureserver looks like this:<br>/featureserver/featureserver.cgi/tenures?random=0.8489123610585759&queryable=te_tenure_id&te_tenure_id=1564<br><br>But this request produces an error in FeatureServer:<br><pre>An error occurred: 'NoneType' object has no attribute 'has_key'
File "D:\Borealis\pact\System\GeoPrisma\ms4w\Apache\htdocs\featureserver\web_request\handlers.py", line 219, in cgi
accepts = accepts )
File "D:\Borealis\pact\System\GeoPrisma\ms4w\Apache\htdocs\featureserver\FeatureServer\Server.py", line 167, in dispatchRequest
result = method(action)
File "D:\Borealis\pact\System\GeoPrisma\ms4w\Apache\htdocs\featureserver\FeatureServer\DataSource\PostGIS.py", line 157, in select
filters = self.feature_predicates(match)
File "D:\Borealis\pact\System\GeoPrisma\ms4w\Apache\htdocs\featureserver\FeatureServer\DataSource\PostGIS.py", line 92, in feature_predicates
if feature.geometry.has_key("coordinates"):</pre>However, if I remove the "queryable=te_tenure_id" option from the URL, FS responds correctly.<br><br>So,
is there an easy solution to my problem? I would need whether a way to
remove the "queryable=te_tenure_id" option from the URL request sent by
GP to FS, or I would need to make sure that my request returns the right
thing even with this option.<br><br>
Here is my FS config if that helps:<br>
<br>
[tenures]<br>
type=PostGIS<br>
dsn=host=127.0.0.1 port=6433 dbname=pact_dev_data user=gpuser password=GP_RULES<br>
layer=te_vg_tenure_featureserver<br>
fid=unique_id<br>
geometry=the_geom_900913_single<br>
srid=900913<br>
encoding=iso-8859-1<br>
attribute_cols=te_tenure_id<br>
gaping_security_hole=yes<br><br>I am using GeoPrisma r1034<br><br>
Thanks!<br>
<br>
Philippe</td></tr></table>