4) Creating Polygon Feature Classes Using Arcpy Scripting

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 6

  • @cristianofreitas60
    @cristianofreitas60 3 года назад

    In the case of the polygon with a hole, is it not necessary a null point to separate the outer ring from the inner rings?

    • @alexliaskos
      @alexliaskos 2 месяца назад

      By accident I discovered that the null points are the separators of interior and exterior rings. It's useful if you wanna extract the outer perimeter of a polygon with holes by iterating over the polygon's arrays of points, as it starts by the exteriors and never gets to the interiors due to the null point. At least that's what I have understood that it's happening!

  • @RubenTurtle
    @RubenTurtle 6 лет назад

    Hello, I'm new at programming, and I'm working on eclpse trying to create a polygon over a certain area, the problem is that the program doesn't recorgnice the sentence "arcpy.da.InsertCursor", specially the InserCursor part. I've already import arcpy do I don't know what to do. Thank you

  • @bandijoshua6252
    @bandijoshua6252 6 лет назад

    when i print coords i got 5*5 matrix way print but you got 5*2 how i can resolve

    • @pythonscriptinginarcgisspr8470
      @pythonscriptinginarcgisspr8470  6 лет назад

      >>> array = arcpy.Array()
      >>> list_coords = [ [0,0], [5,0], [5,5], [0,5], [0,0] ]
      >>> for coords in list_coords:
      ... print coords
      [0, 0]
      [5, 0]
      [5, 5]
      [0, 5]
      [0, 0]

    • @bandijoshua6252
      @bandijoshua6252 6 лет назад

      for poly in list_poly:
      ... point_obj.x=poly[0]
      ... point_obj.y = poly[1]
      ... array.add(point_obj)
      ...
      Runtime error
      Traceback (most recent call last):
      File "", line 2, in
      NameError: name 'point_obj' is not defined
      >>>