Hi Guys,I am new to this group and stuck with a query in calculating distance.I have a .tab file containing 500+ samples. Now the point is to calculate the distance from point 1 to 500 with reference to Serial number so that the points do not connect each other randomly (like point 1 with point 200).Thanks in advance.Santhosh
--
--
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/groups/opt_out.
-- Andy Harfoot GeoData Institute University of Southampton Southampton SO17 1BJ Tel: +44 (0)23 8059 2719 Fax: +44 (0)23 8059 2849 www.geodata.soton.ac.uk
|
The query has advanced to this: you have many points, groups of which define tracks; and you want a line that connects any set of points (a track) to obtain a distance. One way or another you’ll need to draw a line through each set of points. That’s where Andy and Graeme have led us. To do this, your GIS needs to know how to group the points and how to arrange them sequentially within groups. Should sequencing be by serial number? By date of unit sold? By road distance from a servicing center in each county, parish, or state? User input is the key here, eh?
My programming skills are nascent, so I’d slog along using available tools. For the mbx Connect The Dots, you must arrange a table so that sequencing corresponds to the order of rows in the table (that’s how CTD is programmed). In my slog, I’d create a column for track (grouping), for sequencing within group, and also for the coordinates of the points (lat/long or east/north). Export the table, open in excel, then sort so the grouping gets first priority (smallest to largest) and the sequencing gets second priority (smallest to largest). Reopen in Mapinfo and create points. Select (SQL) to capture the first grouping, then run Connect The Dots on that query table. Since points are ordered in sequence of choice (from my Excel diversion), the scribed line follows the desired path. On to the next grouping, ad nauseum. This solution will give you lines, each line unique to a grouping (track), and the line traced according to the sequence you’ve established. From there, line length can be calculated painlessly in GIS.
The potentially painful task is the need to group your
points and then assign sequential values. Without that information, all programming tools will sputter. If you have 500-plus points and neither grouping nor sequential information for them, then you'll need to commit time to table management. Otherwise it's GIGO. Dave Sherrod --- On Sun, 5/26/13, Santhosh Gampa <metro.s...@gmail.com> wrote: |