Extract polygon vertices coordinates of selected polygon?

1,519 views
Skip to first unread message

esrispy

unread,
Jan 18, 2011, 7:42:29 AM1/18/11
to MapInfo-L
Is there some easy way to display a polygons vertices x,y ; x1,y1 ;
x2, y2

as with centroid coordinates

note centroidX(selection.obj) & " ;" & centroidY(selection.obj)

Uffe Kousgaard

unread,
Jan 18, 2011, 7:53:42 AM1/18/11
to mapi...@googlegroups.com
If I have to do that, I normally select the polygon, export to MIF and
view the content in a text file editor.

I don't think MapInfo has any easy method built-in. Definitely something
for the wish list.

Regards
Uffe Kousgaard

Peter Horsbøll Møller

unread,
Jan 18, 2011, 8:41:11 AM1/18/11
to mapi...@googlegroups.com
So what would you use this for?
Just to be able to see the coordinates in a listbox?
Delete some of them thru the dialog?
Change the coordinates of some of them thru the dialog?
Zoom to a coordiante in the list?

Peter Horsbøll Møller
Pitney Bowes Business Insight - MapInfo


2011/1/18 Uffe Kousgaard <uf...@routeware.dk>

--
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

Uffe Kousgaard

unread,
Jan 18, 2011, 8:47:09 AM1/18/11
to mapi...@googlegroups.com
Just to be able to see the coordinates in a listbox? Yes.

Delete some of them thru the dialog?
Change the coordinates of some of them thru the dialog?
Zoom to a coordiante in the list?

Could all 3 be usefull at some point. You never know :-)

Regards
Uffe

David R Sherrod

unread,
Jan 18, 2011, 10:31:39 AM1/18/11
to mapi...@googlegroups.com

I'm with Uffe on the advantage of recovering coordinates in a list box.  So much effort goes into putting field data into GIS for analysis.  Sometimes we overlook the other direction---getting GIS data back into the field.  I have needed to find my way, on the ground, to a boundary between two mapped polygons.  A list and a handheld GPS works in even the most difficult circumstances.

I can also imagine that conventional land surveyors may wish to change coordinates by way of a dialog.  New data comes in, they wish to resize a plat to show the revisions.  Trying to do that graphically seems tedious.

Sincerely,
Dave S.
-----------------------------------------



From: Uffe Kousgaard <uf...@routeware.dk>
To: mapi...@googlegroups.com
Date: 01/18/2011 05:47 AM
Subject: Re: [MI-L] Extract polygon vertices coordinates of selected polygon?
Sent by: mapi...@googlegroups.com


esrispy

unread,
Jan 18, 2011, 10:39:15 AM1/18/11
to MapInfo-L
Hi Peter
just messing around with Googlemaps javascript api to see what we can
use it for.
Made a little exportfunction for pointfeatures in MapInfo to clickable
pointfeatures with their attributedata to a htm.file with javascripts.
Now in API V3 I see there is a possibility to add polygons from
vectordata using the vertices, and it would be kind if cool to export
a whole map this way with points, lines and polygons.
Heres one quick export to a html file from some selected points in
mapinfo, little buggy yet but anyways.
(If coded ASP somtime you se alot of resemblence, but instead of vb-
script generating the html /javascripts the mapbasic do the work)
http://www.chalmersmotorklubb.se/MinGoogleKarta.htm



On 18 Jan, 14:41, Peter Horsbøll Møller <mapinf...@horsboll-moller.dk>
wrote:
> So what would you use this for?
> Just to be able to see the coordinates in a listbox?
> Delete some of them thru the dialog?
> Change the coordinates of some of them thru the dialog?
> Zoom to a coordiante in the list?
>
> Peter Horsbøll Møller
> Pitney Bowes Business Insight - MapInfo
>
> 2011/1/18 Uffe Kousgaard <u...@routeware.dk>
>
>
>
> > If I have to do that, I normally select the polygon, export to MIF and view
> > the content in a text file editor.
>
> > I don't think MapInfo has any easy method built-in. Definitely something
> > for the wish list.
>
> > Regards
> > Uffe Kousgaard
>
> > esrispy wrote:
>
> >> Is there some easy way to display a polygons vertices x,y ; x1,y1 ;
> >> x2, y2
>
> >> as with centroid coordinates
>
> >> note centroidX(selection.obj) & " ;" & centroidY(selection.obj)
>
> > --
> > 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- Dölj citerad text -
>
> - Visa citerad text -

Peter Horsbøll Møller

unread,
Jan 18, 2011, 12:18:28 PM1/18/11
to mapi...@googlegroups.com
If you want to export a MapInfo table to kml, you can use the Google Earth Utility that comes with MI Pro.
Just remember to select the vectors that should be exported and choose vectors not Image.

Peter Horsbøll Møller
Pitney Bowes Business Insight - MapInfo


2011/1/18 esrispy <turbo...@hotmail.com>

esrispy

unread,
Jan 18, 2011, 1:17:59 PM1/18/11
to MapInfo-L
Yes I know about the kml export approach, anyhow its sometimes good to
have everything in a single htm file you can attach in a mail etc with
just one buttonclick from MI.



On 18 Jan, 18:18, Peter Horsbøll Møller <mapinf...@horsboll-moller.dk>
wrote:
> If you want to export a MapInfo table to kml, you can use the Google Earth
> Utility that comes with MI Pro.
> Just remember to select the vectors that should be exported and choose
> vectors not Image.
>
> Peter Horsbøll Møller
> Pitney Bowes Business Insight - MapInfo
>
> 2011/1/18 esrispy <turbokil...@hotmail.com>
> > > >http://groups.google.com/group/mapinfo-l?hl=en-Dölj citerad text -
Reply all
Reply to author
Forward
0 new messages