9,913 questions
-3
votes
1
answer
46
views
How to map two columns in Denodo using different delimiters (comma and tilde)
In Denodo (version 9.0.10), I have a BaseView called "bv_AuditBase" containing two very important columns: "AttributeMask" and "ChangeData." The columns are filled in ...
0
votes
1
answer
51
views
Mapping with merged scan ROS2 Humble
I’m working on a ROS2 Humble project where I need to generate a map using data from two LiDAR sensors. Each LiDAR has a 270° field of view, and I’m trying to merge their scans into a single unified ...
0
votes
0
answers
100
views
React Leaflet Polyline keeps re-rendering and flickering during map interactions (zoom/pan) - how to make it stable?
I'm using React Leaflet to display a map with vehicle tracking points connected by a Polyline route. The issue is that when I zoom in/out or touch/drag the map, the Polyline route keeps re-rendering ...
0
votes
0
answers
56
views
CF7 3rd party integration php issue
Sorry, not a coder just trying to figure out an issue on a WP site.
Using 3rd party integrations from CF7 plugin to pull forms into a Salesforce instance, making some new forms up and suddenly stopped ...
1
vote
1
answer
88
views
How to map a list of products in source JSON to a single product in target based on unique ID?
I am using MapStruct to map data from a source DTO representing a JSON structure that contains a list of products:
public class SourceDto {
List<ProductDto> products;
}
I want to map it to ...
0
votes
0
answers
82
views
Red Panda Connect bloblang mapping changes the order of messages
I have a problem with maintaining the order of kafka messages using Red Panda Connect in configuration in which I read from kafka, I have single bloblang mapping processor and an output to kafka. For ...
-3
votes
1
answer
156
views
How to configure ObjectMapper to deserialize java.sql.Timestamp?
I am facing an issue with configuring the Jackson ObjectMapper to deserialize java.sql.Timestamp.
In particular, the issue is that deserialization with a mapper that was initialized via ObjectMapper ...
1
vote
1
answer
59
views
ggplot Bathymetric shapefile plotting in a single colour
I have a bathymetric shapefile structured as below.
str(Ab_bath)
Classes ‘sf’ and 'data.frame': 126 obs. of 13 variables:
$ CLRRGB : chr "2844D9FF" "2651DCFF" "215DDEFF&...
0
votes
0
answers
26
views
Archestra: No mapping exists from object type
I have an Archestra script that compiles and sends an email message.
When running it, I receive:
System.Data: No mapping exists from object type ArchestrA.QuickScript.Runtime.ExternalReference to a ...
0
votes
2
answers
94
views
How to map multiple URLs to retrieve every text between a start word and end words in R? [closed]
In order to search for keywords using text mining tools, I need to retrieve the abstracts available on each of the URLs from the dat0 dataframe (given for example, URLs provided from this website) and ...
6
votes
3
answers
176
views
PHP Reference Map - Const vs Static
I'm newer to PHP 8. I'm working in code where there are a number of 'constant' mappings. They are done using a static array in various classe. Example:
public static $mapNamedIds = array(
"...
-2
votes
2
answers
199
views
How to map struct[] to db with EfCore
I try to map a Point[] to a SqlServer database.
"Point" is a struct made of 2 doubles: X,Y coordinates.
I need to save an array of Point with EF Core into a SQL Server database. I can save ...
0
votes
1
answer
178
views
How to match and populate a generic Pydantic model with deeply nested fields from similar but ref-inconsistent schemas?
I'm building a generalized Pydantic model (let's call it model X) that I want to use to match and extract values from multiple different JSON schemas (model A, B, C, etc.). These schemas are fetched ...
0
votes
0
answers
39
views
Utilizing Task.Run() for custom mappers
I have been using extension methods to create my own mappers to go from POCOs to DTOs. I have noticed I have been a bit careless in my looping and been utilizing async and task.run to speed up loops ...
1
vote
1
answer
159
views
Mapstruct doesn't generate the mapping code
Why isn't my MapStruct mapper populating my entity objects correctly?
I believe I'm doing everything correctly, but for some reason, the mapping doesn't seem to work. Here are the details of my setup:
...
1
vote
1
answer
58
views
XSLT Mapping move child segment to Parent
I have the following input xml
<root>
<test>1</test>
<child>
<test2>test2</test2>
<child>
<test3>test3</test3>
<test4&...
0
votes
1
answer
160
views
Entity Framework DBO to DTO Mapping causing Looping
I've been trying to get away from using AutoMapper, since everyone seems to think it's the devil. Because of this, I've been putting all of my mapping into the DBO and DTO models that I'm handing back ...
1
vote
1
answer
111
views
How to configure EF Core when mapping a flags enum to a sequence of characters
I have an enum CarFeatures
[Flags]
public enum CarFeatures
{
None = 0,
AdaptiveCruise = 1, // 'a'
ParkAssist = 2, // 'p'
RearCamera = 4 // 'r'
}
I have an entity Car
public ...
2
votes
1
answer
70
views
Map flat Entity to List with Mapstruct
I would like to map this flat entity:
@Entity
@Table(name = "vw_class_schedule")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Immutable
@IdClass(ClassViewEntityId.class)
class ...
0
votes
1
answer
141
views
Combining size and colour legend
I have generated a map using tmap over which I'm overlaying some dots (using tm_symbols()). The dots indicate the location of the cases and the number of cases occuring there. I'm using the size of ...
0
votes
1
answer
42
views
How to return actual value (not lowercase) when performing aggregation in elasticsearch?
Hello we faced a problem with lowercase normalizer during aggregation query.
We have an initial mapping like
"mappings": {
"properties": {
"keyword_value": {
...
0
votes
1
answer
119
views
OpenLayers: How to prevent shapes from hiding when using declutter: true for labels?
I am using OpenLayers v7.5 to display point features with icons and labels on a VectorLayer. To prevent label overlap, I enabled declutter: true, but this causes both icons and labels to disappear in ...
0
votes
0
answers
17
views
Small Distortions on Pennsylvania Map
Calling anyone familiar with mapping the state of Pennsylvania in the US!
My map seems to be a bit distorted: the southern border curves slightly and the western border is slanted. I've seen maps ...
0
votes
1
answer
112
views
Can I merge nested mappings in yaml?
Given the following example:
.a: &a
sheep: "a"
.b : &b
cow: "a"
edileMamals: &edible_mamals
<< : *a
<< : *b
edibleAnimals: &edible_animals
...
0
votes
1
answer
55
views
EF Core view derived from table unexpected results
I have a database view, based on a table with an additional column.
My classes first looked like this:
public class Person
{
public int Id { get; set; }
public string Name { get; set; }
}
...
3
votes
0
answers
55
views
JavaFX Chained MappedBindings Repeated Executions
I noticed that some of my mappings were being executed multiple times and decided to investigate. I found out that chaining multiple ObservableValue#map calls, then adding a listener to the result ...
0
votes
1
answer
70
views
Mapping from file in jq
I'm trying to use jq to look up data from a json file with account mappings. So given an account number as input, I want to look up it's name from a file, and it needs to handle the account not being ...
6
votes
1
answer
162
views
Issue with graticule across 180° for several country/territory EEZs
I am helping a set of data managers across the Pacific plot fisheries data within their EEZ. In trying to make a standard example that works for everyone, I have an issue with the latitude/longitude ...
0
votes
0
answers
21
views
ROLLUP usage in Oracle Data Integrator (ODI)
I have an insert statement like;
INSERT INTO table
(column1, column2, column3 )
SELECT fact_1_id,
fact_2_id,
SUM(sales_value) AS sales_value
FROM dimension_tab
GROUP BY ROLLUP (...
0
votes
2
answers
74
views
Copy first level keys of a 2d array as a new column of each row
Assuming a 2d array as input, how can each first level key be copied as a new element in its second level row?
Sample input:
$members = [
'myname' => ['userid' => 52, 'age' => 46],
'...
1
vote
1
answer
76
views
How to map an integer in a specific range to the same range randomly and uniquely?
I want to generate a unique and random code which looks like AAA-nnn from a sequence number:
seq
code (unique and random)
0
DFZ-980
1
FGG-443
2
CCZ-189
...
...
A ranges from 'A' to 'Z', n ranges from '...
0
votes
2
answers
62
views
Create a categorical column from a datetime column in Python
I have a dataframe with a column of datetime type that I'd like to create a 2nd categorical column based upon. The second column should consist of string identifiers using the following logic:
ON: [...
0
votes
0
answers
29
views
How do I label unique polygon values in arcpy and store their colors?
I have a polygon layer with 10 features with unique IDs. I want to color them deterministically based on this unique ID values field and store the RGB values of their colors, like in a dictionary. ...
0
votes
0
answers
49
views
How to add a shapefile/GeoJSON boundary to a map in Leaflet?
This would appear to be the most basic and trivial thing, except that I can't find out how to do it. I have a shapefile which contains the boundaries of all electorates in my state (this is in ...
0
votes
0
answers
62
views
Separating overlapping labels using ggraph
I am currently mapping some network traffic and using geom_edge_parallel() to draw the edges, accounting for two way traffic.
The labels for these parallel lines overlap with each other, when ideally ...
0
votes
0
answers
18
views
Data modelling, data mapping and erwin related story
As a data modeler, I want to data model the "Manual _Update_ODS.xlsx" file.
Per agreement with Karthik, L1s do not go through Domain Model process. However, if you easily find a match then ...
1
vote
2
answers
78
views
How to get geom_hex to overlay on a map?
I am trying to overlay lunge_count averages across hexagons on a map; however, I am only able to produce two separate plots (one of the geom_hex and one of the map).
#libraries
library(dplyr) # for ...
0
votes
1
answer
71
views
Map each element of torch.Tensor with it's value in the dict
Suppose i have a tensor t consisting only zeros and ones:
t = torch.Tensor([1, 0, 0, 1])
And a dict with the weights:
weights = {0: 0.1, 1: 0.9}
I want to form a new tensor new_t, such that every ...
0
votes
0
answers
28
views
Elasticsearch v7 - How to debug different behaviour between two indexes
I am on Elasticsearch 7.17.22.
I have 2 indexes, the first "my_legacy_index", the second "my_new_index".
I have a spark scala job that inserts the same dataframe into both indexes.
...
0
votes
1
answer
23
views
The content of the file is checked for characters, replace 0D-0A (windows EOL) with 0A (linux EOL)
In Azure Logic Apps, files are fetched from a file location and file contents are read then we have to replace the charaters 0D-0A (windows EOL) with 0A (linux EOL) which is nothing but CR-LF with LF.
...
-1
votes
1
answer
101
views
mapping cognito custom attribute JSON string to object
i have one aws cognito custom attribute called custom:events_permission and it will be something like this
[
{
"id":"48d258b7-8949-41z4-815a-f141487a6de1",
"...
0
votes
0
answers
35
views
Mapping data from one service to another, where to put mapping?
So I have two C# WCF services, lets call them A & B, and a QueueProcessor, lets call it Q.
Service A has access to a DB that I need to get domain model data from.
Service B generates a quote from ...
1
vote
0
answers
92
views
AWS API Gateway VTL not handling Map type as JSON
I'm trying to account for dynamic objects coming into an endpoint and using a mapping template to transform it to the proper outout. However, the serialization is a but whacky causing the below error. ...
0
votes
1
answer
49
views
How to display drawdown contours calculated with the Theis equation to display on an interactive map in Dash with Python?
I have created a Dash app using Python with an interactive map using mapbox. I want to generate drawdown contours at 10-ft intervals out to a 1-ft drawdown around a specified lat/lon using the Theis ...
0
votes
1
answer
143
views
How to add Map Struct Processor without remove other processor paths?
I want to use Map Struct in my project but when I implement it in maven-compiler-plugin other all annotationProcessorPaths removed from project (most important one is Lombok). But after hours and ...
0
votes
0
answers
55
views
Mapping through a json array to produce individual <li> in astrojs
I am having problems mapping through a json array to produce individual li's of the array items in astrojs. I was able to successfully map over a card component I made and was able to target specific ...
0
votes
0
answers
34
views
Inserting values into SQL Server CE table with combined primary key causes error
My SQL Server CE table BandsMembers has 2 columns, bandID and MemberID taken from Bands and Roster intending to show which members are in other bands as well as the home band. The BandsMembers table ...
0
votes
0
answers
51
views
Opensearch field mapping as a map
What's the right way to map field as a MAP.
e.g. we have a json
{ "name": "app", "data": {"f1": {}, "f2": "v1"}}
{ "name": "...
0
votes
0
answers
326
views
No Mapping Rule matched - 3Scale
I am receiving 'No Mapping Rule matched' in my 3scale configuration, and i have no idea why.
In 3scale I have added the matching method as this:
POST
/one-time-password-sms/v0/send-code
In my API ...
0
votes
0
answers
122
views
D3.js: getting "TypeError: cannot read properties of undefined" from my json dataset. I do not know why
I am trying to load my data onto a d3.js map but I keep getting this error: TypeError: cannot read properties of undefined
I am using my own json data and nothing is mapping. It seems that it cannot ...