2,036 questions
0
votes
1
answer
50
views
obtain a temporal network projection from bipartite with years as edge characteristics
I need to build a temporal (snapshots) network of keywords from scientific articles. Each word has an associated publication year, but in a bipartite network of words and articles, the year is ...
5
votes
1
answer
218
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 <...
1
vote
1
answer
101
views
Transformation of extent in data is not recovered when transforming back to the original CRS
I have an extent that I want to transform in order to change the ymax (i.e. limit the ymax to a new value):
library(terra)
# Set and extent
lulc.e <- ext(-830370, 787470, 117960, 2091060)
# ...
0
votes
0
answers
69
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
votes
1
answer
100
views
Using true/false vs 1/0 in MongoDB Projections — Long-Term Compatibility [closed]
In our Go codebase, we’re building dynamic projection maps for queries. Instead of using map[string]int{"name": 1}, we’re considering using map[string]bool{"name": true} for ...
0
votes
2
answers
92
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....
1
vote
2
answers
117
views
error compiling ranges::set_intersection with projection
The code:
#include <algorithm>
#include <ranges>
#include <vector>
#include <tuple>
#include <generator>
#include <cstdio>
#include <iostream>
using ...
0
votes
0
answers
38
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
0
answers
54
views
Inheritance TABE_PER_CLASS with projection
I have the requirement to store data in two different db tables and both have the same structure. This is because system/app data must stored separately from user data.
I found the following solution ...
0
votes
1
answer
75
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
177
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
124
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 ...
2
votes
1
answer
125
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
2
answers
114
views
OpenLayers - OS Leisure Layer
I am trying to add this layer to an OSM with a display projection similar to the other layers, however this code results in a blank pink screen. The grid lines are skewed but no tiles are displayed. ...
2
votes
2
answers
235
views
Cropping in sf: Flat space vs. spherical geometry, and sf_use_s2()
I am working with a dataset that includes raster data that I'm combining with maps from rnaturalearth. Most of what I'm doing is manipulating the raster data using terra, to do things like aggregation,...
-1
votes
1
answer
151
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 ...
0
votes
1
answer
457
views
How to assign a CRS to a raster in R without error
I've been trying to set the Coordinate Reference System for a raster (.tif) file in my R script, but when I go project my raster I'm getting an error which seems to imply that my object is a data ...
2
votes
1
answer
220
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
0
answers
53
views
Project query in Springboot didn't work well
In SpringBoot Applicaton,when i query mongo like this in MongoRepository:
@Aggregation({
"{$match:{createUid: ?0}}",
"{$lookup: {from: 't_user',localField: '...
1
vote
1
answer
94
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
1
answer
72
views
Cartopy non-PlateCarree projections result in empty plot
I am trying to plot some climate data on a map of a part of Scandinavia. In the codes below I left out the non-relevant parts, focusing on the parts relying on the transform and projection.
Using ...
0
votes
0
answers
202
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
189
views
WebGL screen to world coordinate
I'm creating a 3D globe with elevation:
I now want to add click detection to get a 3D world xyz position from a 2D screen xy + depth (from a click). I'm using the following code (inspired from ...
0
votes
1
answer
675
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
2
answers
437
views
How do I get 3D coordinates of clicked point and in fragment shader in WebGL?
I draw a unit sphere of objects (stars, sprites etc), which all have 3D coordinates on the "surface" of that sphere. The camera is at the center of it and I use perspective projection to ...
1
vote
0
answers
232
views
No Dialect mapping for JDBC type: 2014
I have below query
@Query(value="SELECT " +
"NEEDARRIVDATE AS needArrivDate, " +
"SCHEDARRIVDATE AS schedArrivDate," +
"FROM ...
2
votes
1
answer
244
views
Plotting 3d data and its projections - gnuplot
I am trying to plot the projections of a 3D data set on its corresponding xy, zy, zx planes, but I have found no information about that. It seems it is a forbidden topic or just impossible to do. I ...
0
votes
1
answer
53
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,...
1
vote
1
answer
87
views
How to exclude fields of an array using Mongo Projections
I want to only exclude the "Name" field for the "People" array field:
e.g.
"Type" : "Green",
"Date" : "2022-10-21",
"People" : [{
...
0
votes
1
answer
118
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; ...
0
votes
1
answer
83
views
MongoDB Driver Java: 'unknown operator: $project' on server
I have the following java code that creates Bson filters (working as intended).
However when I try to add a projection to my filter I then get:
'unknown operator: $project' on server
What is the ...
2
votes
1
answer
150
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
1
answer
35
views
Split Mongo Db array into multiple documents
I have the following Document in my colletion
{
"_id": "12345",
"Products": [
"Product1",
"Product2"
],
"State": "...
1
vote
2
answers
89
views
Project a mongo db array to comman seperated string
I have the following collection
{
"_id": "12345",
"Products": [
"Product1",
"Product2"
],
"State": "active",
}
...
0
votes
0
answers
107
views
vertica projections: adding new columns leads to reusing aliases of old columns
Sometimes after adding new columns to a table we face with problem of strange aliases in projection columns: new columns have aliases of old columns names. Columns were added like alter table DMA....
1
vote
1
answer
188
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
526
views
3D RGB-D Panorama to 3D mesh
I am projecting a Panorama image back to 3D, however I am struggling with the projection.
import argparse
import os
import cv2
import numpy as np
import open3d
class PointCloudReader():
def ...
0
votes
0
answers
171
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
0
answers
86
views
Dynamic Projection Mapping with Kinect Fusion
I would like to create a dynamic projection mapping with a kinect v2 onto moving faces. The projection should also track gestures. For the Face and Gestures I already could use / adapt the libraries ...
0
votes
1
answer
117
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
0
answers
88
views
Determine vergence point on HL2
Setup: HoloLens 2, front camera
Input data: Gaze origin, gaze direction of user, camera intrinsics
Desired output: 2D gaze coordinates
Objective: I would like to determine 2D gaze coordinates on the ...
0
votes
1
answer
126
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[\&...
0
votes
1
answer
291
views
How to plot POP2 grid (POP_gx1v7) data on map with xarray and cartopy?
I am working with ocean variables of the LENS2 ensemble of CESM2 and am now trying to plot the data on a geographical grid. The ocean model POP2 is based on a displaced-pole grid with poles in ...
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
@...
8
votes
1
answer
2k
views
How to use Hibernate ResultListTransformer in Spring JPA Repository?
Vlad Mihalcea describes in How to fetch a one-to-many DTO projection with JPA and Hibernate a use case I want to implement in a Spring Data JpaRepository.
The code in question is the following one:
...
3
votes
0
answers
121
views
Events seems to vanish upon projection linking
I am using the EventStore solution for the event-driven approach in my new project. I've noticed an issue where emitting an event and linking to a stream seems to make previous events disappear from ...
0
votes
1
answer
42
views
Projection with two attributes with same name
I have a projection using Interface, and i need the genre.Id and the movie.Id, but in table it have the same name:
public interface MovieProjection {
Long getId(); //Genre Id
...
1
vote
1
answer
305
views
Plotting data which is already in Lambert projection
Recently I am trying to plot the meteorological field from HRRR datasets. However, HRRR datasets are already in Lambert projection (not gridded). The datasets provide x,y as an index (1~len(x) and 1~...
2
votes
2
answers
271
views
DDD+CQRS+EventSourcing how to make sure projections are up to date?
We develop application that uses DDD,CQRS+Eventsourcing.
We have an UserAggregate. This aggregate uses UserMailIndex.
UserMailIndex - is a projection, it is just a list of unique emails. Each time ...
0
votes
1
answer
270
views
Project raster error, package terra 1.7.55 xy not numeric, example code from documentation produces same error
I don't know how to fix this does anyone have any suggestions?
I'm having trouble projecting rasters.
I get the message
Warning: PROJ support is provided by the sf and terra packages among ...