Shape File To Convert Realtion tag in OSM Data - openstreetmap

I am Routing Working routing application which is working in osm data but i have data in shape file so by using JOSM i convert in to OSM data but i have another file for turn restriction where i have get to , form and Junction data so how to implement in to osm file

Related

How to Load files with the same name in data flow Azure data factory

I use data flow in Azure data factory And I set as source dataset files with the same name. The files have named “name_date1.csv” end “name_date2.csv”. I set path “name_*.csv”. I want that data flow load in sink db only data of “name_date1”. How is it possible?
I have reproduced the above and able to get the desired file to sink using Column to store file name option in source options.
These are my source files in storage.
I have given name_*.csv in wild card of source as same as you to read multiple files.
In source options, go to Column to store file name and give a name and this will store the file name of every row in new column.
Then use filter transformation to get the row only from a particular file.
notEquals(instr(filename,'name_date1'),0)
After this give your sink and you can get the rows from your desired file only.

OSMNx: How to fetch street network using saved osm xml instead of overpass api call request

I can fetch OSM street network using
G=ox.graph_from_point((lat, lng),custom_filter=road_filter,dist=20,simplify=False,retain_all=True)
The process is very slow if i have to make 1000 of such requests.I was hoping if i can load the saved osm file then query locally for the osm road networks.
In Osmnx, the only way to create a graph from a local .osm formatted XML file is:
graph = osmnx.graph_from_xml(filepath, simplify=False, retain_all=True)
There are not filters as other graph_from_*() functions, but once you got the graph you can query the Geodataframes containing nodes and edges that you get with:
nodes, edges = osmnx.graph_to_gdfs(graph, nodes=True, edges=True)

Filtering the Clustered Points by JSON attributes using Mapbox-gl-js

I am working on the project in which I want to filter the GeoJson using their attributes and visualize the marker in cluster form on the map.
I try using the following "Filtering Clustered Points by JSON attributes using Mapbox-gl-js"
solution but unable to understand how to filter GeoJson using their attributes and set filter GeoJson data to map.
I already made an application using Google Maps API, but now I want to develop through Mapbox-gl-js API.
Existing Application Link: http://maps.dicrc.in/BM/
Mapbox The GeoJSON clustering happens at the source level. If you want to filter data in the clusters, you will have to filter the GeoJSON itself based on the attributes BEFORE clustering it.
You can use tools like turf/filter to filter the GeoJSON data. For clustering and updating your filtered data, follow the example in this jsfiddle map.getSource('sourceName').setData(filteredData)
disclaimer: I work at Mapbox

Talend - Insert data into DB using Django REST API

I am trying utilise Django REST APIs to insert data into the database, instead of the direct write. I've been able to read JSON data using the tRESTClient component but I am not too sure about the insertion/POST. Could someone point me to the components (and relation) that I should use?
The current job that I have is mostly:
Read data from raw file -> tMap -> DB
and I wish to do something like:
Read data from raw file -> tMap -> (pass on data to REST endpoint via POST)
Used the tRestClient component after my tMap and I could see the records getting inserted into the DB but all of them are without any data. Strangely nowhere I was asked to specify the JASON tree. The number of records getting inserted are equal to rows being read from raw file so at least something is right. But I couldn't locate the menu/options to specify which data element read from the raw file should tag to which JASON element.
How do I specify the data to JSON mapping?
PS: I realise that this might not be the most efficient way to ingest data but that's what the business wants since it brings in an additional layer of control.

read xml to a sourcestream in aleri streaming

How to read xml file to a stream in aleri. How i can create data model explorer in aleri for the xml which has nested elements.
You can import a flat XML file using one of the built in data connectors, using sp_upload/sp_convert or sp_playback. The file needs to be in the following format:
<StreamName column1="value" column2="value" />
(The stream name does not have to match if you're using a data connector.)
Where there are nested elements it's harder. You'll either need to push the file in as a text file and reconstruct it in the model or write an adapter. In both cases you'll need to think about how you can represent the nested elements in a flat table structure.