coordinates

Move markers by a specific distance in meters from where they are

…衆ロ難τιáo~ 提交于 2019-12-12 05:14:36
问题 I have a collection of items and some of them may have the same coordinates. As a result they are displayed as 1 marker in Google Maps since the markers are painted one on top of each other. To address this I tried to "move" those markers by a few meters so that the markers do not collide. I would like to move them to a 5 meters from where their location is. I did the following following another SO answer: double newLat = item.getLatitude() + (Math.random() - .005) / 15000; double newLon =

php - how to find coordinates of edges in an image using imagick or other library?

吃可爱长大的小学妹 提交于 2019-12-12 05:03:28
问题 given an image composed of a plain black field with a single white rectangle inside it somewhere, how can i extract the coordinates of the rectangle ? i've googled and googled and found numerous articles on edge detection using hough lines, convolution, morphology, etc., but all of these actually edge the image or convert it in some way. i don't want to change the image, all i want to do is find where the edges are. obviously, i could simply iterate over the entire width+height of the image

pdfbox 2.0.2 > How to combine the TextPosition coordinates and Graphics GeneralPath coordinates into the same quadrant

故事扮演 提交于 2019-12-12 04:59:10
问题 As a newbie of pdfbox user, I plan to extract data in a table, but tables with special formats, say with merged column headers should be processed with the help of table's borderlines. Therefore, the coordinates of the text and at least the table's horizontal borderlines should be extracted. In order to extract the text from the table, I used PDFTextStripper to get the list of TextPosition objects; in order to extract the horizontal lines from the same page, I used PDFGraphicsStreamEngine to

Barycentric coordinates texture mapping

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 04:33:46
问题 I want to map textures with correct perspective for 3D rendering. I am using barycentric coordinates to locate points on the faces of triangles. Simple affine transformation gave me that standard, weird looking result. This is what I did to correct my perspective, but it seems to have only made the distortion greater: three triangle vertices v1 v2 v3 vertex coordinates are v_.x v_.y v_.z texture coordinates are v_.u v_.v barycentric coordinates corresponding to vertices are b1 b2 b3 I am

App closes while it should submit data

亡梦爱人 提交于 2019-12-12 04:16:29
问题 I got the following code. I'm trying to submit my coordinates to an email. But every time I press the button, the app closes. public LatLng getLocation() { // Get the location manager LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Criteria criteria = new Criteria(); String bestProvider = locationManager.getBestProvider(criteria, false); Location location = locationManager.getLastKnownLocation(bestProvider); //double lat; //double lon; try { lat =

c# uwp current finger holding coordinates on mobile

坚强是说给别人听的谎言 提交于 2019-12-12 03:53:59
问题 In C# UWP, how to get current finger holding coordinates on mobile? I have been using this: private void mainGridHolding(object sender, HoldingRoutedEventArgs e) { var coordinateY = e.GetPosition(mainGrid).Y; } But, I don't want to execute it all the time whenever user holding the screen. And also, this event fire after the popup is shown, so I get the wrong informations. Like there is a property for Pointer location: var pointerPosition = Windows.UI.Core.CoreWindow.GetForCurrentThread()

find location between two other locations

社会主义新天地 提交于 2019-12-12 03:33:20
问题 I am trying trying to find a new location(x,y,z) between two already existing locations (x,y,z). e.g. lets say the distance between locA and locB is 2500. locNew should always be the location with distance 300 and should be on the line of locA and locB. I have no issues finding the midpoint between locA and locB, but I keep banging my head trying to find locNew for this specific situation. I tried this, but it returns a point that is not on the line from locA to locB: locA = {x = 400, y = 400

ImageView coordinate (0,0) has space

时光毁灭记忆、已成空白 提交于 2019-12-12 03:24:34
问题 Im facing the next problem: I have an imageView that change the size programmatically because de density hdpi has a 480x800 resolution. I change the size with layoutParams. After I change the size, I want to position the imageView. When I position the view for example to the coordinate (0,0) I saw that between the imageView and the limit of the screen is a little space, like 25 inches. The imageView moves to other place and when I want to position it again to (0,0), the space between the

find shifted coordinate in skewed square

人走茶凉 提交于 2019-12-12 03:22:28
问题 I have square, I know the X,Y coordinate for the (A,B,C,D) each, coordinate for (E,F,G,H) and the position for the circle inside first box (I,J). so .. I want to find the coordinates for the same circle inside the second box .. base on all the data have. 回答1: You need to find the transform from the first box to the second B=T*A so you need to find T which is a 3x3 matrix if this is on the plane solve the equations as shown on this page http://andrew.gibiansky.com/blog/image-processing/image

Splitting a state name with a city name, return a list containing both?

懵懂的女人 提交于 2019-12-12 02:54:41
问题 So this is the simplified version of the data file: Wichita, KS[3769,9734]279835 308 1002 1270 1068 1344 1360 1220 944 1192 748 1618 1774 416 1054 Wheeling, WV[4007,8072]43070 1017 1247 269 255 1513 327 589 203 1311 416 627 605 2442 998 85 West Palm Beach, FL[2672,8005]63305 1167 1550 1432 965 1249 2375 1160 718 1048 2175 760 1515 1459 3280 1794 1252 Wenatchee, WA[4742,12032]17257 3250 2390 1783 1948 2487 2595 1009 2697 2904 2589 1394 2690 1765 2912 117 1461 2358 Weed, CA[4142,12239]2879 622