[Geoprisma-dev] Move demo to new system, and having issues

Stephen Woodbridge woodbri at swoodbridge.com
Fri Jan 8 15:35:00 EST 2010


Alexandre Dube wrote:
> Hi Steve,
> 
>  Could you please add the links to your config.xml and template.xslt 
> files ?  I'd be glad to help.

http://gis.imaptools.com/project/myproj2/config.xml
http://gis.imaptools.com/project/myproj2/xslt/default.xslt
http://gis.imaptools.com/project/myproj2/featureserver.cfg

I fixed the commit issue, the featureserver.cfg was missing the metadata 
section.

Thanks,
  -Steve

> Regards,
> 
> Alexandre
> 
> 
> Stephen Woodbridge wrote:
>> Hi all,
>>
>> I move my Geoprisma demo to a new system and things are not working.
>> I'm wondering is this was because something changed in trunk? Because 
>> the only thing I can see that is different is the new server is on a new
>> Revision: 765 and the working one is on Revision: 761. Altought I may 
>> have missed some other config change when moving it.
>>
>> http://gis.imaptools.com/project/myproj2/
>> login: test2/test to add a street
>>
>> Two symptoms:
>> 1) when I add a street, the attribute dialog is not populated with any 
>> fields
>> 2) if I commit the feature anyway I get the following request, response.
>>
>> Params:
>> osmservice=S_WFS_IMT_FS
>> osmtoken=TODO%20Delete%20this
>> osmresource[]=R_STREETS
>>
>> Post:
>> {"type":"FeatureCollection","features":[{"type":"Feature","id":"OpenLayers.Feature.Vector_564","properties":{},"geometry":{"type":"LineString","coordinates":[[-10737947.3757,3775653.8152183],[-10738002.314814,3775759.5132964]]}}]} 
>>
>>
>> Response:
>> An error occurred: Couldn't create WKT from geometry of type 
>> LineString ({u'type': u'LineString', u'coordinates': 
>> [[-10737947.375700001, 3775653.8152183001], [-10738002.314813999, 
>> 3775759.5132964002]]}). Only Point, Line, Polygon are supported.
>>   File "/usr/lib/cgi-bin/featureserver-1.12/FeatureServer/Server.py", 
>> line 298, in cgiHandler
>>     format, content = service.dispatchRequest( params, path_info, 
>> host, post_data, request_method, accepts )
>>   File "/usr/lib/cgi-bin/featureserver-1.12/FeatureServer/Server.py", 
>> line 145, in dispatchRequest
>>     result = method(action)
>>   File 
>> "/usr/lib/cgi-bin/featureserver-1.12/FeatureServer/DataSource/PostGIS.py", 
>> line 138, in create
>>     values = ", 
>> ".join(self.value_formats(feature)+["SetSRID('%s'::geometry, %s) " % 
>> (self.to_wkt(feature.geometry), self.srid)])
>>   File 
>> "/usr/lib/cgi-bin/featureserver-1.12/FeatureServer/DataSource/PostGIS.py", 
>> line 98, in to_wkt
>>     raise Exception("Couldn't create WKT from geometry of type %s 
>> (%s). Only Point, Line, Polygon are supported." % (geom['type'], geom))
>>
>> _______________________________________________
>> Geoprisma-dev mailing list
>> Geoprisma-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geoprisma-dev
> 
> 




More information about the Geoprisma-dev mailing list