POST
|
Hello everyone, We came up with a problem with our ArcGIS Server 10.1. Looking at the Log files, we saw a huge amount of rows with this error: Major 2.36.24 10/01/14 2.36.24 10/01/14 XXXXX GEOINTAPP AppLog server-20130807.205033-4416-0.0.log <Msg time="2014-01-10T02:36:25,976" type="SEVERE" code="9003" source="Rest" process="4352" thread="18" methodName="" machine="XXXXXX" user="" elapsed="">Unable to process request. Dangling meta character '*' near index 27 Everything is working perfectly, but we just want to know if it is something to worry about or not. Thanks you in advance for your help. Bye. Marco.
... View more
01-09-2014
11:56 PM
|
0
|
1
|
2108
|
POST
|
this is not currently possible. here's the associated enhancement request. [NIM079605: Add support to LayerDrawingOptions for labelingInfo property in JavaScript API] Hi john, Do you have an idea when this requirement will be implemented in the JSApi? I have seen that in the FlexAPI it is already available. (is there a way to implement this functionality by our own using the rest api?) Thanks Marco
... View more
05-06-2013
08:04 AM
|
0
|
0
|
322
|
POST
|
Hi John, unfortunately, showLabels isnt' enough for me. I would like to change the labels expression in order to change the field used for Labelling. I've see that in the REST API there is a JSON structure in order to define the Label Style. How can I set this value into the Dynamic Layer?
{
"labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal",
"labelExpression": "[TAG]",
"useCodedValues": false,
"symbol": {
"type": "esriTS",
"color": [78,78,78,255],
"backgroundColor": null,
"borderLineColor": null,
"verticalAlignment": "bottom",
"horizontalAlignment": "left",
"rightToLeft": false,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"font": {
"family": "Arial",
"size": 12,
"style": "normal",
"weight": "bold",
"decoration": "none"
}
},
"minScale": 1999,
"maxScale": 0,
"where": ""
}
Thanks Marco for 10.1 dynamic layers you can decide whether or not you'd like to show labels by setting the showLabels property of the LayerDrawingOptions class
... View more
04-16-2013
01:06 AM
|
0
|
0
|
322
|
POST
|
Hi, is it possibile to specify the labelling info for a Dynamic Layer? I've a page where the user select a column and a class break renderer is generated upon that column. The problem is that the user doesn't see a label specifying the value of each polygon. how can I solve this problem? Regards Marco
... View more
04-15-2013
09:59 AM
|
0
|
4
|
692
|
POST
|
Hi all, I'm trying to print with a definition query. It not works. So I've downloaded this sample: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/widget_print and tried to apply a definition query on the census block layer. It works perfectly. So the problem might be my layer or something on the server. There is something that must be done on the layer in order to print it with a definition query? Regards Marco EDIT: I've found the problem. I think it is a BUG of ArcGis Server. The MapServer has enabled the option 'Allow per request modification of layer order and symbology'. After disabling it I can print with the layer definition.
... View more
02-26-2013
05:54 AM
|
0
|
0
|
571
|
POST
|
Hi everyone, is it possibile to create a UniqueValueRenderer using an array of values? Something like this:
var info = {
value: [1778,1779],
symbol: new esri.symbol.SimpleFillSymbol().setColor(new dojo.Color([256,0,0]))
};
var renderer = new esri.renderer.UniqueValueRenderer(defaultSymbol, "O");
renderer.infos = [info];
I have a layer with about 3000 polygons and I need to add tree type of symbols (red, yellow and green) based on a value coming from a database. PS. With ArcGis Dekstop this thing is possibile using the groups in the Unique Value Symbology. Thanks in advance Marco
... View more
02-26-2013
01:30 AM
|
1
|
3
|
4376
|
POST
|
Hi everyone, I'm trying to remove a layer using the 'removeMapLayerWithName' function, but I receive the following error:
'Cannot remove an observer <AGSDynamicMapServiceLayer 0x541dde0> for the key path "dpi" from <AGSDynamicMapServiceLayer 0x541dde0> because it is not registered as an observer.'
Anyone knows how to solve it? Thanks Marco
... View more
07-12-2011
09:48 AM
|
0
|
5
|
2035
|
POST
|
Use this way:
AGSMapServiceInfo *serviceInfo = [[AGSMapServiceInfo alloc] initWithURLSynchronous:[NSURL URLWithString:aLayer.url]];
AGSDynamicMapServiceLayer *dynLayer = [[AGSDynamicMapServiceLayer alloc] initWithMapServiceInfo:serviceInfo];
so when you access to dynLayer.mapServiceInfo it will be not empty.
... View more
08-18-2010
08:06 AM
|
0
|
0
|
690
|
POST
|
Once you have your queryTask dictionary, you could do something like this , NSString * s= [MyDictionary objectForKey : @"NUMBER_DATA"] ; double myNumber = [s floatValue] ; or [s intvalue] ; Is this what you are trying to do ?? Well, yes and no 🙂 The fact is that I don't know which are the fields that have numeric values, and I can't use your method because I may have a field with some unique codes like 1/2/3 or L1/L2/L3 together. So I have to check all rows to be sure that all are numeric. Actually I did a workaround. I do a request with f=json to the mapservice. I also have seen that ArcGIS library implements SBJson library to parse the json to NSDictionary. I can then use the JSONValue method from the NSString object and finally get the "fields" attribute from the json data. With the fields list I filer only those with type like esriFieldTypeDouble, esriFieldTypeInteger , esriFieldTypeSmallInteger,esriFieldTypeSingle . And now I can present a list with only the fields that I'm sure have only numbers.
... View more
08-18-2010
08:02 AM
|
0
|
0
|
230
|
POST
|
Hi, I'm looking for a way to get the fields types of a map service layer. I've found inside the AGSFeatureLayer class (undocumented) that there are the properties that can solve my problem, but I don't know to use it. I just want to read the types of the fields because I have to sum the numeric fields. When I do a query task the resulting NSDictionary has all strings, but I know that some of them are numeric. I have to do a url request to get the json representation of the layer? Or I can use the AGSFeatureLayer? Thanks Marco
... View more
08-16-2010
12:48 PM
|
0
|
2
|
2319
|
POST
|
i think you have not set the delegate that's why you are not getting the event callbacks, put the below line in yur code before the query agp.delegate = self ; I did it 😞 These are the lines before the code i've posted yesterday.
AGSGeoprocessor *agp = [[AGSGeoprocessor alloc] initWithURL:[NSURL URLWithString:kAsyncGPService]];
agp.delegate = self;
agp.interval = 5;
I think that the problem are the parameters in the Dictionary. But I don't know why. They are all GPString except the GPFeatureSetLayer for the point.
... View more
08-12-2010
08:15 AM
|
0
|
0
|
347
|
POST
|
What a stupid error 😛 I was too tired. Ty 😉 any way... I'm trying to run a geoprocessor but I can't make it works. After setting the parameters and submitting the job I don't get any message back. No didSubmitJobWithId or jobDidFail or jobDidSucceed. How can I find the problem? is there a way to get the error message? Here there is my code:
AGSGraphic *punto = [[AGSGraphic alloc] initWithGeometry:[[AGSPoint alloc] initWithX:1024282 y:5694813 spatialReference:sr]
symbol:nil
attributes:[NSDictionary dictionaryWithObjectsAndKeys:
@"1", @"ID",
nil]
infoTemplate:nil];
NSMutableArray *features = [[NSMutableArray alloc] init];
[features addObject:punto];
AGSFeatureSet *fset = [[AGSFeatureSet alloc] initWithDisplayFieldName:@"ID"
features:features
fieldAliases:nil
spatialReference:sr
geometryType:AGSGeometryPoint];
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
@"1200", @"Drive_Time_Value",
@"Length", @"Impedance_attribute",
fset,@"Input_Facilities",
@"TRAVEL_FROM",@"Travel_from_or_to_facility",
@"NO_MERGE",@"Merge_polygons_with_similar_ranges",
@"RINGS",@"Polygon_nest_option",
@"ALLOW_UTURNS",@"U-turn_policy",
@"Oneway",@"Restrictions",
nil];
// submit the job
[agp submitJobWithParameters:params];
// cleanup alloc'd objects
[sr release];
[agp release];
thanks 🙂 Marco
... View more
08-11-2010
05:06 PM
|
0
|
0
|
347
|
POST
|
Hi everyone, I'm trying to pass a AGSFeatureSet with a single point to an AGSGeoprocessor which takes as input a GPFeatureRecordSetLayer parameter:
NSMutableArray *features = [NSMutableArray array];
[features addObject:currentPoint];
AGSFeatureSet *fset = [[AGSFeatureSet alloc] init];
fset.features = features;
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
@"Input_Facilities",fset,
nil];
but I receive the following error when I fill the Dictionary with the fset variable.
'*** -[AGSFeatureSet copyWithZone:]: unrecognized selector sent to instance 0x4e47270'
which means that the AGSFeatureSet doesn't support the NSCopying protocol. What I missing o mistaking? Thanks in advance for you help. Marco
... View more
08-09-2010
04:25 PM
|
0
|
6
|
757
|
POST
|
Hi, is there a way to set the layer transparency? Thanks Marco [SOLUTION] AGSTiledLayerView *basemapView = [self.mapView.mapLayerViews objectForKey:@"layerName"]; basemapView.alpha = alpha;
... View more
08-06-2010
02:49 PM
|
0
|
1
|
548
|
Title | Kudos | Posted |
---|---|---|
1 | 02-26-2013 01:30 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|