shrug-l: Copy/Paste into SDE and calculation of XY in alternate
projection
Halverstadt, Heather
heather.halverstadt at brevardcounty.us
Fri Oct 2 13:16:38 EDT 2009
Good afternoon, all!
I am looking into modeling my address file prep and have run into an
interesting problem. My address file is in SPFLE and contains lat/long
attributes. It's also housed in SDE. My current routine is to open the
version in a WGS84 map and use Calculate Geometry using Same as Data
Frame, then post the version. However, modeling doesn't work that way.
For one, there is no Calculate Geometry tool in the toolbox that I could
use in a model. That's really not such a problem - I can do it the old
fashioned way, ie Calculate field and the script
Dim Output As Double
Dim pPoint As IPoint
Set pPoint = [Shape]
Output = pPoint.X
Output
However, that isn't the real problem. The problem is that that method
will only work if the feature class is reprojected into WGS84 and then
projected back to SPFLE. Since it's stored in SDE, that's a problem. My
options are
1. Reproject & calculate (which results in the SDE admin having to load
it every single week)
2. Find a calculate tool or script that will calculate in a projection
other than the one the shapefile is in
3. Find a copy and paste that will paste back into SDE
4. Export the model to a script and ask the admin to run it in SDE
I am really trying to avoid #1 and #4 because it is more work for a very
busy admin. I have been looking for 2 and 3 all over the Toolbox, Help
and script places but have not had any success. There are plenty of
calculate lat/long scripts....as long as you are in the same projection.
There is a copy and paste script...but only into a personal geodatabase.
I am hoping that there are some tools and/or scripts out there that you
might be able to direct me to.
Thanks for reading this long email! Hope to hear from you soon!
Heather Halverstadt
GIS Analyst III
911 Administration
Government Center C-201
2725 Judge Fran Jamison Way
Viera, FL 32940-6602
(321) 690-6846
-----Original Message-----
From: shrug-l-bounces at lists.dep.state.fl.us
[mailto:shrug-l-bounces at lists.dep.state.fl.us] On Behalf Of
shrug-l-request at lists.dep.state.fl.us
Sent: Thursday, October 01, 2009 12:00 PM
To: shrug-l at lists.dep.state.fl.us
Subject: SHRUG-L Digest, Vol 48, Issue 1
Send SHRUG-L mailing list submissions to
shrug-l at lists.dep.state.fl.us
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.dep.state.fl.us/mailman/listinfo/shrug-l
or, via email, send a message with subject or body 'help' to
shrug-l-request at lists.dep.state.fl.us
You can reach the person managing the list at
shrug-l-owner at lists.dep.state.fl.us
When replying, please edit your Subject line so it is more specific than
"Re: Contents of SHRUG-L digest..."
More information about the SHRUG-L
mailing list