Questions tagged [projection]

A projection is the transformation of a set of data from one form into another.

Mathematically speaking a projection is a function that yields the same result if applied multiple times.

The term is used with this meaning in graphics when 'projecting' a 3D scene on a 2D canvas.

The same is often happening when analyzing data with many dimensions (age, gender, number of transactions, ...) and projecting it on fewer dimensions, in the simple case by just dropping dimensions or by creating new dimensions like (might commit fraud).

When dealing with typed languages the dimensions might be attributes of a class. So if I have one or multiple types with attributes (A, B, C, ...) and create from instances of those types instances of a type which has only the attributes (A, B) this is a projection too.

Another example are databases. A projection is an operation which discards some attributes of a tuple, in other words, which omits some columns of a relational database query result. For an object or document database a projection filters out some fields.

After all a database projection yields the same result if applied multiple times, too.

2017 questions
0
votes
1 answer

Matrix multiplication with each element in third dimension

I have 2D image of 3D coordinates (x, y, z, 1) in numpy array with shape of 64x64x4. I want to project each one of them with camera clip projection matrix, with shape of 4x4. I have following code: notProjected.shape # (64, 64, 4) clipToWorld.shape…
Toothery
  • 155
  • 1
  • 1
  • 10
0
votes
1 answer

Spring projection with entity inside

I need in metainfo for entity (hierarchy level from recursive sql query) so i created next projection @Value public class ProjectionObject{ MyEntity entity; int metainfo; } @Query(value = "select my_entity.*, 1 as metainfo from…
Dmitry Shabalin
  • 141
  • 1
  • 9
0
votes
0 answers

projecting dynamic bi-partite/two-mode network where only edges overlapping in time is kept

I am attempting to create a one-mode network of co-workers based on a bi-partite graph. I have a dataset consisting of people and the companies they worked at, plus the year they started and ended their time at any given company. I want to project…
0
votes
1 answer

How do I project sub elements in a Mongo query?

I'm trying to pull specific sub elements from a Mongo database. I've used a sample set of data containing all the books and verses in the Bible. I need to query and display an individual verse. The data looks like this: {"book": "1 Chronicles", …
CharlieA
  • 1
  • 1
0
votes
1 answer

PostGIS Shapefile Projections (SRID) results in wrong coordinates

I could really use some direction here. I'm fairly new to PostGIS, and I'm coming up with nothing in my search for answers. I'm pulling in various shapefiles with several different projections (EPSG/SRID). I extract the GEOGCS from the .prj file,…
Ian
  • 11
  • 2
0
votes
1 answer

How to obtain 2D projected version of a 3D plot in Matplotlib?

Assume you have drawn a 3D figure in Python. import matplotlib.pyplot as plt fig = plt.figure() ax = plt.axes(projection="3d") ax.plot3D([0, 0, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0]) plt.show() You can rotate the picture with the mouse into a position…
Karlo
  • 1,630
  • 4
  • 33
  • 57
0
votes
1 answer

Highcharts Highmaps How to change projection with hc-transform

I built this map with Highmaps and it looks ok: see fiddle Now I want to use another projection and created this geojson file with pseudo mercator and added hc-transform. Unfortunately the map is not displayed: see fiddle This is what the geojson…
0
votes
1 answer

Custom Matplotlib projection stereoplot: Schmidt projection

So, I am trying to plot my data with the same code shown in this post, including its latest update. But when I run the code to see the projection grid I get this error: Traceback (most recent call last): File "C:\Users\Stefano\Documents\Python…
0
votes
2 answers

OPENGL ES MatrixGrabber and GLU.gluUnproject() mayhem

[EDIT] Ignore this post, it was a noob's mistake [/EDIT] I started Android last week (= I'm pretty new to it :) ) and I'm banging my head on a problem: I try to perfom a raycasting to get the objects under a point of the screen. I found out that the…
nicoptere
  • 1,067
  • 6
  • 9
0
votes
0 answers

What is the difference between the "up" vector and the y axis?

In ThreeJS, why do objects have an up property? i.e. https://threejs.org/docs/#api/en/core/Object3D.up Isn't an object's up just its y axis? Is there a difference between up and y?
raphisama
  • 396
  • 3
  • 11
0
votes
1 answer

Is there a way to not $project keys that have an empty array in the mongodb aggregation pipeline?

I'm getting some [] values for some of my returned key results, but I want to make it so that the keys with [] values are never returned at all. This needs to be in the Aggregation Pipeline. Ex: { "_id": "5e42fb9b74753bd02c86ca2c", "key_one":…
0
votes
1 answer

osmnx: project point to street segments

I have a point given by lat and lon and I want to find the nearest edge to the point by minimum Euclidean distance. For example import osmnx as ox track = [(40.7052, -74.0069)] fig, ax = ox.plot_graph(G, show=False, close=False) for pairs in track: …
sofaruntitled
  • 275
  • 1
  • 2
  • 6
0
votes
1 answer

3D Projection in pygame

I'm trying to create a simple 3d rendering of a cube. As in this video from the Coding Train: https://www.youtube.com/watch?v=p4Iz0XJY-Qk on minute 14. I got stuck at one point. Since I'm pretty new to all of this, I'm not exactly sure what's…
user12699739
0
votes
1 answer

Manually write world file (jgw) from Leaflet.js map

I have the need to export georeferenced images from Leaflet.js on the client side. Exporting an image from Leaflet is not a problem as there are plenty of existing plugins for this, but I'd like to include a world file with the export so the…
0
votes
0 answers

Projection outline of object to other object in scenekit

Hello~ I want to draw outline of cube on capsule surface. It is outline through normal between camera and cube center. That image is made by unity but I wnat to render on ios scenekit. Do you have good way to do this simply?? enter image description…
Eun
  • 1
  • 2