Select to view content in your preferred language

Wrong FullExtent in Layer with scaled visibility

926
1
10-18-2011 04:54 AM
IvanIvanov3
Emerging Contributor
Hi!

I have layer:

Min. Scale: 20000
Max. Scale: 0
Default Visibility: True

XMin: 65125.1001000004
YMin: 61834.4901999999
XMax: 136886.8202
YMax: 128341.3102
Spatial Reference: PROJCS["m64_1",GEOGCS["GCS_Pulkovo_1942",DATUM["D_Pulkovo_1942",SPHEROID["Krasovsky_1940",6378245.0,298.3]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",95942.17],PARAMETER["False_Northing",-6552810.0],PARAMETER["Central_Meridian",30.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

When i'm trying to zoom on this layer's extent it's returns other extent values and zoom goes wrong.
it returns following extent:
Xmax: 84464.640100000426
Xmin: 65125.100100000389
Ymax: 128273.57019999996
Ymin: 120906.50019999966

this happens only with this layer. Other layers don't have "Min Scale" value and zoom is good.

Any ideas why could this happend?

Thanks!
Tags (2)
0 Kudos
1 Reply
IvanIvanov3
Emerging Contributor
solved this by casting Layer to FeatureLayer and used FeatureLayer.LayerInfo.Extent. it returns valid values
0 Kudos