????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 13.59.91.46 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/appsrv.astacus.se/XMP/viewerTest/ |
Upload File : |
// var m_markersOnMap; // var m_InforObj = []; // var m_map; // var m_markers_BlueGreenYellow_array; // var m_clusterers_BlueGreenYellow_array; // var m_renderers_BlueGreenYellow_array; // var m_droneProjectId; // var m_projectName; // var m_centerLatLong; // var m_AttributePhotoId; // var m_AttributeAttributeId; // initMap(); // async function initMap() // { // //downloadDroneAttributesInfo(); // //alert("initMap"); // document.getElementById("id_BtnClickShowMarkerOrthographic").addEventListener("click", show_markerOrthoGraphic); // document.getElementById("id_BtnClickShowMarkerPerspective").addEventListener("click", show_markerPerspective); // const params = getUrlVars(); // download_Project_Data(params); // } // /*function downloadDroneAttributesInfo() // { // var url = 'https://appsrv.astacus.se/XMP/viewerTest/get_attributes_info.php?'; // //var url = 'https://appsrv.astacus.se/XMP/viewer/get_data_photos.php?' + "project=44444";//Test2 // $.ajax({ // url: url, // type: 'GET', // success: function (dataString) // { // var resultDict = JSON.parse(dataString); // var resultArray = resultDict['result']; // var eElement = document.getElementById("id_AttributesInfos"); // resultArray.forEach((rowData) => // { // var pACAttributesInfo = new acAttributesInfo(); // pACAttributesInfo.Id = rowData['DronePhotoAttributesId']; // pACAttributesInfo.Attribute = rowData['Attribute']; // m_acAttributesInfos.push(pACAttributesInfo); // var eDiv = document.createElement('div'); // //eDiv.innerHTML = "<a id=id_Attrubute" + pACAttributesInfo.Id + " href='#' onclick=ShowMarkerBasedOnAttribute(" + pACAttributesInfo.Id + ")>" + pACAttributesInfo.Attribute + "</a>" ; // eDiv.innerHTML = "<a id=id_Attrubute" + pACAttributesInfo.Id + " href='#' )>" + pACAttributesInfo.Attribute + "</a>" ; // eElement.append(eDiv); // alert("downloadDroneAttributesInfo"); // //eDiv.addEventListener("click", ShowMarkerBasedOnAttribute(pACAttributesInfo.Id)); // }); // //eElement.innerHTML = "<a id="id_ShowMarkerAttrubute'.m_acAttributesInfos[0].Id .'" href="#" onclick="ShowMarkerBasedOnAttribute('.$obj->DronePhotoAttributesId.');"> '.$obj->Attribute.' </a>"; // }, // error: function (err) // { // alert('Error in getting data'); // } // }); // }*/ // function getUrlVars() // { // var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); // const params = hashes[0]; // return params; // } // async function download_Project_Data(params) // { // var url = 'https://appsrv.astacus.se/XMP/viewer/get_data_project.php?' + params; // jQuery.ajax({ // url: url, // type: 'GET', // success: function (dataString) // { // //alert("download_Project_Data success"); // var resultDict = JSON.parse(dataString); // var resultArray = resultDict['result']; // var rowData = resultArray[0]; // m_droneProjectId = rowData['ProjectId']; // m_projectName = rowData['ProjectId']; // m_centerLatLong = rowData['CenterLatLong']; // m_map = get_Map(); // download_Photos_Data(params); // }, // error: function (err) // { // alert('Error in getting data'); // } // }); // } // async function download_Photos_Data(params) // { // var url = 'https://appsrv.astacus.se/XMP/viewer/get_data_photos.php?' + params; // document.getElementById("id_GoogleMap_Loading").style.visibility = "visible"; // jQuery.ajax({ // url: url, // type: 'GET', // success: function (dataString) // { // m_markersOnMap = []; // var resultDict = JSON.parse(dataString); // var resultArray = resultDict['result']; // resultArray.forEach((rowData) => // { // var droneProjectsId = rowData['DroneProjectsId']; // var dronePhotosId = rowData['DronePhotosId']; // var photoName = rowData['PhotoName']; // var xmlString = rowData['XMP']; // var parser = new DOMParser(); // var xmlDocument = parser.parseFromString(xmlString,"text/xml"); // try // { // var rdfDescription = xmlDocument.firstElementChild.firstElementChild.firstElementChild; // if (rdfDescription != null) // { // var GpsLatitude = rdfDescription.attributes["drone-dji:GpsLatitude"].value; // var GpsLongitude; // var GpsLongtitude; // if (rdfDescription.attributes["drone-dji:GpsLongitude"] != null) // { // GpsLongitude = rdfDescription.attributes["drone-dji:GpsLongitude"].value; // } // else // { // GpsLongtitude = rdfDescription.attributes["drone-dji:GpsLongtitude"].value; // } // var GpsAltitude = 40; // var GimbalRollDegree = rdfDescription.attributes["drone-dji:GimbalRollDegree"].value; // var GimbalYawDegree = rdfDescription.attributes["drone-dji:GimbalYawDegree"].value; // var GimbalPitchDegree = rdfDescription.attributes["drone-dji:GimbalPitchDegree"].value; // var FlightRollDegree = rdfDescription.attributes["drone-dji:FlightRollDegree"].value; // var FlightYawDegree = rdfDescription.attributes["drone-dji:FlightYawDegree"].value; // var FlightPitchDegree = rdfDescription.attributes["drone-dji:FlightPitchDegree"].value; // if(!is_Numeric(GpsLongitude)) // { // GpsLongitude = GpsLongtitude; // } // var file = "https://appsrv.astacus.se/XMP/data/" + m_droneProjectId + "/" + photoName; // var file_low = file;//"https://appsrv.astacus.se/XMP/data/" + m_droneProjectId + "/low/" + photoName; // var fileName = file.substring(0, file.length-3) + 'JPG'; // var fileName_low = fileName;//file_low.substring(0, file_low.length-3) + 'jpg'; // var strArray = { // 'placeName' : fileName, // 'placeName_low' : fileName_low, // 'fligthParameters' : 'FlightRollDegree: ' + FlightRollDegree + // ', FlightYawDegree: ' + FlightYawDegree + // ', FlightPitchDegree: ' + FlightPitchDegree + // ', GimbalRollDegree: ' + GimbalRollDegree + // ', GimbalYawDegree: ' + GimbalYawDegree + // ', GimbalPitchDegree: ' + GimbalPitchDegree, // 'FlightYawDegree' : parseFloat((Math.round(FlightYawDegree)).toString().trim()), // 'GimbalYawDegree' : parseFloat((Math.round(GimbalYawDegree)).toString().trim()), // 'GimbalPitchDegree' : parseFloat((Math.round(GimbalPitchDegree)).toString().trim()), // 'LatLng': [{ // 'lat': parseFloat(GpsLatitude), // 'lng': parseFloat(GpsLongitude), // 'altitude': parseFloat(GpsAltitude), // }], // };//$str // m_markersOnMap.push(strArray); // } // } // catch (e) // { // } // });//forEach // document.getElementById("id_GoogleMap_Loading").style.visibility = "hidden"; // async_initMap_LoadData(); // }, // error: function (err) // { // alert('Error in getting data'); // } // }); // } // async function download_Attribute_Data(params) // { // var url = 'https://appsrv.astacus.se/XMP/viewer/get_data_attribute.php?' + params; // jQuery.ajax({ // url: url, // type: 'GET', // success: function (dataString) // { // var resultDict = JSON.parse(dataString); // var resultArray = resultDict['result']; // var rowData = resultArray[0]; // //Array?? // // m_AttributePhotoId = rowData['PhotoId']; // // m_AttributeAttributeId = rowData['AttributeId']; // }, // error: function (err) // { // alert('Error in getting data'); // } // }); // } // function getValue(rdfDescription, variable) // { // var eObj = rdfDescription.attributes[variable]; // if (eObj == null) // { // return (0); // } // return eObj.value; // } // function is_Numeric(num) { // return !isNaN(parseFloat(num)) && isFinite(num); // } // async function async_initMap_LoadData() // { // m_clusterers_BlueGreenYellow_array = []; // m_renderers_BlueGreenYellow_array = []; // const centerPosition = get_CenterOfAllMarkers(); // m_map.setCenter(centerPosition); // m_map.setZoom(16); // const infoWindow = get_InfoWindow(); // m_markers_BlueGreenYellow_array = get_Markers(infoWindow); // m_renderers_BlueGreenYellow_array.push(getRenderer("blue")); // const clustererBlue = new markerClusterer.MarkerClusterer({ // map: null, // markers: m_markers_BlueGreenYellow_array[0], // renderer: m_renderers_BlueGreenYellow_array[0], // algorithmOptions: { maxZoom: 19, ignoreHidden: true}, // }); // m_clusterers_BlueGreenYellow_array.push(clustererBlue); // m_renderers_BlueGreenYellow_array.push(getRenderer("green")); // const clustererGreen = new markerClusterer.MarkerClusterer({ // map: null, // markers: m_markers_BlueGreenYellow_array[1], // renderer: m_renderers_BlueGreenYellow_array[1], // algorithmOptions: { maxZoom: 19, ignoreHidden: true}, // }); // m_clusterers_BlueGreenYellow_array.push(clustererGreen); // m_renderers_BlueGreenYellow_array.push(getRenderer("yellow")); // const clustererYellow = new markerClusterer.MarkerClusterer({ // map: null, // markers: m_markers_BlueGreenYellow_array[2], // renderer: m_renderers_BlueGreenYellow_array[2], // algorithmOptions: { maxZoom: 19, ignoreHidden: true}, // }); // m_clusterers_BlueGreenYellow_array.push(clustererYellow); // m_clusterers_BlueGreenYellow_array[0].setMap(m_map); // m_clusterers_BlueGreenYellow_array[1].setMap(m_map); // m_clusterers_BlueGreenYellow_array[2].setMap(m_map); // } // /*function getRenderer(colorCluster) // { // let renderer = { // render({ count, position }, stats) { // const svg = `<svg fill="${colorCluster}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50"> // <circle cx="120" cy="120" opacity=".6" r="70" /> // <circle cx="120" cy="120" opacity=".3" r="90" /> // <circle cx="120" cy="120" opacity=".2" r="110" /> // <text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${count}</text> // </svg>`; // return new google.maps.Marker({ // label: { text: String(count), color: "white", fontSize: "12px" }, // position, // icon: { // url: `data:image/svg+xml;base64,${svg}`, // scaledSize: new google.maps.Size(60, 60), // }, // zIndex: Number(google.maps.Marker.MAX_ZINDEX) + count, // }); // } // }; // return (renderer); // }*/ // function getRenderer(colorCluster) // { // let renderer = { // render({ count, position }, stats) { // const svg = window.btoa(` // <svg fill="${colorCluster}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"> // <circle cx="120" cy="120" opacity="0.7" r="70" /></svg>`); // return new google.maps.Marker({ // label: { text: String(count), color: "white", fontSize: "12px" }, // position, // icon: { // url: `data:image/svg+xml;base64,${svg}`, // scaledSize: new google.maps.Size(60, 60), // }, // zIndex: Number(google.maps.Marker.MAX_ZINDEX) + count, // }); // } // }; // return (renderer); // } // function get_Markers(infoWindow) // { // var markersBlueGreenYellow_local = [[], [], []]; // m_markersOnMap.forEach((markerInfo, index) => { // var contentString = '<div id="content"><a href="' + markerInfo.placeName +'"><img src="'+ markerInfo.placeName_low + '" width="500"></a><br> </div>'; // var angleDegrees = parseInt(markerInfo.FlightYawDegree)-0; // var GimbalPitchDegree = parseInt(markerInfo.GimbalPitchDegree); // var fillColor = GetFillColor(GimbalPitchDegree); // const marker = addMarker(fillColor, angleDegrees, index); // if (fillColor == 'blue') // { // markersBlueGreenYellow_local[0].push(marker); // } // else if (fillColor == 'green') // { // markersBlueGreenYellow_local[1].push(marker); // } // else if (fillColor == 'yellow') // { // markersBlueGreenYellow_local[2].push(marker); // } // addListener(marker, infoWindow, contentString); // }); // return (markersBlueGreenYellow_local); // } // /*function get_Markers(map, infoWindow) // { // const markers = m_markersOnMap.map((markerInfo, index) => { // var contentString = '<div id="content"><a href="' + markerInfo.placeName +'"><img src="'+ markerInfo.placeName_low + '" width="500"></a><br> </div>'; // var angleDegrees = parseInt(markerInfo.FlightYawDegree)-0; // var GimbalPitchDegree = parseInt(markerInfo.GimbalPitchDegree); // var fillColor = GetFillColor(GimbalPitchDegree); // const marker = addMarker(map, fillColor, angleDegrees, index); // addListener(map, marker, infoWindow, contentString); // return marker; // }); // return (markers); // }*/ // function get_CenterOfAllMarkers() // { // var lat = 0; // var lng = 0; // m_markersOnMap.map((markerInfo, index) => { // lat += markerInfo.LatLng[0].lat; // lng += markerInfo.LatLng[0].lng; // }); // const center = { lat: (lat / m_markersOnMap.length), lng: (lng / m_markersOnMap.length)}; // return (center); // } // function get_Map() // { // var splitArray = m_centerLatLong.split(','); // var lat = parseFloat(splitArray[0].trim()); // var longg = parseFloat(splitArray[1].trim()); // var centerLatLong = {lat:lat, lng: longg}; // const map = new google.maps.Map(document.getElementById("id_GoogleMap"), // { // zoom: 5.3,//16//18 // center: centerLatLong, // mapTypeId: 'satellite', // mapId: "DEMO_MAP_ID", // gestureHandling: 'greedy',//to disable ctrl + scroll to zoom the map error // zoomControl: true, // zoomControlOptions: { // position: google.maps.ControlPosition.LEFT_TOP, // }, // }); // return (map); // } // function get_InfoWindow() // { // const infoWindow = new google.maps.InfoWindow({ // content: "", // maxWidth: 600, // }); // return (infoWindow); // } // function GetFillColor(GimbalPitchDegree) // { // var fillColor = "white"; // GimbalPitchDegree = Math.abs(GimbalPitchDegree); // if(GimbalPitchDegree < 0 && GimbalPitchDegree >= 22.5){ // fillColor = "yellow"; // }else if(GimbalPitchDegree < 22.5 && GimbalPitchDegree >= 45){ // fillColor = "blue"; // }else if(GimbalPitchDegree < 45 && GimbalPitchDegree >= 67.5){ // fillColor = "green"; // }else if(GimbalPitchDegree >= 90){ // fillColor = "green"; // } // return (fillColor); // } // function addMarker(fillColor, angleDegrees, index) // { // const position = m_markersOnMap[index].LatLng[0]; // const marker = new google.maps.Marker({ // position: position, // map: m_map, // icon: { // path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW, // scale: 6, // fillColor: fillColor, // fillOpacity: 0.8, // strokeWeight: 2, // rotation: angleDegrees // } // }); // return (marker); // } // function addListener(marker, infoWindow, contentString) // { // marker.addListener("click", () => { // closeOtherInfo(); // infoWindow.setContent(contentString); // infoWindow.open(m_map, marker); // m_InforObj[0] = infoWindow; // }); // } // function closeOtherInfo() // { // if (m_InforObj.length > 0) // { // m_InforObj[0].set("marker", null); // m_InforObj[0].close(); // m_InforObj.length = 0; // } // } // function show_markerOrthoGraphic() // { // m_clusterers_BlueGreenYellow_array[0].clearMarkers(); // m_clusterers_BlueGreenYellow_array[1].addMarkers(m_markers_BlueGreenYellow_array[1]); // if (m_selectedcAttributeId != null) // { // alert("show_markerOrthoGraphic: " + m_selectedcAttributeId); // } // } // function show_markerPerspective() // { // m_clusterers_BlueGreenYellow_array[1].clearMarkers(); // m_clusterers_BlueGreenYellow_array[0].addMarkers(m_markers_BlueGreenYellow_array[0]); // } // /*function ShowMarkerBasedOnAttribute(attributeid) // { // alert("Only show markers with ID: "+attributeid); // }*/