comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: reading *.shp
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: reading *.shp [message #61654] Thu, 24 July 2008 11:06
d.poreh is currently offline  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 #61661 is a reply to message #61654] Thu, 24 July 2008 06:02 Go to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
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
Re: reading *.shp [message #61666 is a reply to message #61661] Thu, 24 July 2008 04:16 Go to previous message
Andrew Cool is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Position keyword
Next Topic: wind/WAVES reg.,

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:26:35 PDT 2025

Total time taken to generate the page: 0.00670 seconds