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

Home » Public Forums » archive » Re: Creating Polygon Shapefile with IDL
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: Creating Polygon Shapefile with IDL [message #76572] Tue, 14 June 2011 00:27
Patrick Leinenkugel is currently offline  Patrick Leinenkugel
Messages: 5
Registered: June 2011
Junior Member
On 11 Jun., 13:54, Klemen <klemen.zak...@gmail.com> wrote:
> You have to close the polygon - first and last point have to be the
> same. Take a look at this example that creates a geolocation shape for
> a region of MODIS image.
>
> http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thr...
>
> Cheers, Klemen


It worked!!
Indeed, the problem was that I have not closed the polygones
correctly.
Thank you very much for your help, Klemen and Matt!

Cheers, Patrick
Re: Creating Polygon Shapefile with IDL [message #76588 is a reply to message #76572] Sat, 11 June 2011 04:54 Go to previous message
Klemen is currently offline  Klemen
Messages: 80
Registered: July 2009
Member
You have to close the polygon - first and last point have to be the
same. Take a look at this example that creates a geolocation shape for
a region of MODIS image.

http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thread/ef1136e58091682/348732867553aef7?hl=en%3Fhl%3De n#348732867553aef7

Cheers, Klemen
Re: Creating Polygon Shapefile with IDL [message #76595 is a reply to message #76588] Fri, 10 June 2011 10:31 Go to previous message
Matt[2] is currently offline  Matt[2]
Messages: 69
Registered: March 2007
Member
On Jun 10, 10:16 am, Patrick Leinenkugel <lei...@googlemail.com>
wrote:

> <snip> I got my shapefile with the polgones and their respective
> attributes. However, when I open the shapefile with ArcGIS, it seems that
> one edge, namely the edge between the starting vertex and the end vertex is
> missing, <snip>

> What am I doing wrong? Do I have to 'close' the polygon shapefile be
> adding a fifth vertex, namely the same vertex as the starting vertex,
> to the entity? I tried this out but it did'nt work eather. I am sure
> there is a very simple solution to this problem. If anybody has the
> answer, it would be very nice of you to let me know.

I'm not an expert, but I have a guess. My first thought was that you
had to close your polygon, but you say you tried that. My next guess
would be, that you aren't using the correct entity identifier when you
start your shapefile. Polygon (5) vs. polyline (3)?

If this doesn't solve it, you'll probably have to post some sample
code that replicates the problem.

Good luck, hope this is useful.

Matt
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Associate a color to each element in a vector
Next Topic: Curvelet Transformation in IDL

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

Current Time: Wed Oct 08 17:33:01 PDT 2025

Total time taken to generate the page: 0.00497 seconds