While setting current extent i’m seeing below error
"The shape you provided does not pass our simple validation.The shape you provided does not pass our simple validation."
Below is the code which I have used to set current extent
Proj4Projection proj4 = new Proj4Projection();
proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
proj4.Open();
RectangleShape rectangleShape = proj4.ConvertToExternalProjection(new RectangleShape(Convert.ToDouble(country.strExtentMinX), Convert.ToDouble(country.strExtentMaxY), Convert.ToDouble(country.strExtentMaxX), Convert.ToDouble(country.strExtentMinY)));
proj4.Close();
map.CurrentExtent = rectangleShape;
and later on i’m setting this projection on ShapeFileFeaureLayer
interestingly it is working on another shape file but not on this one. can you please guide me what i’m doing wrong here.
Regards,