|
POST
|
Ingrid - did you ever resolve this - I've hit similar issues Secure services - printing - 4 years on and still no luck Cheers ACM
... View more
12-18-2015
04:38 AM
|
0
|
1
|
1668
|
|
POST
|
No, it fails with different error depending on if the PrintService is set to sync or async - I'll try to read up on how to code for async.
... View more
12-18-2015
01:26 AM
|
0
|
0
|
1061
|
|
POST
|
Every few years I make an attempt to lock my services down, every few years I fail. I go round in the same circles, but do make a little progress each time. I've now go most things working. The Proxy page passes through a user name and password for the services. this even works for my loop which gets extra stuff using an esri.request. The bit that fails now is Printing. I've followed ArcGIS Help (10.2, 10.2.1, and 10.2.2) but now get Error: Unable to complete operation. If I take the URL that I see in Fiddler, it is something like http://My Domain for the applciation/proxy/proxy.ashx?http://My ArcGIS Server server/arcgis/rest/services/ExportWebMap2/GPServer/Export%20Web%20Map/execut… It seems to work - I get { "results": [{ "paramName": "Output_File", "dataType": "GPDataFile", "value": {"url": ""} }], "messages": [] } If I set the Print Service to asynchronous I get similar issues to her http://stackoverflow.com/questions/12431283/esri-javascript-asynchronous-print - but I'm not sure how to tweak the printTask.execute for aync Any help much appreciated - this is one of my tasks I am trying to use to fill in time before the holidays. Cheers ACM
... View more
12-17-2015
07:22 AM
|
0
|
2
|
3556
|
|
POST
|
Hi I'm just about to deploy a iPad to a user, to replace his iPhone after we've proved the concept of Collector. However, when I hit the Cloud thingy to download the data for offline use, it takes forever, I'm guessing because it is downloading all the photos he has taken on his iPhone version of Collector and attached to features. Is there a way around this? Cheers ACM
... View more
12-14-2015
04:08 AM
|
0
|
0
|
2063
|
|
POST
|
OK - has anyone else, anywhere in the world, installed ArcGIS 10.x on the virtualized environment from Vmware now called App Volumes - previously Cloud Volumes?? We are trying to do so. Everything seems to run ok EXCEPT for background geoprocessing, which takes over an hour for a simple buffer, but after this, if the same tool is run a second time, it takes seconds. As long as the session isn't closed. There seems very little online about anyone trying to do this. So are we the first? ACM
... View more
10-15-2015
06:03 AM
|
0
|
2
|
3523
|
|
POST
|
I can do this in desktop - see arcgis 10.0 - How can a place a point symbol on the center of a polygon? - Geographic Information Systems Stack Exchange But this will not go over to AGS, it moans about the symbology not being supported. The ability to do this is important as for a map that is zoomed out to our full district it is hard/impossible to see small polygon features. Having a symbol in the middle of set point size is a good way around tis. Any ideas how to achieve this in AGS? Cheers ACM Answer - sort of. I set a label on this layer. I used a Shield Type label, but changed from a shield to the symbol I wanted. I picked a random field for the lable and set the font colout to "no colour" this seems to have worked - the only issue is that this centre marker isn't then shown as part of the legend, so open to better suggestions.
... View more
08-04-2015
08:25 AM
|
0
|
0
|
2214
|
|
POST
|
Things are a lot better now. I stripped things right back, removed any CORS related stuff from any web.config files (I had a few at different levels of the site) and ensured that the settings were only specifed in one location - I can't pinpoint what I did, as it was a case of trying loads of stuff at random. I still don't know which part of the server was rejecting it, the calling page or the site being called.
... View more
06-03-2015
08:37 AM
|
0
|
0
|
2228
|
|
POST
|
Thanks for looking at this, however this project is below others n my list - as soon as I am back on it I'll get those answers - all those points seem a good way to approach it. My gut instinct is that the issue is with AGOL not collector, so maybe a different "place" may be a better place to ask this. Cheers
... View more
05-06-2015
01:26 AM
|
0
|
0
|
361
|
|
POST
|
I'm pretty sure the answer is no, but I have a Collector layer that involves scoring Trees, so 1-10 for Artistic Interpretation, 1-10 for Style and 1-10 for the Evening Wear round. If the score is above, say, 15, some other stuff needs collecting. Any ideas how to do this in Collector? Or do my users just need to add three numbers in their heads? ACM
... View more
04-17-2015
05:00 AM
|
0
|
1
|
3116
|
|
POST
|
Has anyone had any bright ideas regarding this one in the last 6 months?
... View more
04-17-2015
04:25 AM
|
0
|
2
|
3015
|
|
POST
|
Also, I think I am confused over what server needs what, or rather what part of the same server needs what. I have my AGS component. That runs on the default website of IIS . It has a web.config and settings in IIS. Then there is my application. On the same server, but a different site in IIS. That also has its settings and (potentially) a web.config. I have tried all sorts of combinations of edits to web.config and either the page fails totally with a http 500, it fails with The 'Access-Control-Allow-Origin' header contains multiple values 'http://applicationservername, *', but only one is allowed. Or the other error above. I am really bashing head against wall here.
... View more
03-26-2015
09:30 AM
|
0
|
2
|
2228
|
|
POST
|
I'm using 10.2.2 and I believe it is all enabled - the same results occur when I strip the code out and have no AGS component. OK - also tested it in IE - it gave me an alert about loading stuff outside of control, but loaded OK (failed elsewhere, but that my problem) Firefox gave Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://<<server name>>/arcgis/rest/services/test/emap2/MapServer/22/2006/attachments/6/index.html. This can be fixed by moving the resource to the same domain or enabling CORS. So, assuming I haven't got CORS enabled - how do I? I have read about this for several years now, and yet found a simple answer. I have <customHeaders> <add name="Access-Control-Allow-Origin" value="*"/> </customHeaders> In my webconfig. Cheers ACM
... View more
03-26-2015
02:30 AM
|
0
|
3
|
2228
|
|
POST
|
I thought I had seen the last of these. However, I am trying to retrieve the EXIF metadata of attached images using this code jseidelin/exif-js · GitHub - it works when I run the example page and load in the full URL of the images returned via a " featureLayer.queryAttachmentInfos" command. However, the AGS server being a different domain to my site hits CORS issues - which I thought I had sorted by changes to web.config and adding the server name in with a "esri.config.defaults.io.corsEnabledServers.push" However, when I try to retrieve the data using a simple function for (index = 0; index < attachmentPath.length; ++index) {
var image = new Image();
image.src = attachmentPath[index];
image.onload = function () { // always fires the event.
EXIF.getData(this, function () {
console.debug(this)
var make = EXIF.getTag(this, "Make"),
model = EXIF.getTag(this, "Model");
alert("I was taken by a " + make + " " + model);
});
};
....do stuff with the info returned
} I get XMLHttpRequest cannot load http://<<server name>>/arcgis/rest/services/test/emap2/MapServer/22/2009/attachments/8. Request header field If-Modified-Since is not allowed by Access-Control-Allow-Headers. All other requests to resources using the server name seem fine. I'm stumped. All I want to do is to know which way up to display the attachments!
... View more
03-25-2015
05:47 AM
|
0
|
6
|
7938
|
|
POST
|
This one has cursed me for years - I've still not really sorted it adding require(["esri/config"], function (esriConfig) {
esri.config.defaults.io.corsEnabledServers.push("eddc-gis2");
}); helps for files that use the API - but I still get it when I create simple pages - the problem is no-one has given me an answer in simple terms what to check for - plus there is at least one Chrome issue logged that indicates this is a misleading error message.
... View more
03-13-2015
06:37 AM
|
0
|
1
|
2301
|
|
POST
|
see Find attachments using task in JavaScript API But I've sort of moved on, so I thought I'd open a new thread. So, (as every sentence has to start with "so" these days) I am detecting if my layers have attachments on load with a call to the REST thingy, this is stored in an array, with the array index matching the LayerID When I go through the records returned in the results dataset of an ID task, I check the layerID of returned record against this array and if it has attachments I then do stuff. That's my first issue. I used something like this if (layerHasAttachments) {
objectId = results.feature.attributes.OBJECTID;
t = mapservice2 + "/" + results.layerId.toString();
featureLayer = new esri.layers.FeatureLayer(t, {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND
});
//use queryAttachmentInfos to return into array the path of each attachment
featureLayer.queryAttachmentInfos(objectId, function (infos) {
if (infos.length > 0) {
for (index = 0; index < infos.length; ++index) {
attachmentPath.push(infos[index].url)
}
}
console.debug(2);
}
);
console.debug(3);
} However, the code carried on before the results came in -0 I get my debug 3, before my debug 2 - so I have issues then deciding if action is needed if a feature has an attachment. - So, first issue, how can I wait for the info from the "queryAttachmentInfos" before moving on? I had to move on, so every feature in that is in the results dataset that is in a layer that is enabled for attachments has a button next to the result. This opens a popup where I show the photos (currently we only have photos, so I haven't done the code to detect attachment type). My code is featureLayer.queryAttachmentInfos(objectId, function (infos) {
imagePopupHTML = "<!DOCTYPE html><html xmlns='http://www.w3.org/1999/xhtml\'><head><title></title></head>'";
if (infos.length > 0) {
for (index = 0; index < infos.length; ++index) {
attachmentPath.push(infos[index].url)
console.debug(infos[index])
}
}
for (index = 0; index < attachmentPath.length; ++index) {
imagePopupHTML += "<a href='" + attachmentPath[index] + "'>"
imagePopupHTML += "<img src='" + attachmentPath[index] + "' style='width:600px'></a></br>"
}
imagePopupHTML += "<body></body></html>"
OpenWindowThumb = window.open("", "thumb", "height=" + popY + ", width=" + popX + ",toolbar=no,scrollbars=yes,menubar=no,resizable=yes");
OpenWindowThumb.document.getElementsByTagName('body')[0].innerHTML = 'Please Wait';
OpenWindowThumb.focus()
OpenWindowThumb.document.getElementsByTagName('body')[0].innerHTML = '';
OpenWindowThumb.document.write(imagePopupHTML);
}
);
So I get the URL and fling it into an basic HTML page - not elegant, but I am pushed for time and needed to show people that field collected data from Collector can be seen in the office in our browser mapping. If I use the raw URL for an image in Chrome, it detects the orientation. IE doesn't. So I am guessing that some metadata is stored with the image. I have failed totally in getting it. I tried a few add on chunks of code, but they didn't return what I was after. So, that's the next question - Is it possible to query the server to get image rotation info (and other metadata) Many thanks ACM
... View more
03-10-2015
09:05 AM
|
0
|
0
|
2984
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2026 12:29 AM | |
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|