|
POST
|
Usually a cad file has a translation, rotation and/or scaling relative to original base map to make the sketch convenient for vision. Generally there is a cad layer labeling the original controlling coordinate points by which you can fix the projection.(this layer may be turned off in cad). Map provider should be consulted if no controlling points layer.
... View more
11-30-2017
01:13 AM
|
0
|
0
|
3536
|
|
POST
|
Than you Basson, but I am tring to write a tool not only for myself.
... View more
01-24-2017
03:52 AM
|
0
|
1
|
2829
|
|
POST
|
The x and y will be used as float, so decimal seperator problem still exists.
... View more
01-24-2017
02:49 AM
|
0
|
3
|
2829
|
|
POST
|
01-24-2017
02:04 AM
|
0
|
5
|
2829
|
|
POST
|
Thank you Basson. Line 2 return: RuntimeError: Object: CreateObject cannot create geometry from inputs. arcpy.AddMessage(type(point)) show: <type 'geoprocessing value object'>
... View more
01-24-2017
01:58 AM
|
0
|
7
|
2829
|
|
POST
|
HI all I am puzzled by a simple problem. I don't know how to access a point object's x and y coordinate from a arctoolbox in python script. It can be accessed this way: pnt=arcpy.GetParameterAsText(0).split() # c1 is a point object in arctoolbox interface x=float(pnt[0]) y=float(pnt[1]) It's not ideal because the code will fail when the x and y are inputed in different decimal seperator, say ',' format. So I use: pnt=arcpy.GetParamete(0) But what's the method to get pnt.X and pnt.Y?
... View more
01-23-2017
08:30 PM
|
0
|
9
|
4220
|
|
POST
|
Hi all, Is it possible to transform a Geometry object with a spatialreference to another coordinate system directly? I know i can store the geometry object to featrueclass and use project_management tool to do that, but that's too trivial .
... View more
01-16-2017
09:31 PM
|
0
|
5
|
2356
|
|
POST
|
Add Larer-->Ritght key click-->Display X,Y data-->Select X,Y, Z field, Edit Coordinate System-->Right click on the points layer-->Export Data to shape file. A elevation points featrueClass constructed. It can be conversed to polygon if you want. Lambert coordinate systems are ready for Arcmap, It's best to keep projection coordinate system rather than lat/long format if you want to do further spatial analysis, say Slope.
... View more
01-04-2017
05:24 PM
|
1
|
0
|
3793
|
|
POST
|
Thank you Strauch, I read the subject you posted and am working with ModelBuilder to see whether it can do.
... View more
01-03-2017
08:19 PM
|
0
|
0
|
1014
|
|
POST
|
Dan is right. The n value must be varied with diameter according to some formula. A dense fishnet should be better choice.
... View more
01-02-2017
06:26 AM
|
0
|
0
|
2021
|
|
POST
|
Hi Amila,may be you can try python like below: def circle_poly(x,y,c1,c2,r): #center, start angle, end angel, diameter ptc=arcpy.Array() pnt=arcpy.Point() n=100 # 100 points every arc, or other value for i in range(0,n+1): # n is the number of points of the arc ang = (c1+(c2-c1)*i/n) * deg2rad pnt.X=x + r * math.cos(ang) pnt.Y=y + r * math.sin(ang) ptc.add(pnt) # return ptc Then : pie=arcpy.Polygon(circle_poly(x0,y0,0,359,dia),sr ) By this way, I believe circles can be constructed with no error cause you can control the numbers of points of every arcs. By the way, It makes me remember my old post of "How many points are need to construct a smooth circle" , I still wonder how the ArcMap platform decide the numbers of a circle.
... View more
01-02-2017
01:18 AM
|
0
|
0
|
2021
|
|
POST
|
Thank you Terhune. It almost solve my problem, but it will be better if parameters invisible instead unselectable, or is it possible to popup another script parameters panel waiting for user's interactive inputs as an alternative?
... View more
12-30-2016
07:06 PM
|
0
|
3
|
1014
|
|
POST
|
Hi all, I am wondering if it's possible to make a script tool parameter showing or hiding depending on other parameter's value by user's inputing through coding in Validation or some other trick?
... View more
12-29-2016
05:10 PM
|
0
|
5
|
2194
|
| 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
|