Is This Content Helpful?
How can we make this better? Please provide as much detail as possible.
Contact our Support Team
Published map services result in NaN, 'Not a Number' as the FullExtent property. For example, the initial full extent is as follows:
XMin: -1.2517040322409505E7 YMin: 3946983.752765715 XMax: -1.2444192662924586E7 YMax: 3999198.926415506 Spatial Reference: 102100 (3857)And the resulting full extent after publishing is displayed as follows:
XMin: NaN YMin: NaN XMax: NaN YMax: NaN Spatial Reference: 102100 (3857)
The issue is caused by corrupted data or an incomplete publishing process.
Use one of the following workaround to resolve the issue:
var table = await ShapefileTable.OpenAsync(@"C:\Users\jenn6286\Downloads\states_21basic\states.shp"); var features = await table.QueryAsync(new QueryFilter(){WhereClause= "1=1"}); if (features != null) { Envelope fullExtent = GeometryEngine.Union(from f in features where f.Geometry != null select f.Geometry).Extent; }
Last Published: 12/11/2018
Article ID: 000018637
Software: ArcGIS GeoAnalytics Server 10.6.1, 10.6 ArcGIS GeoEvent Server 10.6.1, 10.6 ArcGIS Server 10.6.1, 10.6 ArcGIS Image Server 10.6.1, 10.6