Tag Info

New answers tagged

1

The CID values represent the FIDs of the features in which the random points were generated.


0

May be the problem has already been solved. I was facing the same problem and today I fixed it in this way Customize--ArcMap options---Data view---round coordinates to (select from drop down).I put 6 and that worked.


0

Just in case anyone has this same problem in the future I solved this issue as below: clicked = mMapView.toMapPoint(v1, v2); Query query = new Query(); query.setOutFields(new String[] {"*"}); query.setSpatialRelationship(SpatialRelationship.INTERSECTS); Point refClicked = mMapView.toMapPoint(v1 + 35, v2); double len = refClicked.getX() - clicked.getX(); ...


0

Any solution about that? I have a similar problem with GPS data that give me location, altitude and speed which cannot be analyzed by a Hot Spot Analysis..


1

Here's a link to download the Create Grid Corner Points tool View the source code: click me Basically, for each polygon it gets it's extent, and then finds which vertex is closest to each corner of the extent. This really only works well for squarish shapes. It would not work on something shaped, for example, like a diamond. The output point feature class ...


1

Thank you for your help! (Nathan helped me on the QGIS issue tracking page with the same advice he posted here and that mapBaker also posted). I added a unique int column to this table and then it loaded the layer with no problem. Thanks again.


3

So, you have a point feature class. Every point has a unique attribute that represents the sequence (e.g., from 1 to 100). You want to get a point with PointID = 1, find a distance to the point with PointID = 2, and write this distance value into the Distance field in the feature class (Distance field for feature PointID2 will contain the distance from ...


0

Thank you ->SIslam, Ur code is very helpful. Then i tried to revised the code to fit my process, the revision as below: import arcpy from arcpy import env env.workspace="C:/Temp/test0608/" Pnt_move="C:/Temp/test0608/Pnt_move.shp" curS = arcpy.da.SearchCursor(Pnt_move,["OID@","SHAPE@"]) counter = 0 for i in curS: print "OID is: ...


2

I have made a tool that does this measurement. This tool needs only three parameters: Just download the Measure_Length.tbx and locate in the ArcCatalog and run. Input Point Feature Unique field (in the attribute table) A field that will be populated by this script, data type for this field must be double Please find the tool in the github at here. ...


0

As pointed out by @cengel, the ppp function in spatstat package will take care of the work. Please check the following link for detailed information: http://www.inside-r.org/packages/cran/spatstat/docs/as.ppp


2

Is there some way to correct this? As you've correctly identified, using spatial adjustment in ArcMap will help adjust the points in your shapefile. From the document About spatial adjustment Start ArcMap. Create a new map or open an existing one. Add the data you want to edit to your map. Add the Editor toolbar to ArcMap. Add the Spatial Adjustment ...


1

The general problem here, known as polygonization in the literature, is quite difficult. See, e.g., this web page. The problem with the convex hull is that the region outlined by your points might not be convex. And in fact, you could lose most of the detail:           Above, the convex hull of the circled points is the ...


2

I don't know that either would be 'more correct'. I would probably lean toward random points, since any regular spacing might introduce bias based on the pattern. You do not want an equal number of points. See http://en.wikipedia.org/wiki/Modifiable_areal_unit_problem Three samples of a large variable polygon might fall on values the same as a uniform small ...


3

I have a solution that works. A LinearRing is also a LineString so use directly a LineString and you can project your points (using Shapely:Coordinate of the closest point on a line) line = LineString(list(polygon.exterior.coords)) pt1 = line.interpolate(line.project(point1)) pt2 = line.interpolate(line.project(point1)) Now we need to know on what ...


1

Al the sugggestions were great, but this is my quick work around that I just discovered. In Table on Contents, Right Click layer > Properties Labels Tab Placement Properties Change Point Setting to 'Offset label horizontally around the point' = 'Top Center' Before: After:


0

This solution may be clunky but adequate based on your restrictions...requires some scripting, or at any rate, that's how I'd do it. You can label based on a joined table. You can set up a dummy table with a cloned unique identifier in the orig table. Then use a sorted updatecursor on the label values to only populate a dummy field (in the joined dummy ...


1

Create new text field, populate it by concatenation of x,y, label. Find duplicates , they are points not to label. UPDATED ANSWER with no modification to table: def FindLabel ( [FID], [LABEL] ): fMin=[FID] mxd = arcpy.mapping.MapDocument("CURRENT") lr=arcpy.mapping.ListLayers(mxd, "ends")[0] with arcpy.da.SearchCursor(lr, ('Shape@XY', "LABEL" ...


4

Approach 1: Maplex Remove Duplicates First, make sure you are using the Maplex Label Engine by checking the box in the Labeling toolbar. You can also set the Maplex Label Engine to be the default in Customize > ArcMap Options > Data View tab > Default Labeling Properties. Second, check the Remove duplicates box in the Label Density tab of the Placement ...



Top 50 recent answers are included