Let's say, I want to get coordinates of polygon points for Arizona state. I manually right click the boundary lines of AZ in Google map to get the coordinates. Is there any way to get the polygon coordinates by state or city ? Thanks.
Thanks
Download them from OpenStreetMap.
But be prepared, some countries like United Kingdom have more than 50.000 polygon points.
Further think what is your desired accuracy?
800m or as best as it could be?
For rough like 800m there is another source, too. In Esri Shp file format, free.
But i have forgotten where.
Related
I own a property that has too much heavy foliage to run a string from property corner to property corner. I need a way to create a gpx file for 100 points between 2 gps coordinates of the property corners. What is the easiest way to do this? Thanks.
I have tried using Garmin Basemap, but it did not give me a gpx file of the points. I would have to transfer the numbers manually.
When programmatically adding an array of GPS Coordinates to a Bing Map, I want to set the Zoom level to the optimal - to show every pushpin/location, but "just barely."
I imagine a way to do this would be to identify the furthest points in the cardinal directions found within the array of coordinates, and then calculate how many miles you need to display both east-to-west and north-to-south.
For example, let's say the furthest north and furthest south locations are determined to be forty miles distant from each other, and the furthest east and furthest west locations are determined to be sixty miles apart from each other. Is there a rule of thumb/calculation/algorithm that would determine what the most "zoomed-in" level would be that would display all of the locations/coordinates, with the "outliers" being as close to the edge of the displayed portion of the map as possible?
You can set a map view with a bounding box, which will automatically determine the zoom level. See the example here
https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/setmapviewoptions
using the Bounds property as documented here
https://learn.microsoft.com/en-us/bingmaps/v8-web-control/map-control-api/viewoptions-object
I would like to redo this plot, which was published in one of the newspaper about Covid 19 death toll. I am not sure what kind of graph is this, I am assuming this is percent stacked area plot.
It is probably a streamgraph of some kind. So, a streamgraph is a type of stacked area chart. It represents the evolution of a numeric variable for several groups. Areas are usually displayed around a central axis, and edges are rounded to give a flowing shape.
I found it hard to install streamgraph from git hub repository, however, there is a ggplot alternative available called "ggTimeSeries". Below is the link for streamgraph R documentation.
https://www.r-graph-gallery.com/streamgraph.html
First off, I am not sure if this is the right place so I apologize if this belongs elsewhere - please let me know if it does. I am currently doing some prototyping with this in VB so that's why I come here first.
My Goal
I am trying to make a program to be able to log different types of information for a video game that I play. I would like to be able to map out the entire game with my program and add locations for mobs, resources, etc.
What I have
The in game map can be downloaded so I have literally just stuck this in as a background image on the form (just for now). The map that I get downloaded though is not exactly as the map appears in the game though since the game will add extra water around everything when scrolling around. This makes it a bit tricky to match up where the origin for the map is in game compared to where it would be on the downloaded map.
The nice thing though is that while I am in the game I can print my current coordinates to the screen. So I thought that maybe I can somehow use this to get the right calculation for the rest of the points on the map.
Here is an example image I will refer to now:
In the above map you will see a dotted bounding box. This is an invisible box in the game where once you move your mouse out of the longitude and latitude points will no longer show. This is what I refer to above when I mean I can't find the exact point of origin for the in game map.
You will also see 2 points: A and B. In the game there are teleporters. This is what I would use to get the most accurate position possible. I am thinking I can find the position (in game) of point A and point B and then somehow calculate that into a conversion for my mouse drag event in VB.
In VB the screen starts at top-left and is 0,0. I did already try to get the 2 points like this and just add or subtract the number to the x and y pixel position of the mouse, but it didn't quite line up right.
So with all this information does anyone know if it is possible to write a lon/lat conversion to pixels based on this kind of data?
I appreciate any thoughts and suggestions and if you need any clarification of any information I have posted please let me know and I will be happy to expand on it. I am really hoping I can get this solved!
Thanks!
EDIT:
I also want to mention I am not sure if there is an exact pixel to lat/lon point for the in game map. I.e. the in game map could be 1 pixel = 100 latitude or something. So I might also need to figure out what that conversion number is?
Some clarifications about conversion between the pixel location to 'latitude and longitude'.
First the map in your game is in a geometry coordinate system, which means everything lies in 2D and you can measure the distance between two points by calculate the pixel position.
But when we talk about longitude and latitude, we are actually talking about a geography coordinate system, which is a '3D' model of the sphere oabout the surface of the earth. All the maps on earth are abstracted from 3D to 2D through one step called projection. Like google maps or your GPS. In this projection process, the 3D model converted to 2D model but there is always some part of the map will be tortured, so that same distance in pixels on a map could be different in length in reality.
So if you don't care about the accuracy then you can consider the geometry point as geography point. Otherwise, you need to implement some GIS library to handle the geodesic distance and calculate the geography point based on the projection coordinate system.
I am implementing a MapKit based application. I need a clarification that, it is possible to get the altitude or Zoom level of the mapView when we zoom in/out in the Map.Because based on that I need to call some events. Please help me on this.
Thanks in advance,
Sekhar Bethalam.
You can observe how much area is shown in your mapView by inspecting the region property.
map.region.span.latitudeDelta
gives the current height of the map in degrees of latitude. Latitude degrees are about 69 miles (or 111 kilometers).
map.region.span.longitudeDelta
will give you the width of the map in longitude degrees, but be aware that longitude lines are not parallel and the extent will vary based on the distance from the equator. Much easier IMO to just deal with the first parameter.