Finding Square Polygons using ArcGIS Desktop? [closed]












2














Anyone know of an ArcGIS tool (or trick!) to determine square polygons?



This is sort of a - find the geometric shape of a polygon, if all lines of a polygon are equidistant then YES (select)



Seems easy, yet .. .



Thoughts?










share|improve this question















closed as primarily opinion-based by ahmadhanb, LaughU, Jochen Schwarze, whyzar, xunilk Nov 13 '18 at 0:24


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.















  • We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour which describes how the site works. I think that this would be relatively straightforward to do using ArcPy so I think you should give that a try. Alternatively, use the Field Calculator to get polygons with only four vertices and then convert your polygons to lines to check if all lines from same poly are same length.
    – PolyGeo
    Nov 12 '18 at 6:56












  • ahh thanks for simplifying it for me. I think this may work.
    – user23482
    Nov 12 '18 at 14:45






  • 1




    The sides of a square would only be equal in Cartesian coordinate reference; in a geographic coordinate reference you'd have to do a good deal more processing.
    – Vince
    Nov 12 '18 at 14:55






  • 1




    Further, a rhombus would meet the criteria for equal side lengths, but not square. You'll need to check the angles of the vertices. Perhaps compare the shape to the rotated bounding box of each polygon. All of this accounts for additional processing as per @Vince's comment.
    – Fezter
    Nov 12 '18 at 22:41
















2














Anyone know of an ArcGIS tool (or trick!) to determine square polygons?



This is sort of a - find the geometric shape of a polygon, if all lines of a polygon are equidistant then YES (select)



Seems easy, yet .. .



Thoughts?










share|improve this question















closed as primarily opinion-based by ahmadhanb, LaughU, Jochen Schwarze, whyzar, xunilk Nov 13 '18 at 0:24


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.















  • We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour which describes how the site works. I think that this would be relatively straightforward to do using ArcPy so I think you should give that a try. Alternatively, use the Field Calculator to get polygons with only four vertices and then convert your polygons to lines to check if all lines from same poly are same length.
    – PolyGeo
    Nov 12 '18 at 6:56












  • ahh thanks for simplifying it for me. I think this may work.
    – user23482
    Nov 12 '18 at 14:45






  • 1




    The sides of a square would only be equal in Cartesian coordinate reference; in a geographic coordinate reference you'd have to do a good deal more processing.
    – Vince
    Nov 12 '18 at 14:55






  • 1




    Further, a rhombus would meet the criteria for equal side lengths, but not square. You'll need to check the angles of the vertices. Perhaps compare the shape to the rotated bounding box of each polygon. All of this accounts for additional processing as per @Vince's comment.
    – Fezter
    Nov 12 '18 at 22:41














2












2








2







Anyone know of an ArcGIS tool (or trick!) to determine square polygons?



This is sort of a - find the geometric shape of a polygon, if all lines of a polygon are equidistant then YES (select)



Seems easy, yet .. .



Thoughts?










share|improve this question















Anyone know of an ArcGIS tool (or trick!) to determine square polygons?



This is sort of a - find the geometric shape of a polygon, if all lines of a polygon are equidistant then YES (select)



Seems easy, yet .. .



Thoughts?







arcgis-desktop polygon geometry calculate-geometry






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 '18 at 6:53









PolyGeo

53.2k1779238




53.2k1779238










asked Nov 12 '18 at 6:47









user23482user23482

212




212




closed as primarily opinion-based by ahmadhanb, LaughU, Jochen Schwarze, whyzar, xunilk Nov 13 '18 at 0:24


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as primarily opinion-based by ahmadhanb, LaughU, Jochen Schwarze, whyzar, xunilk Nov 13 '18 at 0:24


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.














  • We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour which describes how the site works. I think that this would be relatively straightforward to do using ArcPy so I think you should give that a try. Alternatively, use the Field Calculator to get polygons with only four vertices and then convert your polygons to lines to check if all lines from same poly are same length.
    – PolyGeo
    Nov 12 '18 at 6:56












  • ahh thanks for simplifying it for me. I think this may work.
    – user23482
    Nov 12 '18 at 14:45






  • 1




    The sides of a square would only be equal in Cartesian coordinate reference; in a geographic coordinate reference you'd have to do a good deal more processing.
    – Vince
    Nov 12 '18 at 14:55






  • 1




    Further, a rhombus would meet the criteria for equal side lengths, but not square. You'll need to check the angles of the vertices. Perhaps compare the shape to the rotated bounding box of each polygon. All of this accounts for additional processing as per @Vince's comment.
    – Fezter
    Nov 12 '18 at 22:41


















  • We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour which describes how the site works. I think that this would be relatively straightforward to do using ArcPy so I think you should give that a try. Alternatively, use the Field Calculator to get polygons with only four vertices and then convert your polygons to lines to check if all lines from same poly are same length.
    – PolyGeo
    Nov 12 '18 at 6:56












  • ahh thanks for simplifying it for me. I think this may work.
    – user23482
    Nov 12 '18 at 14:45






  • 1




    The sides of a square would only be equal in Cartesian coordinate reference; in a geographic coordinate reference you'd have to do a good deal more processing.
    – Vince
    Nov 12 '18 at 14:55






  • 1




    Further, a rhombus would meet the criteria for equal side lengths, but not square. You'll need to check the angles of the vertices. Perhaps compare the shape to the rotated bounding box of each polygon. All of this accounts for additional processing as per @Vince's comment.
    – Fezter
    Nov 12 '18 at 22:41
















