Questions tagged [mapping]
Corresponding every element of a given set to a unique element of another set or it may refer to a process of creating data element mappings between two distinct data models (objects)
9,088
questions
0
votes
0
answers
11
views
How to map Dynamic Json Value to Pojo Object using Jackson Parser
{
"1forge.com": {
"added": "2017-05-30T08:34:14.000Z",
"preferred": "0.0.1",
"versions": {
"0.0....
0
votes
0
answers
17
views
Mapping part of a JSON string to an abstract class using GSON
I have a json string that I would like to map to my java object. I am currently using gson to do so. The problem is however, I have setup part of my POJO to contain an abstract class. How can I map ...
1
vote
2
answers
14
views
Is there any way to reinitialize a mapping
I am trying to code a smart contract and I am using a mapping (address => bool) ; i make it true when a certain conditions meet. Now for another condition I want my mapping to reset and loose all ...
-2
votes
0
answers
23
views
Find matching strings in two arrays? Javascript [duplicate]
I am trying to find matching strings in two arrays and supply the times that it is replicated in an array. So for example in the below example
var arrayStrings = ["Hello", "Hello", ...
0
votes
0
answers
27
views
C# How to Access the Inner Pair of a Nested Dictionary? [duplicate]
I'm learning C# and need a data structure that takes a mapping between <EnumA, EnumB> and maps to a String.
To explain, let's say I had the following defined within Class foo:
public enum ...
-1
votes
0
answers
17
views
mapping values from database to alfresco
my final objective is to be able to link to documents in alfresco repository to database so I try to do it with data model in alfresco process service but it import just the structure of the table not ...
1
vote
3
answers
31
views
Need to split an array based on another array containing size Python
I have 2 arrays - one containing data and the other containing a size that the data needs to be broken into:
data = [{"a":1,"b":2,"c":3}]
size = [1,2]
I would like the ...
-1
votes
2
answers
61
views
Mapping fields of List to fields of a single Object
Suppose, I have a List of cats like this:
[Cat[name="Minnie", age=3], Cat[name="Pixie", age=1], Cat[name="Kazy", age=5]]
And an Object Cats with fields:
class Cats {
int ...
0
votes
0
answers
13
views
Looking for non expensive ways to acquire GIS skills
For the past few years I have been taking all of ESRI's free Moocs but I want to get more hands on a creative experience without having to shell out thousands of dollars to take the courses and ...
0
votes
2
answers
46
views
How to map with unique value in pattern
I have an array of contents that I am fetching from headless cms. I am putting them on grid and trying to make them start at different column, but I am struggling to find a way to go about it.
If I ...
0
votes
0
answers
30
views
No transform from [map] to [odom] in ros
I created a node to map the turtlebot3_world, since in turtlebot3_world.launch there is no map frame, i assigned map_msg.header.frame_id = "odom"inside my code. now i am going to use the ...
0
votes
0
answers
13
views
what is the hierarchical structure of XML structure of this output in Map Editor ? I want to Convert CSV Data to XML By Mapping
I need this output by convert csv file in map editor . I want to understand how can we get this output after adding in csv file in input side in map editor.
<code description="1" ...
0
votes
0
answers
39
views
FIBMAP vs FIEMAP ioctl syscall differences
I coded a little tool to show the number of logical blocks of a file and the physical blocks mapped. Using ictl FIBMAP system call, I'm looking on logical-to-physicaal block mapping. So I used an old ...
0
votes
1
answer
44
views
Mapping multiple rows representing a one-to-many relationship
Suppose a student -> book one-to-many relationship.
When you query the related tables in Python, you would get the result in a flat format:
(Assume I'm using psycopg and raw SQL to fetch the ...
0
votes
1
answer
19
views
Pandas dataframe create from dict of crossings
I want to create a simple matrix where I have as index the name of a software requirement and as column all the software test cases in the project.
Where one SWRS is covered by one SWTS, I need to ...
1
vote
0
answers
18
views
Typescript local variable inference after if check [duplicate]
I have a question about type inference. Why it doesn't work on a sample below? Error says that return type of IMapT[T] is inferred to T1 & T2 even when there's an explicit if statements on value ...
0
votes
0
answers
24
views
User mapping in Kubernetes with containerd
I have a question about how kubernetes maps the host users with the containers' usernamespace user.
Basically, when I create a securityContext with runAsUser set to a uid which exists in the host ...
3
votes
2
answers
37
views
Mapping value from another dataframe
I have dataframe a:
TagID Genre
0 0 rock
1 1 pop
2 2 favorites
3 3 alternative
4 4 love
and dataframe b:
Tags
0 154
1 20 35 40 65
I want the ...
1
vote
2
answers
23
views
React -- Mapping specific images to specific cards
Trying to map specific images to specific card components as backgrounds. Problem - When I pass data.bgUrl into style={{ backgroundImage:`url(${data.bgUrl})`}} the result is surrounded by quotes (&...
0
votes
0
answers
8
views
Workflow has session how to export it is
Workflow was executed and it has both mappings and sessions. But session was not created separately under session tab and session was there under workflow how to export
0
votes
0
answers
21
views
React - Handle clicking a button to display some text
I map buttons and need them to display text once clicked. I use an ID state to grab which key was clicked and then the classname should display that text, and should only display one description at a ...
-1
votes
3
answers
60
views
Python: Map lists to other ones that are newly ordered
I have a list of let's say letters:
l1 = ["a","b","c","d","e","f","g","h","i","j"]
and two lists of ...
0
votes
1
answer
34
views
mapping within another map and printing multiple properties on object
In this code, everything prints out right except for my "flavors" is only returning one property value (the one at the index of 0] in the browser instead of the array it is supposed to. I ...
0
votes
0
answers
7
views
Cant get mouseover to work to get lat long in leaflet with VSC
I want to have a_mouseover return with a list of the current latitude and longitude of the mouse cursor.
Ive tried this but it returns a blank screen
map.on('mousemove', function (e) {
...
0
votes
0
answers
37
views
Separate domain models and entities used in EF Core?
Im unsure on wether I should let EF use my domain models or not.
Right now I have three types of models:
Core.Models (System wide)
API.Models (Used only in controllers)
Infrastructure.Entities (Only ...
0
votes
1
answer
40
views
Calling async function in .map() (React)
I'm trying to iterate over IDs (track.id) and for each of them fetch some data (based on those IDs) from API (getBPM()). I'm pretty sure it's connected with Promises and I'm not very fluent with these ...
-1
votes
0
answers
75
views
Append columns to a dataframe from another dataframe's specific rows
I have a df that I've simplified for this question that contains two columns: game_pk and fielding team. game_pk is essentially a game id. .
Dataframe 1 Looks like this
The baseballr package has a ...
0
votes
0
answers
18
views
How to subset a Polygon layer to only polygons that border a multiline feature
I have a layer of polygon features representing land parcels over a large tract of area, and a mulipoint line segment representing a river. I would like to snip the polygon layer to only those that ...
0
votes
1
answer
21
views
ELASTICSEARCH NEST Automap string override either that string fields receive a keyword normalizer or something else, for case insensitive search
Im very unfamiliar with ElasticSearch, but basically I've been trying to figure out how to make all database fields that are string to be searchable case insensitively. As currently the Automap ...
-2
votes
1
answer
33
views
How to map correct values?
I have a dataframe where most of the values are wrongly mapped.
here is my dataframe.
df:
Name Age Cust_Id
alex 47 1923894833
I need to re-map every values ...
0
votes
1
answer
21
views
JPA OneToOne mapping not using Foreign Key as specified
So I am working on an issue in which the JPA mapping is trying to link two tables incorrectly.
The logic is something akin to:
@Table(name='TABLE_A')
class TableAEntity {
@Id
@Column(name = '...
0
votes
1
answer
30
views
spring entity to DTO with compute getter
Trying to understand the best practice here, i have an entity
and i add some login to the getPrice property:
public class Order{
private Integer price;
private Integer addOn;
public ...
5
votes
1
answer
216
views
Advance a Interpolation
Note; No special knowledge of Pykrige is needed to answer the question, as I already mention examples in the question!
Hi I would like to use Universal Kriging in my code. For this I have data that ...
0
votes
1
answer
20
views
Accessing subitems in api gateway response mapping
I'm trying to do a mapping in an api gateway and I can't manage to access the children objects inside the returned json. This is my case:
When I test the endpoint directly in the api gateway I get ...
0
votes
0
answers
45
views
cannot import name 'Mapping' from 'collections'---- Heroku site this after deployment
i am uploading my files on heroku
site got uploadede but when i click on the link it shows "Application Error". In the logs it is showing "cannot import name 'Mapping' from 'collections'...
0
votes
0
answers
12
views
2D list redefinition with condition inside brackets: how do I impose complex conditions?
So I have a 2D matrix, in the code called wave[2] (it's the place-2 element of the three-dimensional array wave), which I want to map into a matrix of equal dimensions but with the condition that if ...
0
votes
1
answer
24
views
IN DART - toList() method is not converting an Iterable of int into list, but when it is applied inside print() it works fine. Why?
I have created a list 'numbers' then used 'map' method to loop over it and assigned the output to squares. Now I apply toList() method on 'squares' to convert it to a List type but in output it's ...
1
vote
0
answers
31
views
org.hibernate.QueryException: could not resolve property: Company_id of: ch.zhaw.springboot.entities.Orders
I am trying to write a query, from MySQL, in my repository for a spring boot project, I am facing an issue: "Caused by: org.hibernate.QueryException: could not resolve property: Company_id of: ch....
1
vote
1
answer
34
views
comparing 2 columns in pandas and outputting row
I have the following dataframe in pandas and want to write a if statement to compare name with new-name and print identifier , person-name, new-identifier , new-person
identifier
person-name
type
...
-1
votes
0
answers
24
views
I am trying to use import folium but it is giving the error Import "folium" could not be resolved
enter image description hereI am trying to import folium in my python script and it is giving the error Import "folium" could not be resolved, however when I do that in the python ...
0
votes
0
answers
10
views
Map with GEOID in R
I have a small file with GEOIDs. (Not lat/long.) I produced this file myself. I have a hard time figuring out how I can plot this. My file has GEOIDs and a column I want to plot in R (called "y&...
1
vote
1
answer
50
views
DNS record mapping the hostnames and the external IP
So I'm deploying this app called WSO2 API Manager to AKS and at the end of the tutorial it asks me to do this :
If the defined hostnames (in the previous step) are backed by a DNS
service, add a DNS ...
0
votes
1
answer
61
views
Can we offload double pointer to GPU using OpenMP
I am new to OpenMP and I am trying to parallelize a simple code with a double loop like this one:
for (int i=0; i<n; i++){
for (int j=0; j<n; j++){
c[i][j] = a[i][j] + b[i][j];
}
...
2
votes
1
answer
66
views
Extract Lat/Long/Value data from TIF without Rasterio
I would like to extract Lat/Long/Value Data from a Tif document. Unfortunately I cannot install Rasterio and only use GDAL for this. So far I have written the following code:
from mpl_toolkits....
2
votes
2
answers
46
views
I need to set a really specific regex pattern
I have a pandas dataframe with values on each cell like this:
GRI 101: Foundation:
• Clause 1.1 (Stakeholder Inclusiveness principle)
• Clause 1.3 (Materiality principle)
• Clause 2.1 (Applying ...
0
votes
3
answers
77
views
Running a mapping task what is the correct 2nd array method for processing one of the newly created item's values?
I have an array containing objects:
let sportTag = [
{ id: 1, name: 'FOOTBALL', found: false },
{ id: 2, name: 'TENNIS' , found: false },
{ id: 3, name: 'BASKET' , found: false },
]
I ...
2
votes
2
answers
140
views
Advance a Basemap Plot
First: sorry for the long Question
Hi I would like to interpolate a map and do this with the package Pykrige. For this I create the Meshgrid:
def get_data(df):
return {
"lons": ...
0
votes
1
answer
43
views
In Solidity, can you declare a mapping variable inside function?
I have only seen that the mapping variables are declared as storage variables.
I'd like to know if I can declare a mapping variable inside the function in Solidity.
0
votes
0
answers
33
views
Depend Repository Interface in Domain to view model in Application contract Layer in Onion Architecture
My Question is Can We Depend Repository Interface in Domain to
view model in Application contract Layer in Onion Architecture ,
i need Mapping My model to view model , but i don't need all field,
can ...
0
votes
0
answers
38
views
Map function not displaying data properly
I use to Map method to display data form API but data is not aligned properly I apply reverse method to reverse data but reverse is not working properly
I create this function to display data:
...