|
|
| GeoCommunity Mailing List |
| |
| Mailing List Archives |
| Subject: | RE: [gislist] Find tool for XY |
| Date: |
09/04/2003 04:10:02 PM |
| From: |
Yasser Hammam |
|
|
Hi Jason,
To calculate an XY for point or polygon centroieds: Make sure that you create a field on the attribute table (double) then click by right button on field hider and choose calculate, click the advance box and then in case for point feature type the following code:
Dim output as Double Dim pPoint as IPoint set pPoint = [Shape] Output = Ppoint.X
Type the variable output into the second text box. Do the same for Y coordinate, but make sure that you substitute the X by Y
In case for calculating the polygon centroids: Dim output as Double Dim pArea as IArea set pArea = [Shape] output = pArea.Centroid.X
Hope it can help.
Cheers
Yasser Hammam GIS Administrator
and then type the variable output into the second text box. and do the same again for Y coordinate. -----Original Message----- From: Close, Jason [mailto:jlclose@sbinfra.com] Sent: Friday, September 05, 2003 2:41 AM To: 'gislist@lists.geocomm.com' Subject: [gislist] Find tool for XY
Does any know a tool or script for locating X,Y in ArcView 8x?
Thanks, JC _______________________________________________ gislist mailing list gislist@lists.geocomm.com http://lists.geocomm.com/mailman/listinfo/gislist
_________________________________ This list is brought to you by The GeoCommunity http://www.geocomm.com/
Get Access to the latest GIS & Geospatial Industry RFPs and bids http://www.geobids.com
======================================================================= This Email is confidential and may be legally privileged. If you are not the intended recipient, you should notify the sender immediately by return Email and delete this message from your system.
Statements in this Email and any attachments do not necessarily reflect the views of the Banks Peninsula District Council. _______________________________________________ gislist mailing list gislist@lists.geocomm.com http://lists.geocomm.com/mailman/listinfo/gislist
_________________________________ This list is brought to you by The GeoCommunity http://www.geocomm.com/
Get Access to the latest GIS & Geospatial Industry RFPs and bids http://www.geobids.com
|
|

Sponsored by:

For information regarding advertising rates Click Here!
|