> I've seen that xml is easily obtained from wfs feature type saving it in > text file after using getFeature method simply reading the object obtained > as a file; something like: > > featureILike = wfs.getFeature(typename=['<myTypeName>'], \ > bbox=(<xi>, <yi>, <xf>, <yf>)) > out = open('<pathToMyFile>', 'wb') > out.write(featureILike.read()) > out.close() > > is there a way via python to convert it in shape file for example? or better > to upload it in a PostGis table? >
Hi Michele you definitely need another library in order to serialize geometries in different formats (like shapefile or PostGIS). You may give a try to the GDAL Python bindings or to the GeoDjango GDAL API, and use these in conjunction with OWSLib. But before writing any code: have you tried to use the GDAL ogr2ogr utility with the WFS driver? ciao P -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @paolo_corti _______________________________________________ Community mailing list Community@lists.gispython.org http://lists.gispython.org/mailman/listinfo/community