coordinates

Plot coordinates on map

丶灬走出姿态 提交于 2019-11-27 05:05:56
问题 I am trying to plot my coordinates using R. I have tried already to follow different post (R: Plot grouped coordinates on world map ; Plotting coordinates of multiple points at google map in R) but I am not having much success with my data. I am trying to achieve a flat map of the world with my gps coordinate as colored dots (each area a specific color): area lat long Agullhas -38,31 40,96 Polar -57,59 76,51 Tasmanian -39,47 108,93 library(RgoogleMaps) lat <- c(-38.31, -35.50) #define our map

Python 3.0 using turtle.onclick

a 夏天 提交于 2019-11-27 04:53:06
问题 So here is my problem, I have to make a picture for my CS class and it is really frustrating estimating in turtle. I planed to use .onclick() to show me to position. import turtle as t def getPos(x,y): print("(", x, "," ,y,")") return def main(): t.onclick(getPos) t.mainloop() main() The turtle documentation seems to say that the onclick will pass the coordinates in a function that takes in two variables. http://docs.python.org/3.1/library/turtle.html#turtle.onclick NOTE: It works when I

How to get real world coordinates (x, y, z) from a distinct object using a Kinect

ぃ、小莉子 提交于 2019-11-27 04:26:05
问题 I have to get the real world coordinates (x, y, z) using Kinect. Actually, I want the x, y, z distance (in meters) from Kinect. I have to get these coordinates from a unique object (e.g. a little yellow box) in the scenario, colored in a distinct color. Here you can see an example of the scenario I want the distance (x, y, z in meters) of the yellow object in the shelf. Note that is not required a person (skeleton) in the scenario. First of all, I would like to know if it is possible and

Google Geocoder service is unavaliable (Coordinates to address)

房东的猫 提交于 2019-11-27 04:08:27
I have to get an address by coordinates, but it doesnt work and outputs "Couldnt get address": public String GetAddress(String lat, String lon) { Geocoder geocoder = new Geocoder(this, Locale.ENGLISH); String ret = ""; try { List<Address> addresses = geocoder.getFromLocation(Double.parseDouble(lat), Double.parseDouble(lon), 1); if(addresses != null) { Address returnedAddress = addresses.get(0); StringBuilder strReturnedAddress = new StringBuilder(""); for(int i=0; i<returnedAddress.getMaxAddressLineIndex(); i++) { strReturnedAddress.append(returnedAddress.getAddressLine(i)).append("\n"); } ret

Get latitude,longitude from address in Android

一世执手 提交于 2019-11-27 04:04:42
问题 I want to get the latitude and longitude of a place from an address. I don't want to get the latitude and longitude from the GPS nor the the network. I want the user to be able to type in a TextView the address of the place he wants (ex. his office) and below the textfield some suggestions will be shown, just like when you type the address in the google maps app. Then i want to retrieve the coordinates of the given address. If this can't be done is there a way to get the address via the

How to draw lines in Java

两盒软妹~` 提交于 2019-11-27 03:46:32
I'm wondering if there's a funciton in Java that can draw a line from the coordinates (x1, x2) to (y1, y2)? What I want is to do something like this: drawLine(x1, x2, x3, x4); And I want to be able to do it at any time in the code, making several lines appear at once. I have tried to do this: public void paint(Graphics g){ g.drawLine(0, 0, 100, 100); } But this gives me no control of when the function is used and I can't figure out how to call it several times. Hope you understand what I mean! P.S. I want to create a coordinate system with many coordinates. jassuncao A very simple example of a

Using the coordinate plane in the JFrame

北城以北 提交于 2019-11-27 03:34:20
问题 //I am trying to learn how to draw objects in java. I'm getting better at it, but once I get an image on the screen I am having trouble manipulating it. The numbers I put in don't make sense to how the shapes are turning out. At least to me they don't. In algebra if you increase a number on the x axis it goes to the right and if you increase a number on the y axis it goes up. Thats not whats happening here. Can anyone explain to me how this works? I'm still new to java, so the more

onTouchListener for entire screen

北战南征 提交于 2019-11-27 02:45:20
问题 I have a screen filled with buttons, but want the onTouch-method to use the entire screen's coordinates. I first tried using a RelativeLayout with an onTouchListener, but never managed to make it "connect" with the listener (i.e. nothing happened when screen was touched), I also tried putting an ImageView on top of the screen, and then making this view invisible. This last method gave correct responses to onClicks, but I never managed to make it invisible. If this is the best solution, which

I need to know the predefined point is in the sea or on the land [duplicate]

不羁的心 提交于 2019-11-27 00:38:16
问题 This question already has an answer here: Verify if a point is Land or Water in Google Maps 18 answers I have a system where users put some coordinates (latitude/longitude), I need to check if specified coordinates are in the sea or not. Is there any service that could give me the answer. Or is it possible to do this using google maps. 回答1: You can use the Google Maps Geocode API. If your address is in land, the result_type of the response will be something like "administrative_area". if you

Finding Cities within 'X' Kilometers (or Miles)

被刻印的时光 ゝ 提交于 2019-11-27 00:31:36
问题 This may or may not be clear, leave me a comment if I am off base, or you need more information. Perhaps there is a solution out there already for what I want in PHP. I am looking for a function that will add or subtract a distance from a longitude OR latitude value. Reason: I have a database with all Latitudes and Longitudes in it and want to form a query to extract all cities within X kilometers (or miles). My query would look something like this... Select * From Cities Where (Longitude >