|
POST
|
wish I had the money....pretty expensive extension/.
... View more
02-21-2017
10:05 AM
|
1
|
0
|
467
|
|
POST
|
Right now the data is on a different server than my install of SDE...I imagine if I create a View in the SDE server over to the other server with the data I am going to take a performance hit. Would I create a spatial view publish that? But with the data on another server I think the performance will suffer?
... View more
02-15-2017
12:36 PM
|
0
|
0
|
3429
|
|
POST
|
So If I have a SQL view of the data. How do I publish that into a feature service? I have X and Y , and other fields. Looked into GeoEvent but thats a little out of my price range right now.
... View more
02-15-2017
12:27 PM
|
0
|
0
|
3429
|
|
POST
|
Wait....cant i simply make a spatial view from the data itself and publish that to a webservice? Set some sort of refresh of the rendering in the app?
... View more
02-15-2017
10:50 AM
|
0
|
1
|
3429
|
|
POST
|
Doing research this does not seem that hard to do....my only real issue is getting the data in the view to something readable by "FeatureCollection" which I think just creates a graphics layer right? I guess json is the way to go? I assume the asp/net webservice runs every X amount of time recreating the json file? Upon refresh the json files is rendered...how is this automated? Does it work on the fly or upon refresh?
... View more
02-15-2017
10:37 AM
|
0
|
0
|
3429
|
|
POST
|
Looking for any thoughts or comments on displaying AVL location data in Javascript. I am looking to display 10+ vehicles by vehicle number, BUT only the most recent recorded position. The SQL View I have has all the records but just want the newest. This SQL Data also has the XY coordinate. I do not have this in a Map Service at this point. Just starting and looking for ideas. Can I do this from a SQL View? Do I need to have a Map Service? Can I have to option of displaying the last 5 hrs, or 20 hrs etc. Has anyone done this before? Please Help
... View more
02-15-2017
10:10 AM
|
0
|
10
|
5720
|
|
POST
|
Got it increase to 8 and we are good. var XCoordMap= (mp.x.toFixed(8)); var YCoordMap = (mp.y.toFixed(8));
... View more
02-09-2017
10:20 AM
|
1
|
0
|
956
|
|
POST
|
I am using the code below to capture the XY coordinates when a user clicks on the map. How can I adjust this for more significant digits? Getting 36.25 I want 36.2545241 map = new Map("map", {
basemap: "topo",
center: [-78.728, 37.649],
zoom: 6
});
map.on("load", function() {
//after map loads, connect to listen to mouse move & drag events
map.on("click", showCoordinates2);
});
function showCoordinates2(evt) {
//the map is in web mercator but display coordinates in geographic (lat, long)
var mp = webMercatorUtils.webMercatorToGeographic(evt.mapPoint);
var XCoordMap= (mp.x.toFixed(3));
var YCoordMap = (mp.y.toFixed(3));
var XYCoordMap = (XCoord + ", " + YCoord);
document.getElementById("XCoord").value = (XCoordMap);
document.getElementById("YCoord").value = (YCoordMap);
}
... View more
02-09-2017
10:15 AM
|
0
|
1
|
1638
|
|
POST
|
Thanks for all your help....much appreciated...don't code for a while and you loose it.... Cheers
... View more
02-09-2017
08:26 AM
|
0
|
1
|
1829
|
|
POST
|
Total Code that is working.... ONLY THING you have to do is point to the appropriate Map Service with your single polygon. It accepts UTM Zone 17N, UTM Zone 18N, DD, DMS, DDM, and a Map Click
... View more
02-09-2017
08:15 AM
|
2
|
0
|
609
|
|
POST
|
Not sure how to mark this as "Mark Correct" as you have posted many things to a large issue. I want to give you credit but also want to post the entire working code....not sure which one to mark as correct
... View more
02-09-2017
08:10 AM
|
0
|
3
|
1830
|
|
POST
|
I really want to get this working and use the geometry service...I am stumped... Int he mean time I just did this manually...converting the DMS and DDM coordinates manually and then pushing them into the Polygon.Contains Obviously I have some error trapping to do but that will come... If you have any more ideas why I am getting errors with your example please let me know. }else if(document.getElementById('DMS').checked) {
var [a, b, c] = XValue.split(' ');
var DegreeX = Number(a);
var MinuteX = Number(b);
var SecondX = Number(c);
var XValue = DegreeX + MinuteX/60 + SecondX/3600
var [d, e, f] = YValue.split(' ');
var DegreeY = Number(d);
var MinuteY = Number(e);
var SecondY = Number(f);
var YValue = DegreeY + MinuteY/60 + SecondY/3600
//alert(XValue + " " + YValue);
var DMSX = XValue
var DMSY = YValue
var TextBoxpnt = new Point((DMSX), (DMSY));
}else if(document.getElementById('DDM').checked) {
var [a, b] = XValue.split(' ');
var DegreeX = Number(a);
var MinuteX = Number(b);
var XValue = MinuteX/60 + DegreeX
var [d, e] = YValue.split(' ');
var DegreeY = Number(d);
var MinuteY = Number(e);
var YValue = MinuteY/60 + DegreeY
//alert(XValue + " " + YValue);
var DDMX = XValue
var DDMY = YValue
var TextBoxpnt = new Point((DDMX), (DDMY));
}
... View more
02-08-2017
10:55 AM
|
0
|
0
|
1829
|
|
POST
|
I tried to create an array from the string and got the below error: Entering Coordinates into input boxes as such: 76 0 51.2 36 25 47.25 error: Error: Unable to complete operation var XValue2 = document.getElementsByName('XCoord')[0].value
//alert(XValue2);
var YValue2 = document.getElementsByName('YCoord')[0].value
var GPSPoint = XValue2 + "," + YValue2
var temp = new Array();
temp = GPSPoint.split(",");
alert(temp);
var params = {
conversionType: "DMS",
sr: new SpatialReference({ wkid:4326}),
strings: [temp]
};
geometryService.fromGeoCoordinateString(params, function(result){
alert(result.coordinates);
}, function(error){
alert(error);
});
... View more
02-08-2017
09:14 AM
|
0
|
1
|
1829
|
|
POST
|
I added [ ] in the geometry service and it worked....so looks like the string I am passing it...trying to add [ ] now Nope...tried this and still no go var XValue2 = document.getElementsByName('XCoord')[0].value var YValue2 = document.getElementsByName('YCoord')[0].value var GPSPoint = "[" + XValue2 + "," + YValue2 + "]" var params = { conversionType: "DMS", sr: new SpatialReference({ wkid:4326}), strings: [GPSPoint] }; geometryService.fromGeoCoordinateString(params, function(result){ alert(result.coordinates); }, function(error){ alert(error); });
... View more
02-08-2017
09:06 AM
|
0
|
2
|
1829
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|