7,147 questions
-1
votes
1
answer
66
views
Converting world coords to Autodesk Viewer SDK coordination system
I'm rendering a .rvt file in my React app using Autodesk's viewer SDK and I'm trying to add an overlay of a polygon to the model (3d/2d view). The polygon is in world coords (in Revit, when I annotate ...
1
vote
1
answer
136
views
Canvas Transform and Paint in Flutter
I want to achieve a transformation on the canvas using two fingers for rotation, scaling, and translation, while using one finger to paint in the correct position.
What I have so far:
import 'package:...
0
votes
2
answers
83
views
GPS position keeps jumping in React Native app even when standing still
place will be around 1000 square meters or a little bit more with statues positioned as shown in image. I am building an offline React Native application that shows a custom map of a location ...
0
votes
0
answers
65
views
Is there an ANSI code to get the XY of the mouse in a terminal using ANSI without rounding down X?
I have two programs that run on my MacBook (26.0). I can get the mouse to return the current coordinates on a button action with \e[?1000h\e[?1006h. This reports the mouse position on mouse button ...
0
votes
2
answers
100
views
Problem with offset when rotating text on an image (Pillow)
main.py
from PIL import Image, ImageDraw, ImageFont
base_img = Image.new("RGBA", (100, 100), (0, 255, 0))
txt = 'Sample <del color=red>text<del>'
rotate = 120
font = ImageFont....
1
vote
1
answer
62
views
How to find relative coordinates on the screen
I have a program which does some things using previously set coordinates.
I want to make my program more user-friendly. How to get relative coordinates if a screen dimension or another setting is ...
0
votes
0
answers
50
views
How to highlight specific buildings in MapBox Flutter SDK according to provided lat/long coordinates
I have around 100k apartments in one city which I need to highlight on MapBox map. For these apartments I have coordinates (lat, lng) but I don't see how can I find a specific building (feature) in ...
0
votes
0
answers
51
views
How to align RoadRunner scene coordinates with UTM coordinates to reduce GPS conversion offset in Unreal Engine simulation?
I'm working on a simulation project using RoadRunner to generate maps, and running autonomous driving algorithms in Unreal Engine (UE) via AirSim. My algorithms are based entirely on UTM coordinates, ...
0
votes
0
answers
97
views
How to get the coordinate of Composable element?
I’m working on a Jetpack Compose app where I want a Text item in a LazyColumn become transparent as it scrolls under a semi-transparent TopAppBar. To achieve this, I’m using onGloballyPositioned to ...
-1
votes
1
answer
82
views
Cannot extract coordinates in my Mapbox Search API code
I have been trying to get the latitude and longitude of locations I have searched for in the Mapbox Search Bar API, and am using the following code implementation and it works perfectly for everything ...
2
votes
0
answers
77
views
Convert Unity XrCpuImage Coordinates to Viewport Coordinates for Android AR Foundation
I am trying to detect paper edges with a camera using my opencv c++ plugin in unity. The plugin I wrote detects the corner pixel coordinates seamlessly, I tested it all over, so that should not be the ...
0
votes
0
answers
27
views
Filtering 2D Coordinates of Visible Emptys in Blender, Excluding Those Obstructed by Multiple Objects
I'm using Blender's Python API to get the 2D coordinates of all EMPTYS that are "visible" in a rendered 2D image (i.e., within the camera's view). I have a working script that retrieves the ...
0
votes
0
answers
47
views
Which of the 10,000 properties are in a drawn polygon
I have Javascript code that can detect the coordinates of a polygon that is drawn on Google map. I also have 10,000 property addresses. What is the fastest way to find which of the 10,000 properties ...
1
vote
2
answers
132
views
Misalignment of coordinate systems when using terra::as.data.frame instead of tidyterra::geom_spraster with ggplot2
When I was working on the visualisation of spatial data (vector and raster), I ran into some tricky issues: Involves projection conversion of coordinate systems, range conversion of data, and ggplot::...
3
votes
1
answer
125
views
Why is my MCP giving me an area size that is too small?
This is my first time doing any spatial statistics and I am slowly learning. I have seen a few other people here with similar problems, however none of the answers seemed to work for me.
I am trying ...
2
votes
1
answer
102
views
Detect coordinate precision in polars floats?
I have some coordinate data; some of it high precision, some of it low precision thanks to multiple data sources and other operational realities. I want to have a column that indicates the relative ...
0
votes
1
answer
166
views
iText 7 Placing Text at Specific Coordinates
Coming from itextsharp, where you can use ColumnText to place text at specific coordinates like so:
ColumnText ct = new ColumnText(cb);
ct.SetSimpleColumn(DrawingSpace.llx, DrawingSpace....
-1
votes
1
answer
75
views
Coordinates of a location in a web page [closed]
I am trying to extract the coordinates e. g. longitude and latitude of the pointer on a map depicted on a static google maps image from a house listing.
Example: https://www.zoopla.co.uk/to-rent/...
0
votes
0
answers
36
views
Correct coordinates text in images With the same coordinates pos(x,y) subtitle .srt
I have a text subtitle srt with coordinates example 270,270
video + sub srt
https://mega.nz/folder/WgYHzBaQ#OzYZ7xL0K1r-nZacjGI_Nw
Result
When using "Pillow" or "opencv" or "...
0
votes
1
answer
101
views
How to calculate a nearest node in OSMnx using lat/lon coordinates?
I am currently trying to create a route to simulate the Tide railway system in Norfolk. After some trouble with figuring out how to write code (I'm new to python), I think I'm on a good track. However,...
0
votes
0
answers
53
views
Abaqus Python API to get the central point of a face
I am currently writing a python script to automate a structure made of cubes forming a 3D grid. The cubes are randomly placed and there are two types of cubes.
It is a single part but I plan to assign ...
0
votes
0
answers
65
views
Extracting coordinates from ANSYS .inp file in Python
I'm working on a project that involves manipulating node coordinates from an ANSYS .inp file. I'm trying to extract the node coordinates, modify them (e.g., multiply the z-coordinate by 1.5), and then ...
0
votes
0
answers
45
views
How to rotate a vector in a global frame by yaw/pitch/roll that matches expected motions
For a spacesim, I'm trying to rotate a vector of 1,0,0 (X,Y,Z) by a quaternion in C that will describe motion through space in relation to a global fixed frame (right-handed) of +X=forward, +Y=right, ...
0
votes
1
answer
91
views
How to change UTM zone of a data set
I have used the rgdal and raster packages for converting my data from UTM 32 to UTM 33. However, these libraries have been replaced. Could you advise on the equivalent codes in the new terra and sf ...
0
votes
2
answers
76
views
Changing resolution and coord.ref in bathymetric maps
I want to model the movement of fish. Therefore I get a bathymetric map from gebco and masked the land masses.
library(terra)
tif_file <- "~/path_to/GEBCO_map.tif"
map <- rast(tif_file)...
0
votes
4
answers
108
views
Simple JavaScript to make something in range
I am trying to simply move the the cursor so that when it is between 200=x and 300=x the canvas background goes salmon and outside of that range it goes blue.
Here is my full attempt:
<!DOCTYPE ...
0
votes
1
answer
32
views
Debugging Error: Non-Numeric Argument in R Function for Calculating Animal Movement [closed]
I have an animal movement dataset ("data") that looks like this:
Data
ID Time x y u v
A 2008-02-01 12:00:00 9155834.12606686 -1085858.899 ...
8
votes
4
answers
250
views
Speed up numpy looking for best indices
I have a numpy array that maps x-y-coordinates to the appropriate z-coordinates. For this I use a 2D array that represents x and y as its axes and contains the corresponding z values:
import numpy as ...
1
vote
0
answers
24
views
coordinate of Geospatial with node js express and mangodb
i am using nodejs express and mangodb, when a user signup i want to get the live location of the use geospatial code . this is the error i get when i run my code .
MongoServerError: Can't extract geo ...
1
vote
0
answers
76
views
Are there any algorithms that allow quick/efficient lookup of hexes based on location on a large subdivided hex/pentagon tiled icosphere?
So, I have a subdivided icosahedron sphere (icosphere), and I am looping through its vertices and creating a logical tile-map of hexagons at the location of every vertex in the array. Basically, now I ...
-1
votes
1
answer
100
views
Add text in an image in a specific coordinates with SwiftUI
I want to add multiple text inside an image with specific coordinates relative to the image. Text size can vary. I am using kingfisher to load the image.
I have tried with position x, y coordinates ...
0
votes
1
answer
128
views
Algorithm for coordinate transformation from XYZ to Forward/Up/Right based on user-specified directions
Hopefully this question is not too broad. I am not looking for anyone to write this algorithm for me, but hopefully what I'm trying to do here has been done already and I failed to find it, and I hope ...
1
vote
2
answers
123
views
rounding coordinates to centre of grid square
Im currently trying to collect some weather data from an API, and to reduce the amount of API calls im trying to batch the calls on 0.5degree longitude and latitude chunks due to its resolution.
I had ...
3
votes
2
answers
134
views
Use VBA to calculate the relative X,Y of the centre of the bottom of a 3D shape
I am working with 3D shapes in Excel / PowerPoint and I need to calculate a particular co-ordinate. I am using Excel to handle the manipulation, the content is in PowerPoint.
Say I have this shape ...
0
votes
1
answer
34
views
Coordinates for view inside custom view don't match at all
I'm working on a family-tree like app. I use a force-directed layout algorithm to calculate the positions on which the nodes will be placed. The nodes are a custom view that I created myself called ...
0
votes
1
answer
103
views
Jump angle computation in Python
I have issues to understand how to exactly compute in Python what I call a "jump angle". So basically, I have a map tracking of several tracks (of transcription factors) composed of the ...
1
vote
0
answers
46
views
Qt: how to calculate image coordinates on label? [duplicate]
I am writing an app, that displays an image and allows the User to interact with the image using mouse. The image size is predefined, and in the code below it is 2000x2000. Since the window size may ...
0
votes
1
answer
113
views
Translating rectangle coordinates to screen coordinates for screen capture [duplicate]
I am working on creating a screen capture app in C# using WPF, where the user can draw a rectangle on the screen, and the app captures the content behind that rectangle, similar to the Windows ...
0
votes
0
answers
59
views
How to map real-world coordinates on 2d grid environment for simulation?
I am working on modeling an environment from real-world coordinates. So far, the project has been developed in Java and JASON (https://jason-lang.github.io/). Below is the code for modeling. I am ...
2
votes
0
answers
82
views
Query Wikidata by coordinates
I'm querying the Wikidata from Apache Jena Fuseki. The objective is to get a monument by its coordinates. The coordinates I locally have are far more accurate. For instance, the monument Q29566893 in ...
-1
votes
1
answer
46
views
Trying to get subregion from coordinates using countryinfo
very new to... everything. i am trying to use geometry to find subregions using latlng in getcountry. maybe the points/coordinates/geometry are not in the same format as latlng?
# getting data
df = pd....
-2
votes
1
answer
65
views
Calculate point coords relative to a rotated DIV
I have a rotated DIV within a non-rotated DIV and I'm trying to work out the cursor position on the outer DIV in relation to the rotated DIV. I guess I need the position as though the coordinate ...
0
votes
1
answer
81
views
Discrepancy in distances returned by astropy AltAz
I am writing some code dealing with an aircraft locations with respect to an observer located at ground and I got a discrepancy between the distance calculated directly from geocentric Cartesian ...
0
votes
2
answers
239
views
proj4js converts EPSG 3946 into EPSG 4326, but the points are not located well
I have a .json file of points to put on a Leaflet map, and I have used the proj4js to convert them from the EPSG 3946 projection into the WGS84 EPSG 4326 one. All worked, but the points are not ...
1
vote
1
answer
196
views
pixel values by rasterio.transform.rowcol
I am trying to extract pixel values from the raster using the pixel coordinates. The following is part of my code. The pixel value I get is far different from the value I get from the same pixel when ...
1
vote
2
answers
178
views
Finding quad faces in a planar graph / 2D mesh
Description:
I have a set of coordinate points and an adjacency list that describes how each point (node) is connected to other points. Using these, I plotted a graph using NetworkX in Python.
Here ...
0
votes
0
answers
70
views
Convert space coordinates
I have a python code I use to guess points in a airspace. It works very well. I am using a txt file where points are with their coordinates. At present points are identified by this kind of ...
0
votes
1
answer
57
views
Get Identity Matrix equivalent coordinates of any transformed space coordinates [duplicate]
ctx.setTransform(12,0,0,12,34,23)
ctx.fillText("a",0,0)
Is it possible to get the equivalent coordinates of "a" in identity matrix transformed space.
I want to pin point char "...
2
votes
1
answer
132
views
Scatter plot on a region of the sky with a circle
I am trying to do a scatter plot of a few data points on a region of the sky and then add a circle to the plot. Note, that I don't want a plot of the full sky, just of the region around the data ...
0
votes
1
answer
38
views
Getting uniform coordinates from a 3D plane projected as a 2D plane
3d plane projected to a 2d polygon
I have the coordinates of the vertexes P1, P2, P3 and P4 that define a rectangular rectangle.
Those coordinates always define a regular rectangular area and the ...