Adding a polygon to a shp file

3162
7
01-21-2016 02:42 PM
CurtisShmigelsky1
New Contributor III

Hi, I have just started using ArcGIS pro 1.1. I have imported a shp file and I would like to draw a polygon on that layer and export the updated shp file.   I am able to add points and I am able to export the shp file, but I cannot see how to add a polygon that can be exported one the new shp file. If anyone can help me out on this, that would be awesome.

Thanks

Tags (1)
0 Kudos
7 Replies
DarrenWiens2
MVP Honored Contributor

This might sound silly, but is the shapefile you're editing a point or polygon shapefile? Of course, you can only add points to a point shapefile, and polygons to a polygon shapefile.

CurtisShmigelsky1
New Contributor III

Followup dumb question.  If I am looking at the gpx file that is getting converted, how can I tell that it a point or polygon file

eg, I have this gpx file as a reference, and use this command to convert it to the shp file..

import arcpy

arcpy.GPXtoFeatures_conversion('c:\\GPX3\\testgpx2.gpx', 'c:\\GPX3\\testgpx2.shp')

--GPS File --

  <metadata>

    <link href="http://www.garmin.com">

      <text>Garmin International</text>

    </link>

    <time>2014-11-18T22:22:29Z</time>

    <bounds maxlat="53.0227030813694" maxlon="-112.21157192252576" minlat="53.014686880633235" minlon="-112.34274895861745" />

  </metadata>

  <trk>

    <name>Page 4a</name>

    <extensions>

      <gpxx:TrackExtension>

        <gpxx:DisplayColor>LightGray</gpxx:DisplayColor>

      </gpxx:TrackExtension>

    </extensions>

    <trkseg>

      <trkpt lat="59.18684988094984" lon="-124.25435411600436">

        <ele>785.04999999999995</ele>

        <time>2014-11-06T17:42:44Z</time>

      </trkpt>

      <trkpt lat="59.18696594853597" lon="-124.25535602357907">

        <ele>767.75</ele>

        <time>2014-11-06T17:42:51Z</time>

      </trkpt>

      <trkpt lat="59.186522804454874" lon="-124.25567231790153">

        <ele>764.87</ele>

        <time>2014-11-06T17:42:52Z</time>

      </trkpt>

      <trkpt lat="59.186340682494375" lon="-124.25500054618719">

        <ele>761.5</ele>

        <time>2014-11-06T17:42:53Z</time>

      </trkpt>

    </trkseg>

  </trk>

Thanks for the quick reply

0 Kudos
DarrenWiens2
MVP Honored Contributor

I'm not a GPX expert, but I'd guess that the <trk> tag indicates track, so a polyline, or maybe polygon, but not waypoint.

The tool itself should know what datatype to create. Can't you wait until after the tool has completed to see what it created?

CurtisShmigelsky1
New Contributor III

Ah ok. I need to get my hands on the GPS device.  Thanks for clearing this up.

0 Kudos
DanPatterson_Retired
MVP Emeritus

If you get your hands on the gps, use DNRGPS Application: Minnesota DNR  to convert it to something useful like a shapefile of gdb etc

Upload/Download Waypoints,Tracks,RoutesSave as .gdb, .shp, .txt, etc
Calculate shape attributes

Calculate Area, Perimeter, Length-coming soon

Calculate CEPDetermine Circular Error Probability rings for Error estimation
Convert points, lines, polygons
Image HyperlinkingCreate hyperlinks between images and GPS data.
Real-time tracking
Set projections
USB Connectivity
DanPatterson_Retired
MVP Emeritus

And you had flagged the Spatial Analyst place as your desired location... however, that space applied to raster/grid data which you aren't using.  so two links may be of use to you:

  1. GeoNet Community Structure Documentation | ArcGIS for Desktop
  2. Documentation | ArcGIS for Desktop

the first is for where to post questions and the second is for ArcGIS Pro documentation

CurtisShmigelsky1
New Contributor III

Sorry about posting to the wrong place. Is there a way to move the question to the proper category?  I was looking over the documentation before, but I was unable to find what I needed.

0 Kudos