The other consideration is the length of the line.
For short distances, say up to 100km, and if you don't need to be accurate
to fractions of a degree, you can use standard trigonometry. You remember
those sine, cosine and tangent things they told us about at school?
For longer distance you need to use Great Circle calculations to take into
account the curvature of the earth.
There's all the formulae here: http://williams.best.vwh.net/avform.htm
I suppose it really is time that someone wrote a small application to do
this.......
Gentreau.
Rich
--
Richard Greenwood
richard....@gmail.com
www.greenwoodmap.com
I want North to be zero, and I want angles to increase clockwise, so I
diddle with the settings. I've never cared enough about the accuracy to
test the method for projections using degrees or those using
eastings-northings. (The latter will depart from north across the grid.)
Hmm . . . perhaps I should buy a protractor.
(Embedded image moved to file: pic58187.jpg)
--------------------------------------------
David R. Sherrod, Cascades Volcano Observatory
U.S. Geological Survey,
1300 SE Cardinal Court, Bldg. 10
Vancouver, WA 98683
voice 360-993-8915
fax 360-993-8980
dshe...@usgs.gov
-----------------------------------------
Bolithio
<swissforestryrob
in...@yahoo.com> To
Sent by:
mapinfo-l@googleg MapInfo-L
roups.com <mapi...@googlegroups.com>
cc
03/21/2008 02:47
PM
Please respond to Subject
mapinfo-l@googleg [MI-L] Assigning Angles or Bearings
roups.com to lines in Mapinfo
Use the toolbutton to drag a line between 2 points, the distance and bearing
will be displayed in the message window.
I have rounded the values to 1 degree and 1 metre as you cannot rely on them
for absolute accuracy.
This tool is good for shorter distances, don't try to use it to get the
bearing from London to New York though.
Hope that helps
NOTE: this is done in the cosmetic layer only as it
creates many temp entries that would mess up your layer
so it is *just art work* to transfer to your layer
For doing many things to street segments use FixLine program
http://www.wap3.com/download/index.shtml
along with many other MapBasic applications.
Is there an easy way to select point that are closer then for example 10
meters? I have about 6500 points and need to find the points that are within
10 meters of each other. Is there an easy way to do this with SQL?
Soren
Søren,
You can use this method. It is however not a single SQL.
1. Create buffer around your points in a new layer
2. Combine these buffers to a single object
3. Split this single object into individual objeckts again
Now the buffers are connected where the distance between them is shorter than 2 x the buffer distance.
In your case you would use a buffer distance of 5 meters.
Now count the number of points within each polygon and use the polygons with more than 2 points to select the points closer than 10 meters to another point.
Does this make sense ?
Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
COWI A/S
Odensevej 95
5260 Odense S.
Denmark
Tel + 45 6311 4900
Dir +45 6311 4908
Mob +45 5156 1045
Fax + 45 6311 4949
E-mail p...@cowi.dk
Peter Horsbøll Møller
GIS Developer, MTM GeoInformatics
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260
Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail p...@cowi.dk
http://www.cowi.dk/gis
In response to Bolithio's message below I use a technique that I find benificial and thought it may be of interest to others.
It displays a watermark (raster image) of a Protractor behind your map data
It requires a little bit of initial setup the first time.
How to achieve this
-------------------
- Download and install "Glass2K" from http://chime.tv/products/glass2k.shtml
- Extract and store "Protractor.png" image from the attached zip file
- Open a new (clean) session of Mapinfo
- Open the Protractor.png file from above and Display it. (File > Open > Files of Type = Raster Image)
- Maximise the mapper window
- Minimise this Mapinfo session
- Open a second session of Mapinfo and load your map data
- Again maximize the mapper window
- Minimise this Mapinfo session
- From the task bar select the first Mapinfo sesion containing the Protractor image
- From the task bar select the second Mapinfo session comtaining your data
- Press Ctrl + Shift + 5 (Glass2k command for turning on transparency)
You should now see the Image of the protractor showing through behind your data
(see sample screenshot in attached zip file)
Move your map data around on top of the protractor to suite your needs
Notes:
------
- For best results both Mapinfo sessions and the mapper windows in each session should be maximized.
- The second Mapinfo session window must be directly on top of the first Mapinfo session window
(eg. from the task bar select the Mapinfo sesion containing the Protractor image, then select the Mapinfo session comtaining your data)
- Press Ctrl + Shift + (1 - 9) to conrol the amount of transparency
- Press Ctrl + Shift + 0 to turn transparency off
- You may wish to use your own Protractor image (search for Protractor using Google Images)
Hope this is not to confusing. If you need help with the above method please ask
Regards
Peter Doyle
-----Original Message-----
From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Bolithio
Sent: Saturday, 22 March 2008 7:47 AM
To: MapInfo-L
Subject: [MI-L] Assigning Angles or Bearings to lines in Mapinfo
Greg Driver
System Administrator
Applications
Support
ICT
Surrey Police
NOT PROTECTIVELY MARKED

Greg Driver
System Administrator
Applications
Support
ICT
Surrey Police
NOT PROTECTIVELY MARKED