@@ -11,72 +11,85 @@ db.createUser({
1111db . createUser ( {
1212 user : "datapipeline" ,
1313 pwd : "datapipeline" ,
14- roles : [ { role : "readWrite" , db : "bci-metadata" } ]
15- } )
14+ roles : [ { role : "readWrite" , db : "bci-metadata" } ] ,
15+ } ) ;
1616
1717// Define the datasets
1818const datasets = [
1919 {
2020 basicData : {
2121 DatasetId : "empty_map" ,
2222 Name : "Empty Map" ,
23- Description : "An empty, default map of Germany, with no data loaded." ,
24- Tables : [ ] ,
23+ ShortDescription : `An empty, default map of Germany, with no data loaded.` ,
2524 } ,
26- metaData : {
27- Type : "marker" ,
25+ additionalData : {
26+ Type : "none" ,
27+ LongDescription : `An empty, default map of Germany, with no data loaded. Useful for exploring the map.` ,
2828 MinZoomLevel : - 1 ,
29+ MarkersThreshold : - 1 ,
30+ DisplayProperty : "" ,
31+ Tables : [ ] ,
2932 } ,
3033 } ,
3134 {
3235 basicData : {
3336 DatasetId : "EV_charging_stations" ,
3437 Name : "Charging stations" ,
35- Description : " Locations of all charging stations in Germany." ,
38+ ShortDescription : ` Locations of all charging stations in Germany.` ,
3639 Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="#000000" viewBox="0 0 256 256"><path d="M134.62,123.51a8,8,0,0,1,.81,7.46l-16,40A8,8,0,0,1,104.57,165l11.61-29H96a8,8,0,0,1-7.43-11l16-40A8,8,0,1,1,119.43,91l-11.61,29H128A8,8,0,0,1,134.62,123.51ZM248,86.63V168a24,24,0,0,1-48,0V128a8,8,0,0,0-8-8H176v88h16a8,8,0,0,1,0,16H32a8,8,0,0,1,0-16H48V56A24,24,0,0,1,72,32h80a24,24,0,0,1,24,24v48h16a24,24,0,0,1,24,24v40a8,8,0,0,0,16,0V86.63A8,8,0,0,0,229.66,81L210.34,61.66a8,8,0,0,1,11.32-11.32L241,69.66A23.85,23.85,0,0,1,248,86.63ZM160,208V56a8,8,0,0,0-8-8H72a8,8,0,0,0-8,8V208Z"></path></svg>' ,
37- Tables : [ ] ,
3840 } ,
39- metaData : {
41+ additionalData : {
4042 Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="#000000" viewBox="0 0 256 256"><path d="M134.62,123.51a8,8,0,0,1,.81,7.46l-16,40A8,8,0,0,1,104.57,165l11.61-29H96a8,8,0,0,1-7.43-11l16-40A8,8,0,1,1,119.43,91l-11.61,29H128A8,8,0,0,1,134.62,123.51ZM248,86.63V168a24,24,0,0,1-48,0V128a8,8,0,0,0-8-8H176v88h16a8,8,0,0,1,0,16H32a8,8,0,0,1,0-16H48V56A24,24,0,0,1,72,32h80a24,24,0,0,1,24,24v48h16a24,24,0,0,1,24,24v40a8,8,0,0,0,16,0V86.63A8,8,0,0,0,229.66,81L210.34,61.66a8,8,0,0,1,11.32-11.32L241,69.66A23.85,23.85,0,0,1,248,86.63ZM160,208V56a8,8,0,0,0-8-8H72a8,8,0,0,0-8,8V208Z"></path></svg>' ,
4143 Type : "marker" ,
44+ LongDescription : `A map of EV charging stations displays the locations of electric vehicle charging points located in Germany, helping drivers plan routes and manage charging needs. It is essential for supporting the adoption and convenience of electric vehicles.` ,
4245 MinZoomLevel : 10 ,
46+ MarkersThreshold : - 1 ,
4347 DisplayProperty : "name" ,
48+ Tables : [ ] ,
4449 } ,
4550 } ,
4651 {
4752 basicData : {
4853 DatasetId : "house_footprints" ,
4954 Name : "House Footprints" ,
50- Description : " Footprints for the houses." ,
55+ ShortDescription : ` Footprints for the houses.` ,
5156 Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="#000000" viewBox="0 0 256 256"><path d="M232,56H72V40a8,8,0,0,0-8-8H48A32,32,0,0,0,16,64V176a32,32,0,0,0,32,32H232a8,8,0,0,0,8-8V64A8,8,0,0,0,232,56ZM32,64A16,16,0,0,1,48,48h8v96H48a31.82,31.82,0,0,0-16,4.29ZM224,192H48a16,16,0,0,1,0-32H64a8,8,0,0,0,8-8V72H224ZM104,136a8,8,0,0,0,0,16h16v8a8,8,0,0,0,16,0v-8h24v8a8,8,0,0,0,16,0v-8h16a8,8,0,0,0,0-16H176V120h16a8,8,0,0,0,0-16H176V96a8,8,0,0,0-16,0v8H136V96a8,8,0,0,0-16,0v8H104a8,8,0,0,0,0,16h16v16Zm32-16h24v16H136Z"></path></svg>' ,
52- Tables : [ ] ,
5357 } ,
54- metaData : {
58+ additionalData : {
5559 Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="#000000" viewBox="0 0 256 256"><path d="M232,56H72V40a8,8,0,0,0-8-8H48A32,32,0,0,0,16,64V176a32,32,0,0,0,32,32H232a8,8,0,0,0,8-8V64A8,8,0,0,0,232,56ZM32,64A16,16,0,0,1,48,48h8v96H48a31.82,31.82,0,0,0-16,4.29ZM224,192H48a16,16,0,0,1,0-32H64a8,8,0,0,0,8-8V72H224ZM104,136a8,8,0,0,0,0,16h16v8a8,8,0,0,0,16,0v-8h24v8a8,8,0,0,0,16,0v-8h16a8,8,0,0,0,0-16H176V120h16a8,8,0,0,0,0-16H176V96a8,8,0,0,0-16,0v8H136V96a8,8,0,0,0-16,0v8H104a8,8,0,0,0,0,16h16v16Zm32-16h24v16H136Z"></path></svg>' ,
5660 Type : "marker" ,
61+ LongDescription : `House footprints refer to the outline or ground area covered by a house, typically measured from the exterior walls of the structure. This footprint includes all parts of the house that are in contact with the ground, and is important for planning and zoning purposes, calculating property taxes, and designing land use.` ,
5762 MinZoomLevel : 10 ,
63+ MarkersThreshold : 10 ,
64+ DisplayProperty : "" ,
65+ Tables : [ ] ,
5866 } ,
5967 } ,
6068 {
6169 basicData : {
6270 DatasetId : "actual_use" ,
6371 Name : "Actual Use" ,
64- Description : "The Actual Use (?)" ,
65- Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="#000000" viewBox="0 0 256 256"><path d="M232,56H72V40a8,8,0,0,0-8-8H48A32,32,0,0,0,16,64V176a32,32,0,0,0,32,32H232a8,8,0,0,0,8-8V64A8,8,0,0,0,232,56ZM32,64A16,16,0,0,1,48,48h8v96H48a31.82,31.82,0,0,0-16,4.29ZM224,192H48a16,16,0,0,1,0-32H64a8,8,0,0,0,8-8V72H224ZM104,136a8,8,0,0,0,0,16h16v8a8,8,0,0,0,16,0v-8h24v8a8,8,0,0,0,16,0v-8h16a8,8,0,0,0,0-16H176V120h16a8,8,0,0,0,0-16H176V96a8,8,0,0,0-16,0v8H136V96a8,8,0,0,0-16,0v8H104a8,8,0,0,0,0,16h16v16Zm32-16h24v16H136Z"></path></svg>' ,
66- Tables : [ ] ,
72+ ShortDescription : `The division of the land based on its utilization.` ,
73+ Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M136.83,220.43a8,8,0,0,1-11.09,2.23A183.15,183.15,0,0,0,24,192a8,8,0,0,1,0-16,199.11,199.11,0,0,1,110.6,33.34A8,8,0,0,1,136.83,220.43ZM24,144a8,8,0,0,0,0,16,214.81,214.81,0,0,1,151.17,61.71,8,8,0,1,0,11.2-11.42A230.69,230.69,0,0,0,24,144Zm208,16a216.51,216.51,0,0,0-48.59,5.49q8.24,6.25,16,13.16A201.53,201.53,0,0,1,232,176a8,8,0,0,1,0,16c-6,0-11.93.29-17.85.86q8.32,8.67,15.94,18.14a8,8,0,1,1-12.48,10A247,247,0,0,0,24,128a8,8,0,0,1,0-16,266.33,266.33,0,0,1,48,4.37V80a8,8,0,0,1,3.2-6.4l64-48a8,8,0,0,1,9.6,0l64,48A8,8,0,0,1,216,80v32.49c5.31-.31,10.64-.49,16-.49a8,8,0,0,1,0,16,246.3,246.3,0,0,0-84.26,14.69q9.44,5,18.46,10.78A232.2,232.2,0,0,1,232,144a8,8,0,0,1,0,16ZM120,88h48a8,8,0,0,1,8,8v21.94q11.88-2.56,24-4V84L144,42,88,84v35.81q12.19,3,24,7.18V96A8,8,0,0,1,120,88Zm8.07,45.27A262.48,262.48,0,0,1,160,121.94V104H128v29.24Z"></path></svg>' ,
6774 } ,
68- metaData : {
69- Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="1em " height="1em " fill="#000000" viewBox="0 0 256 256"><path d="M232,56H72V40a8 ,8,0,0,0-8-8H48A32,32, 0,0,0,16,64V176a32,32 ,0,0,0,32,32H232a8,8 ,0,0,0,8-8V64A8, 8,0,0,0,232,56ZM32,64A16,16 ,0,0,1,48,48h8v96H48a31.82,31.82, 0,0,0-16,4.29ZM224,192H48a16 ,16,0,0,1,0-32H64a8, 8,0,0,0,8-8V72H224ZM104,136a8,8,0, 0,0,0,16h16v8a8, 8,0,0,0, 16,0v-8h24v8a8,8 ,0,0,0,16,0v-8h16a8 ,8,0,0,0,0-16H176V120h16a8, 8,0,0,0,0-16H176V96a8, 8,0,0,0-16,0v8H136V96a8, 8,0,0,0-16,0v8H104a8, 8,0,0,0,0,16h16v16Zm32-16h24v16H136Z "></path></svg>' ,
75+ additionalData : {
76+ Icon : '<svg xmlns="http://www.w3.org/2000/svg" width="32 " height="32 " fill="#000000" viewBox="0 0 256 256"><path d="M136.83,220.43a8 ,8,0,0,1-11.09,2.23A183.15,183.15, 0,0,0,24,192a8,8 ,0,0,1,0-16,199.11,199.11,0 ,0,1,110.6,33.34A8,8, 0,0,1,136.83,220.43ZM24,144a8, 8,0,0,0,0,16,214.81,214.81 ,0,0,1,151.17,61.71,8,8,0,1,0,11.2-11.42A230.69,230.69, 0,0,0,24,144Zm208,16a216.51,216.51,0,0,0-48.59,5.49q8.24,6.25 ,16,13.16A201.53,201.53, 0,0,1,232,176a8, 8,0,0,1,0,16c-6,0-11.93.29-17.85.86q8.32,8.67,15.94,18.14a8,8,0,1,1-12.48,10A247,247, 0,0,0,24,128a8, 8,0,0,1,0- 16,266.33,266.33 ,0,0,1,48,4.37V80a8,8,0,0,1,3.2-6.4l64-48a8 ,8,0,0,1,9.6,0l64,48A8,8, 0,0,1,216,80v32.49c5.31-.31,10.64-.49,16-.49a8, 8,0,0,1,0,16,246.3,246.3,0,0,0-84.26,14.69q9.44,5,18.46,10.78A232.2,232.2,0,0,1,232,144a8, 8,0,0,1,0,16ZM120,88h48a8, 8,0,0,1,8,8v21.94q11.88-2.56,24-4V84L144,42,88,84v35.81q12.19,3,24,7.18V96A8, 8,0,0,1,120,88Zm8.07,45.27A262.48,262.48, 0,0,1,160,121.94V104H128v29.24Z "></path></svg>' ,
7077 Type : "marker" ,
78+ LongDescription : `The Actual Use map describes the use of the earth's surface in four main groups (settlement, traffic, vegetation and water bodies). The division of these main groups into almost 140 different types of use, such as residential areas, road traffic, agriculture or flowing water, enables detailed evaluations and analyses of the use of the earth's surface.` ,
7179 MinZoomLevel : 10 ,
80+ MarkersThreshold : 10 ,
81+ DisplayProperty : "" ,
82+ Tables : [ ] ,
7283 } ,
7384 } ,
7485] ;
7586
7687// Iterate over datasets and insert only if DatasetId does not exist
7788datasets . forEach ( ( dataset ) => {
7889 if (
79- ! db . datasets . findOne ( { "basicData.DatasetId" : dataset . basicData . DatasetId } )
90+ ! db . datasets . findOne ( {
91+ "basicData.DatasetId" : dataset . basicData . DatasetId ,
92+ } )
8093 ) {
8194 db . datasets . insertOne ( dataset ) ;
8295 }
0 commit comments