c# - How does SqlGeography.Reduce method works? -
how api works?
i using complex geography ~2000 points (geometry of river). while reducing tolerance 2048, works fine. while reducing tolerance factor 4096, throws exception "24205: specified input not represent valid geography instance because exceeds single hemisphere. each geography instance must fit inside single hemisphere. common reason error polygon has wrong ring orientation."
does mean have 2 geometry of different orientation (these points located in single hemisphere only) in geography object , tolerance 4096 tries merge these 2 geometries of different orientation , fails? there anyway avoid such scenarios?
when sql server sees geography instance computes bounding cap it. if cap angle exceeds 90 degrees throws exception 24205 "geography instance must fit inside single hemisphere". can true if none of points cross equator.
for in depth answer see the geography hemisphere limitation.
Comments
Post a Comment