0

If anyone knows how to make something similar please tell me how can I make the table make a radius and give the information about the restaurant type.

Answered # Python interactive table, with a map

griswolf 304 Discussion Starter vaironl 11 griswolf 304 Discussion Starter vaironl 11 Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...

Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...

0

If anyone knows how to make something similar please tell me how can I make the table make a radius and give the information about the restaurant type.

0

The radius is simple math (Pythagorean theorem): the distance between two points (x0,y0) and (x1,y1) is `math.sqrt((x0-x1)**2+(y0-y1)**2)`

(If you want to think about distance along a path, such as a road, then you are working on a much larger problem)

I presume that the Arcgis data contains the restaurant information, so you need to extract that, do the math calculation, and display the results "somehow".

0

The radius is simple math (Pythagorean theorem): the distance between two points (x0,y0) and (x1,y1) is

`math.sqrt((x0-x1)**2+(y0-y1)**2)`

(If you want to think about distance along a path, such as a road, then you are working on a much larger problem)I presume that the Arcgis data contains the restaurant information, so you need to extract that, do the math calculation, and display the results "somehow".

Sounds pretty hard for me. (not to good at math). But i'm the only one who wants to apply some programming in my class. Which means I don't have allot of help.

By the way the points would be the location of a persons house, and the restaurant ?

0

Sounds pretty hard for me. (not to good at math). But i'm the only one who wants to apply some programming in my class. Which means I don't have allot of help.

By the way the points would be the location of a persons house, and the restaurant ?

Well, you have the formula now, so the math is "done". All you need is to fill in the x and y values. And deal with conversions, of course: What coordinate system does Arcgis use? There are basically only three options:

- (Easiest for you) There is some point on earth that is (0,0) and everything is measured from that point by how many (units) east or west and how many (units) north or south. You use the formula I gave, then divide by units per mile (or multiply by miles per unit). This is pretty accurate, barring the fact that the earth's surface is pretty much a sphere; but it is unlikely that the data is in this format.
- (nearly as easy) The locations are in degrees E/W and degrees N/S. For that, you have to do the conversion first: convert the two differences by multiplying by miles per degree
(these conversion factors are likely different numbers for E/W and for N/S), then do*at your latitude and longitude*`math.aqrt(convertedx**2+convertedy**2)`

This works "close enough" as long as the distance is less than a couple hundred miles or so. This also suffers from spherical distortion**and**from the approximation of miles per degree; but the data is somewhat likely to be in this format. - (something proprietary). You will have to figure it out yourself.

*Edited 5 Years Ago by griswolf*: n/a

0

Well, you have the formula now, so the math is "done". All you need is to fill in the x and y values. And deal with conversions, of course: What coordinate system does Arcgis use? There are basically only three options:

- (Easiest for you) There is some point on earth that is (0,0) and everything is measured from that point by how many (units) east or west and how many (units) north or south. You use the formula I gave, then divide by units per mile (or multiply by miles per unit). This is pretty accurate, barring the fact that the earth's surface is pretty much a sphere; but it is unlikely that the data is in this format.
- (nearly as easy) The locations are in degrees E/W and degrees N/S. For that, you have to do the conversion first: convert the two differences by multiplying by miles per degree
(these conversion factors are likely different numbers for E/W and for N/S), then doat your latitude and longitude`math.aqrt(convertedx**2+convertedy**2)`

This works "close enough" as long as the distance is less than a couple hundred miles or so. This also suffers from spherical distortionandfrom the approximation of miles per degree; but the data is somewhat likely to be in this format.- (something proprietary). You will have to figure it out yourself.

You know , I felt pretty excited to be in this geosystem ccourse / Arcgis/ Earth science . But now I discovered that the stuff I actually want to do is program , and even though I will lose a credit for this course is better to drop it, I don't like that stuff and it's better if I start doing some lower level or lower skill requirements program.

This question has already been answered. Start a new discussion instead.

Recommended Articles

Hi. Im using vb 2010. I want to dynamically add textboxes to my form by clicking on a button. I've google searched and so far this code worked:

```
Private Sub btn_addline_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_addline.Click
Dim txtB1 As New TextBox
Dim i
For i = ...
```