Resolved.I have found matplotlib and i have plotted the shape file.Here's
my code
import shapefile
sf = shapefile.Reader("tgr01001lkB.shp")
shapes = sf.shapes()
import matplotlib.pyplot as plt
from matplotlib.path import Path
import matplotlib.patches as patches
fig = plt.figure()
ax = fig.add_subplot(111)
for i in range(len(shapes)):
verts = shapes[i].points
path = Path(verts)
patch = patches.PathPatch(path, facecolor='orange', lw=2)
ax.add_patch(patch)
ax.set_xlim(-2,2)
ax.set_ylim(-2,2)
plt.show()
On Mon, Feb 13, 2012 at 12:32 AM, manoj babu <[email protected]>wrote:
> yeah i have read those. but i dont understand how do i plot them
>
>
> On Sun, Feb 12, 2012 at 11:41 PM, Mahesh saini <[email protected]>wrote:
>
>> Hope this can help
>> http://packages.python.org/Python%20Shapefile%20Library/
>> http://code.google.com/p/pyshp/
>>
>>
>> On Sun, Feb 12, 2012 at 11:35 PM, SpriTe <[email protected]>wrote:
>>
>>> can any one help help me how can i plot shape file data in python?
>>>
>>> --
>>> Mailing list guidelines and other related articles:
>>> http://lug-iitd.org/Footer
>>>
>>
>>
>>
>> --
>> (\/)/\ /-/ ES /-/
>>
>> --
>> Mailing list guidelines and other related articles:
>> http://lug-iitd.org/Footer
>>
>
>
--
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer