POST
|
Thanks your reply! And I tried your suggestion, but the value of the variable 'VertexCount' didn't change when I changed the value of MaxAllowableOffset(Even set it as zero). The code as below: --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- string featureLayerUrl = " http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer/3"; FeatureLayer mFeatureLayer = new ESRI.ArcGIS.Client.FeatureLayer(); mFeatureLayer.Url = featureLayerUrl; mFeatureLayer.MaxAllowableOffset=861; MyMap.Layers.Add(mFeatureLayer); mFeatureLayer.Initialized += new EventHandler<EventArgs>(StartTimer); mFeatureLayer.UpdateCompleted += new EventHandler(FeatureLayer_UpdateCompleted); void FeatureLayer_UpdateCompleted(object sender, EventArgs e) { VertexCount = (from c in (from b in (from a in mFeatureLayer.Graphics select a.Geometry as ESRI.ArcGIS.Client.Geometry.Polygon) select b.Rings) select c.Count).Sum(); } --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- I think the value of the VertexCount is the sum of the plygon's rings ,and it is the initial value,not the optimized value.In the other words,it is on server-side ,not the cilent -side.
... View more
09-04-2011
10:45 PM
|
0
|
0
|
265
|
POST
|
ESRI.ArcGIS.Client.FeatureLayer mFeatureLayer = new ESRI.ArcGIS.Client.FeatureLayer(); mFeatureLayer.Url = featureLayerUrl; mFeatureLayer.MaxAllowableOffset=600; MyMap.Layers.Add(mFeatureLayer); Now I want to know how many vertex the Client side drawed when loaded the FeatureLayer. The FeatureLayer is a polygon layer. Because I want to know the effect of the property "maxableoffset".
... View more
09-01-2011
10:59 PM
|
0
|
5
|
1336
|
POST
|
I got the same problem!Does anybody have a solution?
... View more
03-31-2011
06:57 PM
|
0
|
0
|
195
|
POST
|
code below: Type t = Type.GetTypeFromProgID("esriSchematic.SchematicStandardBuilderContext"); ISchematicStandardBuilderContext ssbctx = Activator.CreateInstance(t) as ISchematicStandardBuilderContext; int C# is good. but how using in java?
... View more
11-03-2010
10:55 PM
|
0
|
0
|
924
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|