[hdf-forum] creating polygons from corner points

Becker, Thomas thob at dmu.dk
Wed Mar 25 07:55:46 EDT 2009


Good morning John,

I am not sure if I really understand the way you propose. 
Of course I can write all the coordinates and other values into one huge list or array. But creating the polygons from the corner points is as far as I understand always done in the way that you have to create an array holding the coordinates of the four corner points and the first point again to indicate that it is a closed polygon and not a polyline. 
To do so, in all the ESRI examples I found they create a cursor in the featureclass to iterate thrue the rows. Then the polygon is created by passing the array of the corner points to the row and insert the row into the featureclass.
The array object has to be deleted afterwards to ensure a correct geometry of the following polygon.

I do not understand how do you write all the points at once to the geodatabase.

Thomas

-----Original Message-----
From: John Huddleston [mailto:jhuddleston at hughes.net] 
Sent: Wednesday, March 25, 2009 12:28 PM
To: Becker, Thomas; hdf-forum at hdfgroup.org
Subject: RE: [hdf-forum] creating polygons from corner points

Good morning Thomas

In general, with any code, read and write operations in a do loop are going
to be slower than one single write.

In code you could use a two pass operation. On the first pass find the total
number of records to write, set up the array and read in the data, and then
perform one write to the geodatabase.

John Huddleston 


----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe at hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe at hdfgroup.org.





More information about the Hdf-forum mailing list