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

Home » Public Forums » archive » Re: reading shapefiles & IDL objects
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 shapefiles & IDL objects [message #78764] Wed, 21 December 2011 08:18 Go to next message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
Are you sure that the file 'pivot6.shp' is a valid shape file?

IDLffShape will return a null pointer if the file is invalid....


Russell

On Dec 21, 11:06 am, desertdryad <dry...@gmail.com> wrote:
> On Dec 20, 8:56 pm, David Fanning <n...@dfanning.com> wrote:
>
>
>
>
>
>
>
>
>
>> desertdryad writes:
>
>>> 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.
>
>> It looks to me like there is an extra slash in the
>> filename. Shouldn't the file name be this:
>
>>    filename = 'C:\etotest\pivot6.shp'
>
> Yes; but it makes no difference!
Re: reading shapefiles & IDL objects [message #78768 is a reply to message #78764] Wed, 21 December 2011 08:09 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
desertdryad writes:

> Yes; but it makes no difference!

Well, then I would say there is something wrong with
your ReadShape program. Typo?

Set a breakpoint and have a look around. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: reading shapefiles & IDL objects [message #78769 is a reply to message #78768] Wed, 21 December 2011 08:06 Go to previous messageGo to next message
desertdryad is currently offline  desertdryad
Messages: 39
Registered: August 2011
Member
On Dec 20, 8:56 pm, David Fanning <n...@dfanning.com> wrote:
> desertdryad writes:
>
>> 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.
>
> It looks to me like there is an extra slash in the
> filename. Shouldn't the file name be this:
>
>    filename = 'C:\etotest\pivot6.shp'

Yes; but it makes no difference!
Re: reading shapefiles & IDL objects [message #78776 is a reply to message #78769] Tue, 20 December 2011 19:56 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
desertdryad writes:

>
> 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.

It looks to me like there is an extra slash in the
filename. Shouldn't the file name be this:

filename = 'C:\etotest\pivot6.shp'

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: reading shapefiles & IDL objects [message #78856 is a reply to message #78764] Wed, 21 December 2011 10:00 Go to previous message
desertdryad is currently offline  desertdryad
Messages: 39
Registered: August 2011
Member
I am sure it's a valid file; I just checked.

And nothing happens in the procedure before the bit i posted!

Next question - is there any possibility my installation of IDL does
not have IDLffShape defined?
How could I check? I didn't install the software on my machine; it
was done before my time here where I work.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Mac Market Share in Science
Next Topic: Re: One Reason Python is not taking over for IDL

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

Current Time: Wed Oct 08 19:28:14 PDT 2025

Total time taken to generate the page: 0.00708 seconds