Re: reading *.shp [message #61654] |
Thu, 24 July 2008 11:06 |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On 24 Jul., 06:02, Bob Crawford <Snowma...@gmail.com> wrote:
> On Jul 24, 7:03 am, d.po...@gmail.com wrote:
>
>> folks
>> does anybody know how we can read a *.shp file and show that like an
>> image? i am working with
>> a program that all export are *.shp file.
>> Cheers
>
> A look on David Fannings site is always a good place to start:http://www.dfanning.com/map_tips/shapefile.html
Bob
thanks for the link. i wrote a *pro* to read my shape files (my shape
files are polylines):
PRO TURIVER_read_shap, EVENT
file=dialog_pickfile(filter='*.shp')
myshape=OBJ_NEW('idlffshape',file)
myshape->getproperty,attribute_name=thenames
thenames=strupcase(strtrim(thenames,2))
entities=ptr_new(/allocate_heap)
*entities=myshape->getentity(/all,/attribute)
obj_destroy,myshape
heap_free,entities
print,entities
END
it reads the data but i can't put attribute table in an array. also i
dont know how i plot the entites (in plot or imap or map_set ....)
Cheers
|
|
|
|
Re: reading *.shp [message #61666 is a reply to message #61661] |
Thu, 24 July 2008 04:16  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
On Jul 24, 8:03 pm, d.po...@gmail.com wrote:
> folks
> does anybody know how we can read a *.shp file and show that like an
> image? i am working with
> a program that all export are *.shp file.
> Cheers
?IDLffShape should get you started.
Andrew
|
|
|