Update myPointTable Set long = CentroidX(obj)
Update myPointTable Set lat = CentroidY(obj) Hello Una,
Offsets of that order of magnitude are usually down to an incorrect coordinate system. It’s best to explicitly set the one you need. Here’s an example of setting Lat/Lon WGS-84 and updating both of your fields in a single update.
set coordsys earth projection 1, 104
update myPointTable set Lat = centroidy(obj), Lon = centroidx(obj)
Hope that helps.
Regards,
Warren Vick
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
“It is not a recognised geodetic system”
Hello Una,
I can’t remember what Pro’s default is, but it could well be LL.WGS-84 (EPSG: 4326). Web Mercator (or Popular Visualization) with EPSG:3857 is something different. While it uses one axis element from WGS-84, it is a spherical model of the world with a Mercator projection applied. The results are usually in metres. Even when expressed in degrees, you will get different values between the two. As I said, it’s best to explicitly state what you need rather than rely on a default.
Regards,
Warren Vick
--
-76.9538,38.8909
Now go back to the Options for Map Window and change the session projection to Popular Visualization. It is under the "Projections of the world" category near the bottom. You can also do the same thing via the Set Coordsys command in the mapbasic window. Your choice.
OK the change and go back to the mapbasic window and just reenter the command.
-8566460.85,4706057.82