2,042 questions
-3
votes
0
answers
23
views
Polygon edge projection segments [closed]
I have a 2D polygon and would like to find the polygon edge segments that are directly exposed to the projection line.
I would like to get the end points of the segments on the edges that are that are ...
5
votes
1
answer
175
views
Is it okay to pass projection as predicate argument to std::ranges::any_of/all_of/none_of?
This works, but is it legal/safe?
(i.e.: Is it okay to pass projection as predicate argument to std::ranges::any_of/all_of/none_of?)
#include <ranges>
#include <iostream>
#include <...
0
votes
0
answers
52
views
MICCG(0) for a fluid simulation fails at Neumann boundaries
I am trying to follow Robert Bridson's Fluid Simulation Notes (https://www.cs.ubc.ca/~rbridson/fluidsimulation/fluids_notes.pdf) to implement my own eulerian fluid simulator for the first time.
I was ...
1
vote
2
answers
73
views
finding nearest perpendicular point to a line
i am trying to find the perpendicular closest point to a line, given:
line is given by p1 and p2:
p1= [833974.3939975424, 10.741845010809124]
p2= [833972.1988621169, 9.989807874318076]
point: [833972....
0
votes
0
answers
28
views
Spring Boot + Postgres: Native Query/Projection Not Populating Array Attribute from Function/View
I’m working on a Spring Boot service with a Postgres database. I want to fetch data using a native query that leverages a view and a function, and map the results to an entity with a projected array/...
0
votes
1
answer
67
views
Unexpected results after converting raster data from geographic to projected coordinate system using the terra package
I have raster data in the geographic coordinate system EPSG:4326 with units in degrees. I would like to convert my raster to a projected coordinate system with units in meters. I chose +proj=lcc +...
0
votes
4
answers
140
views
Perspective Projection Not Working Properly OpenGL C++ [closed]
I am trying to render a 3D cude on the window and observe the perspective projection.
In the vertex shader when I dont multiply the projection matrix, the cube gets rendered (but you cant observe the ...
2
votes
1
answer
120
views
replace range of projected struct fields
I have a range over a multi field structure.
The fields can only be accessed via operator [].
I want to run a replace over one of these fields.
I can do this using a range based for loop.
Is there a ...
1
vote
1
answer
108
views
Finding projections of points to a (hyper)plane along all coordinate axes
I have a set of linear regression problems, whose dimensionalities vary from 2D (line fitted to a single independent variable), to 3D (plane fitted to two independent variables) to nD where hyperplane ...
0
votes
0
answers
38
views
Spring Boot JPA Projection don't work with Specification and Pagable as expected
I have simple entity.
When I invoke findPageableCommunityAccess from below examples I'm receiving result that look like CommunityAccess (full object) instead CommunityAccessProjection.
Do Projections ...
-1
votes
1
answer
122
views
MTG Lightning AFA data plot
I am attempting to plot the MTG LI level 2 data (AFA), but I am encountering difficulties. The code I have written is as follows:
import xarray as xr
import matplotlib.pyplot as plt
import cartopy.crs ...
2
votes
1
answer
176
views
Problem with projecting game onto a curved screen - distortion of objects on the sides of the screen [closed]
How can I adjusted projection of my project onto a curved surface without distortion of the image?
I have been building a Virtual Reality game that will be projected onto a curved screen, which is ...
1
vote
1
answer
85
views
Why does mapboxapi return a skewed map with apparently incorrect latitude and misplaced relative to data?
I am trying to create several maps across wide latitudinal extents. I am using the Mapbox maps through mapboxapi in R. I would like to know how to do this correctly so that both the map and the data I ...
0
votes
0
answers
181
views
How should I project my coordinates to UTM if they encompass multiple UTM zones?
My issue is that I am working on a really extensive dataset and that my tracking data encompass several UTM zones (12 to be specific: 32-33-34-35-36-37-38-39-40-41-42-43).
Snip of my data:
> head(...
0
votes
1
answer
124
views
Parameters in @Query Annotation for DTO Class Spring Boot 3
I want to use this following DTO-Class to project the Entity-Object in my project in the purpose to retrieve the corresponding information related to my profile depending on id's value given as ...
1
vote
0
answers
201
views
No Dialect mapping for JDBC type: 2014
I have below query
@Query(value="SELECT " +
"NEEDARRIVDATE AS needArrivDate, " +
"SCHEDARRIVDATE AS schedArrivDate," +
"FROM ...
0
votes
1
answer
51
views
Which EPSG does SUMO use?
I want to connect sumo with unreal engine use real world map.
According to this page (https://sumo.dlr.de/docs/Simulation/Distances.html), Sumo simulation network uses multiple coordination system:
x,...
0
votes
1
answer
102
views
MATLAB: How to create 2d pixel map of data stored in 3d patch object's FaceVertexCData based on camera view?
Minimum viable example:
% Define a simple 6 sided cube with dimensions 0-1 in X, Y, and Z
vertices = [0,0,1; % 1 Front-Top-Left (FTL)
1,0,1; % 2 Front-Top-Right (FTR)
1,0,0; ...
2
votes
1
answer
140
views
Mongo DB Bson and Java: adding and returning field in child documents that is only present in the parent?
I have the following document structure in my cosmos DB (using mongo query language):
Child:
{
id: doc_123_2
parent_id: 123
active: true
}
Parent:
{
_id: doc_123
parent_id: 123
active:...
1
vote
2
answers
76
views
Project a mongo db array to comman seperated string
I have the following collection
{
"_id": "12345",
"Products": [
"Product1",
"Product2"
],
"State": "active",
}
...
1
vote
1
answer
171
views
Find the real sizes of a rectangle drawn into an image
I can't find anywhere a solution to this problem, so I'm asking here hoping someone has the solution.
The problem is the following:
given an image is it possible to find the "real sizes", ...
0
votes
0
answers
159
views
Is there a way to resample a raster to a lower resolution using a weighted average of constituent pixels?
I would like to reproject a raster from WGS 84 (degrees) to ESRI 102001 (meters) while simultaneously resampling the original pixels to a coarser resolution (e.g. .00001 deg to 30 m). I want the final ...
0
votes
1
answer
113
views
i have two geodata frames in geopandas that are not aligning
I am mapping my location history using Geopandas during a timeframe where I travelled from NYC (which I started working with and was able to map out) to Ithaca (upstate). My location history points ...
0
votes
1
answer
123
views
How does the R package `terra` determine the number of dimensions of a raster projected without a template?
I'd like to know how terra determines the number of rows and columns in a raster that is projected without a template raster. For example:
library(terra)
from <- rast()
mollweide <- 'PROJCRS[\&...
1
vote
2
answers
1k
views
JPA return selected OneToMany list in query as single Java object in projection result
I have a similar setup as in this question, i.e., one Author can have multiple Comments. In my case, it is modeled as OneToMany in the Author class.
@Entity
public class Author {
@Id
@...