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

Home » Public Forums » archive » reading shapefiles & IDL objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
reading shapefiles & IDL objects [message #78778] Tue, 20 December 2011 15:48 Go to previous message
desertdryad is currently offline  desertdryad
Messages: 39
Registered: August 2011
Member
I'm trying to write a function that can read GIS shapefiles in IDL.
I'm new to this and to using objects in IDL; but I seem to be stuck
right at the gate for reasons I cannot fathom. Here is the snipet of
code at hte beginning of my function:

-------------------------

function readshape, filename

; test script for reading a shapefile into idl and finding data
contained w/in

myshape = obj_new('IDLffShape', filename)
help, myshape

--------------------------

Now, I know for certain that the shapefile exists whose name gets
passed as 'filename' and I've specified the path at the command line.
Yet, I get this error:

ENVI> testme = readshape('C:\\etotest\pivot6.shp')

MYSHAPE OBJREF = <NullObject>
% Stop encountered: READSHAPE 7 C:\Cyndys\Default
\readshape.pro


What on Earth am I doing wrong, here? Please advise.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Widget Object graphics code crashes V8.2
Next Topic: Re: IDL/ENVI Attempt to call undefined procedure/function - ENVI_PROJ_CREATE

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

Current Time: Wed Oct 08 17:38:14 PDT 2025

Total time taken to generate the page: 0.00446 seconds