POST
|
[ATTACH=CONFIG]30253[/ATTACH] I can publish map service with the same document before. It only has one shapefile in it.. BUT, don't know why today I only see "Feature Access" in the capabilities. Map service, KML... all the other options DISAPPEARED...!!!! WHY???? Anyone help? weird problems..
... View more
01-04-2014
01:01 PM
|
0
|
2
|
472
|
POST
|
Hello, Thanks for the reply. I'm using ArcGIS server 10.1. I'm pretty sure it supports generate renderer task, because I can even see it while accessing from http://192.168.2.5:6080/arcgis/rest/services/fangming/SOM_DynamicMap/MapServer/0 I'm using the same code in Javascript from the sample. var classDef = new ClassBreaksDefinition();
classDef.classificationField = "attr1";
classDef.classificationMethod = "natural-breaks"; // always natural breaks
classDef.breakCount = 5; // always five classes
classDef.baseSymbol = app.sfs;
var colorRamp = new AlgorithmicColorRamp();
colorRamp.fromColor = new Color.fromHex("#ffffcc");
colorRamp.toColor = new Color.fromHex("#006837");
colorRamp.algorithm = "hsv"; // options are: "cie-lab", "hsv", "lab-lch"
classDef.baseSymbol = new SimpleFillSymbol("solid", null, null);
classDef.colorRamp = colorRamp;
var params = new GenerateRendererParameters();
params.classificationDefinition = classDef;
console.dir("classDef");
console.dir(classDef);
var generateRenderer = new GenerateRendererTask("http://192.168.2.5:6080/arcgis/rest/services/fangming/SOM_DynamicMap/MapServer/0");
generateRenderer.execute(params, applyRenderer, errorHandler);
function applyRenderer(renderer) {
console.dir(JSON.stringify(renderer));
var optionsArray = [];
var drawingOptions = new LayerDrawingOptions();
drawingOptions.renderer = renderer;
optionsArray[2] = drawingOptions;
basemap.setLayerDrawingOptions(optionsArray);
basemap.show();
}
Then I printed out the renderer object as following: {"breaks":[[0.00215526,0.0100578],[0.0100578,0.0181308],[0.0181308,0.0302279],[0.0302279,0.0463656],[0.0463656,0.0627432]],"_symbols":{"0.00215526-0.0100578":{"type":"simplefillsymbol","style":"solid","color":{"r":255,"g":255,"b":204,"a":1}},"0.0100578-0.0181308":{"type":"simplefillsymbol","style":"solid","color":{"r":184,"g":217,"b":130,"a":1}},"0.0181308-0.0302279":{"type":"simplefillsymbol","style":"solid","color":{"r":97,"g":179,"b":72,"a":1}},"0.0302279-0.0463656":{"type":"simplefillsymbol","style":"solid","color":{"r":28,"g":142,"b":45,"a":1}},"0.0463656-0.0627432":{"type":"simplefillsymbol","style":"solid","color":{"r":0,"g":104,"b":55,"a":1}}},"infos":[{"classMaxValue":0.0100578,"label":"0.00216 - 0.01006","description":"","symbol":{"type":"simplefillsymbol","style":"solid","color":{"r":255,"g":255,"b":204,"a":1}},"minValue":0.00215526,"maxValue":0.0100578},{"classMaxValue":0.0181308,"label":"0.01007 - 0.01813","description":"","symbol":{"type":"simplefillsymbol","style":"solid","color":{"r":184,"g":217,"b":130,"a":1}},"minValue":0.0100578,"maxValue":0.0181308},{"classMaxValue":0.0302279,"label":"0.01814 - 0.03023","description":"","symbol":{"type":"simplefillsymbol","style":"solid","color":{"r":97,"g":179,"b":72,"a":1}},"minValue":0.0181308,"maxValue":0.0302279},{"classMaxValue":0.0463656,"label":"0.03024 - 0.04637","description":"","symbol":{"type":"simplefillsymbol","style":"solid","color":{"r":28,"g":142,"b":45,"a":1}},"minValue":0.0302279,"maxValue":0.0463656},{"classMaxValue":0.0627432,"label":"0.04638 - 0.06274","description":"","symbol":{"type":"simplefillsymbol","style":"solid","color":{"r":0,"g":104,"b":55,"a":1}},"minValue":0.0463656,"maxValue":0.0627432}],"attributeField":"attr1","classificationMethod":"natural-breaks","isMaxInclusive":true}
... View more
11-21-2013
05:11 PM
|
0
|
0
|
212
|
POST
|
Hello Everyone and ESRI, I'm trying to change the symbology of a dynamic map layer. It already has the GenerateRendererTask enabled. And actually, I got the renderer object back from GenerateRendererTask, but the color of the map does not change... In the renderer object, there is one field "_symbols", it has all the class breaks and symbol object (including color,style,type). I applied this renderer object to the dynamic map layer using following code app.map.getLayer("som_map").setLayerDrawingOptions(optionsArray);
app.map.getLayer("som_map").show(); Does anyone have any ideas about this? What else I need to check? or Is there any way I can troublshoooooting this? UPDATE: Compared to the renderer object from (http://developers.arcgis.com/en/javascript/sandbox/sandbox.html?sample=renderer_dynamic_layer_change_attribute) which works, I found in my renderer object, it does not have the field "_inherited"...which seems to have a few functions inside. That is probably the problem. But I have no idea about why this happened?????????
... View more
11-19-2013
04:49 PM
|
0
|
2
|
489
|
POST
|
Problem solved. Need to change the setting of mapservice on the server side. Enabling dynamic layers on a map service in Manager
... View more
11-18-2013
05:11 PM
|
0
|
0
|
209
|
POST
|
Anyone got any ideas about this??? Is this an error for ArcGIS server??? HELP Please!!!
... View more
11-18-2013
04:19 PM
|
0
|
0
|
209
|
POST
|
Hello, I met this error when changing the rendere for dynamic layer. I think I did everything right.. Resource interpreted as Image but transferred with MIME type text/plain.."http://...../arcgis/rest/services/.../.../MapSer???581%2C80.57984028028211&bboxSR=32611&imageSR=32611&size=1532%2C250&f=image". app.map = new Map("map"); var basemap = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxx/arcgis/rest/servicesxxxx/MapServer"); app.map.addLayer(basemap); $("#submit").click(function(){ var classDef = new ClassBreaksDefinition(); classDef.classificationField = "attr1"; classDef.classificationMethod = "natural-breaks"; // always natural breaks classDef.breakCount = 10; // always five classes var colorRamp = new AlgorithmicColorRamp(); colorRamp.fromColor = new Color.fromHex("#ffffcc"); colorRamp.toColor = new Color.fromHex("#006837"); colorRamp.algorithm = "hsv"; // options are: "cie-lab", "hsv", "lab-lch" classDef.baseSymbol = new SimpleFillSymbol("solid", null, null); classDef.colorRamp = colorRamp; var params = new GenerateRendererParameters(); params.classificationDefinition = classDef; var generateRenderer = new GenerateRendererTask("http://xxxx/arcgis/rest/services/xxx/xxx/MapServer/0"); generateRenderer.execute(params, applyRenderer, errorHandler); }); function applyRenderer(renderer) { var optionsArray = []; var drawingOptions = new LayerDrawingOptions(); drawingOptions.renderer = renderer; optionsArray[1] = drawingOptions; basemap.setLayerDrawingOptions(optionsArray); basemap.refresh(); }
... View more
11-16-2013
02:03 PM
|
0
|
2
|
312
|
POST
|
Hello, Thanks for the reply. I'm using 10.1 server. I saw the path where I can copy the file over. I thought there might be an option to copy over while publishing the toolbox. Anyway, I can copy the files over myself to the server I guess.
... View more
11-15-2013
04:28 PM
|
0
|
0
|
463
|
POST
|
Hello, I wrote several python classes myself and which is called from a python script in one custom toolbox created myself. It works perfectly in desktop. But when I publish it as a service on arcgis server, it seems like it cannot find the dependency files... What should I do???? HELP!!
... View more
11-13-2013
04:52 PM
|
0
|
5
|
624
|
POST
|
Hello Everyone, I'm very new to ArcGIS-server restapi, but have been using ArcGIS desktop and other web maps for a while. In one of the Buffering javascript api example (http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer), I found one GP service which takes geometres in as parameters and return buffered gemetries as JSon objects. This seems to be very interesting to me. I'm thinking about writing another rest GP service myself, which can take a string parameter and create a bunch of gemetries as Json object. (The reason for that is I'm creating some spatial elements on the fly with users' request) But it's very difficult even to find a place to start... Should I write a python script which can return a Json object and then publish that script as a service? If anyone can give me a hint on where to start, it would be much appreciated!!! Thanks
... View more
11-11-2013
06:08 PM
|
0
|
0
|
1502
|
POST
|
I found that there are many good-looking UI controls in the application framework. One is that with a picture on the left and two lines of texts on the right. I want to know how to use this in my own application, not extended the task class. And I find the extendedlistview and its items classes, but it seems that their properties cannot provide what I need. like: no description property, I cannot control the size of one line view. It should be like the screenshot in the picture I uploaded. Anyone help? Thanks
... View more
03-07-2011
07:43 PM
|
0
|
0
|
1570
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|