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

EF core 2.2 - projection as a parameter to a generic respository error

I have in my base repository a method like so: public async Task GetByCondition(Expression> predicate, Func, IQueryable> baseQuery = null, Expression> projection = null) …
Offir
  • 3,252
  • 3
  • 41
  • 73
0
votes
1 answer

How to draw cube at some world coordinates, OpenGL

I have this code that doing this, but it don't work at all! GLdouble *posv = Utils::worldToScreen(px, py, pz); GLdouble x = posv[0]; GLdouble y = posv[1]; GLdouble z = posv[2]; GLdouble *sizev = Utils::worldToScreen(1.0f, 1.0f, 1.0f); GLdouble sizex…
HiTECNOLOGYs
  • 327
  • 5
  • 21
0
votes
2 answers

How to Add More Lines of Longitude/latitude in NorthPolarStereo Projection

I am trying to increase the interval at which longitude lines occur on my NorthPolarStereo projection in Python. I have tried increasing/defining ticks/lim (for x and y coordinates) and that returns an error of "The truth value of an array with more…
MichaelaS
  • 71
  • 1
  • 8
0
votes
1 answer

How to project Hydrologic Rainfall Analysis Data (MPE/AHPS) raster to a usable format?

Apparently NOAA and the NWS use a non-traditional projection for some of their rainfall data and don't offer a lot of help in terms of projecting it to a traditional format for other users. I've had a bit of success in getting the raster to overlay…
m1994
  • 13
  • 4
0
votes
1 answer

Spring data rest select Projection from user role

I have two projection @Projection(name = "default",types = { People.class }) public interface DefaultPeople { String getFirstName(); String getLastName(); } and @Projection(name = "privacy",types = { People.class }) public interface…
0
votes
1 answer

compile error when trying to use pointer-to-member function as projection to ranges::find()

I want to search an input range for an element that has a certain value in a member via an accessor. range-v3 documentation is... thin, but there are sources such as this answer by AFAIK the 2 main range-v3 developers indicates this kind of thing…
underscore_d
  • 6,309
  • 3
  • 38
  • 64
0
votes
2 answers

LWJGL OpenGL Projection Matrix Issue

I am coding a game in java and I recently tried adding the projection matrix, so I am able to move objects with the Z axis and actually see the object get smaller, have FOV, ect.. Now the problem is when I introduce this my object just doesn't…
purplex
  • 47
  • 4
0
votes
0 answers

Automapper & EF Core: One-to-many relationship exposed by DTO

I effectively have the following entities defined: public class Order { public int Id { get; set; } public string Name { get; set; } } public class Part { public int Id { get; set; } public string Description { get; set; } …
Jaron
  • 133
  • 6
0
votes
1 answer

How to get value from object in document using MondoDB driver C#?

I have data stored in MongoDB like below: _id:5e72196fa7e42815ece552c0 dates: Object StartDate:2020-06-01T00:00:00.000+00:00 status:"Active" My Custom Class is like below: public class MyCustomClass { public string Status { get; set; } …
0
votes
1 answer

AutoMapper Projections are not applied

I'm trying to make a framework to abstract my Entity Layers, However for this to work I need automapper projects to work so I can Query my DTO's instead of Querying the Entities [TestMethod] public async Task Verify_Mapping_Projection_Behavior() { …
johnny 5
  • 19,893
  • 50
  • 121
  • 195
0
votes
1 answer

CQRS Read Model Projections: How complex is too complex a data transformation

I want to sanity check myself on a view projection, in regards to if an intermediary concept can purely exist in the read model while providing a bridge between commands. Let me use a contrived example to explain. We place an order which raises an…
Steven
  • 823
  • 8
  • 25
0
votes
0 answers

What value should Z actually be for perspective divide?

So I'm trying to understand the fundamentals of perspective projection for 3D graphics and I'm getting stuck. I'm trying to avoid matrices at the moment to try and make things easier for understanding. This is what I've come up with so far: First I…
Jason
  • 2,198
  • 3
  • 23
  • 59
0
votes
2 answers

Globcolour data and projection error in Python

I'm having trouble displaying some data from Globcolour (1), due to the projection used with the matplotlib and cartopy definition of the image. I downloaded a Total Suspended Matter image in NetCDF format (here is the data enter link description…
0
votes
0 answers

Transform Equirectangular Projection to Azimuthal Projection

I am trying to transform an equirectangular projection to an azimuthal projection with python. I have found py360convert, which allows convert from equirectangular to cubemap, from which it should be easier to obtain an azimuthal projection. Does…
Diego Silvera
  • 201
  • 1
  • 2
  • 13
0
votes
1 answer

MongoDB match array based on document value rather than explicit condition

Let's say I have the following document structure: { "A": { "_id": "ID0" }, "B": [ { "_id": "ID0", "field": "X" }, { "_id": "ID1", "field": "Y" } ] } I want to project B matched with the _id in A.…
CHRD
  • 1,917
  • 1
  • 15
  • 38