We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour which describes how the site works. I think that this would be relatively straightforward to do using ArcPy so I think you should give that a try. Alternatively, use the Field Calculator to get polygons with only four vertices and then convert your polygons to lines to check if all lines from same poly are same length.
– PolyGeo
Nov 12 '18 at 6:56






We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour which describes how the site works. I think that this would be relatively straightforward to do using ArcPy so I think you should give that a try. Alternatively, use the Field Calculator to get polygons with only four vertices and then convert your polygons to lines to check if all lines from same poly are same length.
– PolyGeo
Nov 12 '18 at 6:56














ahh thanks for simplifying it for me. I think this may work.
– user23482
Nov 12 '18 at 14:45




ahh thanks for simplifying it for me. I think this may work.
– user23482
Nov 12 '18 at 14:45




1




1




The sides of a square would only be equal in Cartesian coordinate reference; in a geographic coordinate reference you'd have to do a good deal more processing.
– Vince
Nov 12 '18 at 14:55




The sides of a square would only be equal in Cartesian coordinate reference; in a geographic coordinate reference you'd have to do a good deal more processing.
– Vince
Nov 12 '18 at 14:55




1




1




Further, a rhombus would meet the criteria for equal side lengths, but not square. You'll need to check the angles of the vertices. Perhaps compare the shape to the rotated bounding box of each polygon. All of this accounts for additional processing as per @Vince's comment.
– Fezter
Nov 12 '18 at 22:41




Further, a rhombus would meet the criteria for equal side lengths, but not square. You'll need to check the angles of the vertices. Perhaps compare the shape to the rotated bounding box of each polygon. All of this accounts for additional processing as per @Vince's comment.
– Fezter
Nov 12 '18 at 22:41










1 Answer
1






active

oldest

votes


















5














If you have shape area and length fields for your polygons, an SQL expression like



(length / 4) * (length / 4) = area or POWER(length / 4, 2) = area should select the polygons that are perfectly square.



You can introduce some error margin with something like



POWER(length / 4, 2) < area + (area * 0.01) AND POWER(length / 4, 2) > area - (area * 0.01), e.g. +/- 1% difference in area.






share|improve this answer




























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    If you have shape area and length fields for your polygons, an SQL expression like



    (length / 4) * (length / 4) = area or POWER(length / 4, 2) = area should select the polygons that are perfectly square.



    You can introduce some error margin with something like



    POWER(length / 4, 2) < area + (area * 0.01) AND POWER(length / 4, 2) > area - (area * 0.01), e.g. +/- 1% difference in area.






    share|improve this answer


























      5














      If you have shape area and length fields for your polygons, an SQL expression like



      (length / 4) * (length / 4) = area or POWER(length / 4, 2) = area should select the polygons that are perfectly square.



      You can introduce some error margin with something like



      POWER(length / 4, 2) < area + (area * 0.01) AND POWER(length / 4, 2) > area - (area * 0.01), e.g. +/- 1% difference in area.






      share|improve this answer
























        5












        5








        5






        If you have shape area and length fields for your polygons, an SQL expression like



        (length / 4) * (length / 4) = area or POWER(length / 4, 2) = area should select the polygons that are perfectly square.



        You can introduce some error margin with something like



        POWER(length / 4, 2) < area + (area * 0.01) AND POWER(length / 4, 2) > area - (area * 0.01), e.g. +/- 1% difference in area.






        share|improve this answer












        If you have shape area and length fields for your polygons, an SQL expression like



        (length / 4) * (length / 4) = area or POWER(length / 4, 2) = area should select the polygons that are perfectly square.



        You can introduce some error margin with something like



        POWER(length / 4, 2) < area + (area * 0.01) AND POWER(length / 4, 2) > area - (area * 0.01), e.g. +/- 1% difference in area.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '18 at 7:36









        fatih_durfatih_dur

        3,5602927




        3,5602927















            Popular posts from this blog

            Coverage of Google Street View

            Full-time equivalent

            Surfing