Spatial DbGeography.PolygonFromText orientation problem in sql azure RRS feed

  • Question

  • I have used google maps API and js to get the polygon drawn by the user on a form and pass it to DbGeography.PolygonFromText this works more than fine on my local db, however when I published this to azure cloud services and used sql azure saving the polygon gives me :

    24200: The specified input does not represent a valid geography instance.

    when the polygon is drawn anti clock wise or contains any intersections I know it's related to polugon ring orientation, but it works fine on my local machine more over I need some solution in c# not sql

    Tuesday, April 9, 2013 11:06 AM