{"id":528,"date":"2017-07-18T13:42:11","date_gmt":"2017-07-18T18:42:11","guid":{"rendered":"http:\/\/thenoyes.com\/littlenoise\/?p=528"},"modified":"2017-07-18T13:42:11","modified_gmt":"2017-07-18T18:42:11","slug":"error-3037-22023-invalid-gis-data-provided-to-function-st_geometryfromtext","status":"publish","type":"post","link":"https:\/\/thenoyes.com\/littlenoise\/?p=528","title":{"rendered":"ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext."},"content":{"rendered":"<p>1. Watch the parentheses. It&#8217;s:<\/p>\n<p><code>ST_GeomFromText('POLYGON((outerRing), (innerRing), (innerRing), ...)')<\/code><\/p>\n<p>The inner rings are optional. If you have just the outer ring, then it&#8217;s still:<\/p>\n<p><code>ST_GeomFromText('POLYGON((outerRing))')<\/code><\/p>\n<p>and not:<\/p>\n<p><code>ST_GeomFromText('POLYGON(outerRing)')<\/code><\/p>\n<p>2. Polygons have to start and end at the same point.<\/p>\n<p>3. Watch the commas. Rings are comma-delimited sets of of whitespace-delimited coordinate pairs:<\/p>\n<p><code>x1 y1, x2 y2, x3 y3, x4 y4<\/code><\/p>\n<p>not:<br \/>\n<code>x1 y1 x2 y2 x3 y3<\/code><br \/>\n<code>x1, y1, x2, y2, x3, y3, x4, y4<\/code><br \/>\n<code>(x1, y1), (x2, y2), (x3, y3)<\/code><br \/>\nor other variations on that theme.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Watch the parentheses. It&#8217;s: ST_GeomFromText(&#8216;POLYGON((outerRing), (innerRing), (innerRing), &#8230;)&#8217;) The inner rings are optional. If you have just the outer ring, then it&#8217;s still: ST_GeomFromText(&#8216;POLYGON((outerRing))&#8217;) and not: ST_GeomFromText(&#8216;POLYGON(outerRing)&#8217;) 2. Polygons have to start and end at the same point. 3. Watch the commas. Rings are comma-delimited sets of of whitespace-delimited coordinate pairs: x1 y1, x2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4],"tags":[],"class_list":["post-528","post","type-post","status-publish","format-standard","hentry","category-mysql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2IBF1-8w","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=528"}],"version-history":[{"count":5,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/528\/revisions"}],"predecessor-version":[{"id":533,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/528\/revisions\/533"}],"wp:attachment":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}