|
POST
|
Thank you Dan. I really didn't expect that it's impossible to do that directly as I thought maybe some arcmap option can do. So have to use the indirect way as your suggestion.
... View more
12-10-2016
08:31 PM
|
0
|
0
|
847
|
|
POST
|
Hi all, how to make the command 'Arcpy.Polygon.buffer(distance)' forming a flat buffer instead a round one?
... View more
12-10-2016
07:02 PM
|
0
|
2
|
2376
|
|
POST
|
Hi Guda, My python script will look like below if it's me to deal with the problem. row_poly=arcpy.SearchCursor('mypolygon') row_poly.reset() row_s=row_poly.next() while row_s: feat=row_s.shape ... # x,y=feat.x, feat.y , find all the x, y coordinates of every polygon x0s=min(x) # the leftmost x coordinates, can be many points y0=max( y for x=x0s) ? # it depends on your difinition of start point array_new=... # reorder your point array with the x0,y0 be the first point ... #delete old polygon row_s.shape=polygon(array_new,...) ... row_s=row.poly.next() But I don't know whether it's the best solution.
... View more
12-05-2016
02:28 AM
|
1
|
0
|
938
|
|
DOC
|
Hi Dow, Thanks for your suggestion. The Google browser do it as your tip.
... View more
11-30-2016
04:24 PM
|
0
|
0
|
8528
|
|
DOC
|
Thank you Dow. errors occured when I uploaded file as below: {"description":"","number":-2147418094,"stack":"Error\n at Anonymous function (http://codesharing.arcgis.com//js/uploader-service.js:67:13)\n at Promise (https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.1/es6-shim.js:2348:11)\n at uploadItem (http://codesharing.arcgis.com//js/uploader-service.js:55:9)\n at Anonymous function (http://codesharing.arcgis.com//js/uploader-service.js:18:13)\n at Promise (https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.1/es6-shim.js:2348:11)\n at svc.sendData (http://codesharing.arcgis.com//js/uploader-service.js:16:9)\n at $scope.sendData (http://codesharing.arcgis.com//js/arcscripts-controller.js:310:13)\n at fn (Function code:2:192)\n at b (http://codesharing.arcgis.com//js/angular.min.js:122:174)\n at e (http://codesharing.arcgis.com//js/angular.min.js:265:195)"} I have no idea about what's wrong.
... View more
11-29-2016
08:18 AM
|
0
|
0
|
8528
|
|
POST
|
Do you know the original long/lat's coordinate system? Maybe the data's GCS is not Deutsches Haupt... . can it be WGS84? There is several hundred meters of diffrence between them. Ask the data provider or try other GCS, and maybe it's not nessasery to change it to projected coordinate.
... View more
08-16-2016
06:32 AM
|
0
|
0
|
1694
|
|
POST
|
What's your original x,y data like? May be you have lon,lat data, but you difine it as projected coordinate (I see you have 0 degree latitude in your map) ?
... View more
08-16-2016
02:45 AM
|
1
|
4
|
1694
|
|
POST
|
Thank you Dan. below is code: def circle_array(x,y,c1,c2,r): #x,y for center, c1,c2 for start and end angle, r for diameter ar=[] deg2rad=math.pi/180.0 n=360.0 for i in range(0,n+1): ang = (c1+(c2-c1)*i/n) * deg2rad arx=x + r * math.cos(ang) ary=y + r * math.sin(ang) ar.append([arx,ary,0]) return ar I just wonder how to decide the n to keep the same smoothness with arcmap platform
... View more
08-03-2016
04:32 PM
|
0
|
2
|
2540
|
|
POST
|
Hi all. I need to construct circular arc by array using Arcpy. Apparently the larger the circle, the more number of points in ArcMap. How many points are need to keep same smoothness with ArcMap platform, what's the relationship between diameter R and Number of points to get it?
... View more
08-03-2016
04:05 PM
|
0
|
4
|
3602
|
|
POST
|
Thank you a lot. It solve my problem. The only limitation is that it needs a 10.2 above version, but it's enough for me cause my platform is 10.3 Standard. Thank you again.
... View more
07-27-2016
04:19 PM
|
0
|
0
|
1150
|
|
POST
|
Thank you Dan and Xander so much. The file of sample data as attached.
... View more
07-27-2016
08:36 AM
|
0
|
3
|
1150
|
|
POST
|
I have many balls must be divided by the red lines of varied oriented. In my original codes, construct balls and lines in memory at first, then copy them as polygon feature and line feature seperately, 'arcpy.FeatureToPolygon_management([balls,lines],"in_memory")' finally. It's simple. Don't care where and how the lines intersect with balls. But need advanced license. With POLYGON method, may be the intersect or the nearest points between lines, lines and ball, must be got, then regroup these point arrays to form polygons. Don't have idea yet about what's the best way to get the 'intersect' points (all the geometries are constructed from points, they may have no common point) .
... View more
07-27-2016
12:46 AM
|
0
|
6
|
2744
|
|
POST
|
Hi, thanks for the suggestion. Actually I need the function in an arcpy appliction.
... View more
07-26-2016
04:44 PM
|
0
|
8
|
2744
|
|
POST
|
Thank you all. Now I know it's not easy to work out a general arcpy codes for 'lines to polygon' , and now try to use POLYGON method to construct polygons from theose structured points array directly, rather than construct lines at first, then convert this line feature to polygons.
... View more
07-26-2016
02:12 AM
|
0
|
0
|
2744
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-04-2017 05:24 PM | |
| 1 | 12-05-2016 02:28 AM | |
| 1 | 04-13-2020 09:34 PM | |
| 1 | 05-23-2019 06:46 AM | |
| 2 | 03-06-2019 05:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-11-2021
11:18 AM
|