Thanks for the report, Sanjiv. I've been able to reproduce the problem
and have fixed it in r1121, so it will be part of the 1.0.6 release
later this week.

Cheers,
Sean

Sanjiv Singh wrote:
> To add to my last message, this is the value of feature.geometry
> 
> {'type': 'MultiPolygon', 'coordinates': [[[[-17.331573122003171,
> 17.99291089947306], [-10.343892751115149, 30.570735567071498],
> [-5.2195938124639349, 36.626725221841113], [5.9606947809568975,
> 34.297498431545108], [14.811756584081724, 30.570735567071498],
> [29.718808041976168, 30.570735567071498], [45.091704857929813,
> 17.06122018335466], [46.023395574048216, 7.2784676641114308],
> [37.172333770923387, 10.53938517052584], [14.345911226022523,
> 7.7443130221706316], [-0.095294873812719838, 4.0175501576970207],
> [-8.4805113188783441, 3.5517047996378195], [-17.331573122003171,
> 9.1418490963482366], [-17.331573122003171, 17.99291089947306]]]]}
> 
> Thanks
> Sanjiv
> 
> ---------- Forwarded message ----------
> From: Sanjiv Singh <[EMAIL PROTECTED]>
> Date: Wed, Jul 9, 2008 at 10:48 PM
> Subject: Unable to obtain MultiPolygon in Shapely
> To: GISPython Community <[email protected]>
> 
> 
> Hi,
> 
> I am trying to obtain a multipolygon using Shapely as follows:
> 
> country.geometry = asShape(feature.geometry)
> 
> and getting IndexError: list index out of range
> I have pasted the trace back here[1] . It seems to work for
> singular geometries. I have tried with point and polygon geometries.
> The feature geometries seem to be correct as they render properly
> as OpenLayers GML layer.
> 
> What else should I check?
> 
> Regards
> Sanjiv
> 
> [1]  http://paste.turbogears.org/paste/3142
> _______________________________________________
> Community mailing list
> [email protected]
> http://lists.gispython.org/mailman/listinfo/community
> 

_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to