|
POST
|
That's a lot of work if you have to do it on bigger or other datasets. It would be a better way forward to do some research on the origins of the data. And tell whoever captured the data not to just "rename" the datum.
... View more
03-25-2015
02:24 AM
|
1
|
0
|
2800
|
|
POST
|
Thanks for posting. There are 3 tins here. Is there another set which is vertically above or below these ones? Don't forget that Extrude between can only extrude the portion where both top and bottom overlap.
... View more
03-25-2015
01:52 AM
|
0
|
6
|
3894
|
|
POST
|
This sort of shift is caused by an incorrect datum (change in the underlying ellipsoidal model). I took your mainrivers shapefile, I see it is of the Mekong river in Cambodia. Yes, it's coordinate system is defined as UTM 47N and based on the WGS84 datum. However, if you assume that WGS84 is not the original datum for this data (depends on the source of these river polys, old carto sheets perhaps). I looked up at ASPRS Clifford Mugnier Grids & Datums page and also at EPSG.org. There are several suggestions as to the original classical datums used by the French authorities in colonial days. One of which is India1960. (Don't know why they would have used this). So, I copied the shapefile, gave it a new name, and then redefined the coord sys, changing the GCS to India 1960. So the blue is the original, the green te new one, and I have applied one of the available transforms between India1960 & WGS84. The base map in National Geographic (good enough in this case). You can see that the green one is much closer to the basemap image. The difference here between old and new is ~500m. The fit is not exact (I wouldn't expect it to be), because we do not know on which datum this data was originally based. The only thing we do know for sure is that it definitely wasn't WGS84.
... View more
03-25-2015
01:11 AM
|
2
|
4
|
2801
|
|
POST
|
What do the 2 tins look like? I am trying to imagine how CreateTin makes a tin from only 4 points?
... View more
03-24-2015
04:30 AM
|
0
|
8
|
3894
|
|
POST
|
Once you have the tins, use Surface Difference 3d http://resources.arcgis.com/en/help/main/10.2/index.html#//00q900000020000000 The output is a polygon feature with a class of -1 or 1 representing those areas of +ve or -ve difference and the volume therein.
... View more
03-23-2015
01:11 AM
|
0
|
0
|
1050
|
|
POST
|
Regardless of how the graph is made, either manually or via a script, I think you still have to open the graph in ArcMap. View / Graph and then pick it. If you are creating the graph using arcpy / python, is this happening within an open ArcMap mxd?
... View more
03-23-2015
12:42 AM
|
0
|
0
|
2331
|
|
POST
|
Xander, okay, I see what you are doing. And, yes, if I set the Data Type to Spatial Reference & use GetParameter There is no need to use arcpy.SpatialReference on the input variable, because it already is a SR object. Thanks, using v10.2.2
... View more
03-12-2015
07:04 AM
|
0
|
0
|
1097
|
|
POST
|
In the image analysis window, what do those 2 extra variables do? Pixel Size power etc
... View more
03-11-2015
06:52 AM
|
0
|
3
|
6799
|
|
POST
|
Having individual layers per polygon attribute as you note above is not really how the data should be organized. One layer with all the polygons which are identified by some sort of attribute is the way to go. Otherwise, editing edges between polygons / layers would be nightmare. As Dan says, simply select by attribute, then select by location.
... View more
03-11-2015
04:53 AM
|
1
|
0
|
4513
|
|
POST
|
Dan, I know I can get a SR object from a describe of a feature. The point here is to set a SR from a script tool parameter. It seems the way to do it is as outlined in my first post. But I am very open to alternative suggestions. Perhaps someone from esri could advise how this is done, and put something in the help files to illustrate this.
... View more
03-11-2015
04:40 AM
|
0
|
2
|
1097
|
|
POST
|
Did that, still doesn't work. If you look at your code above, you are printing the contents of the variable. Its still not an SR object.
... View more
03-11-2015
02:24 AM
|
0
|
4
|
5071
|
|
POST
|
Xander, see this.. My code # test spatial reference
import sys, os
import arcpy
SR = arcpy.SpatialReference(arcpy.GetParameter(0))
msg = "Coord sys is {}".format(SR.name)
print msg
arcpy.AddMessage(msg)
... View more
03-10-2015
11:06 PM
|
0
|
6
|
5071
|
|
POST
|
A few thing here... When making geometries, supply the spatial reference : pg = arcpy.PointGeometry(p, sr)
Your output shouldn't be a shapefile (*.shp) if its going into a gdb. You have to make your python code into a script tool. You use the GetParameterAsText(#) for each of your inputs. Then the script can be added to a toolbox as a script tool. Each input needs to have its properties set, so the tools knows what sort of input is expected (workspace, feature class etc) See here: http://resources.arcgis.com/en/help/main/10.2/index.html#//001500000006000000 http://resources.arcgis.com/en/help/main/10.2/index.html#//00150000000n000000
... View more
03-10-2015
10:46 PM
|
0
|
0
|
780
|
|
POST
|
Oh, and another thing... How do you get the advanced editor when starting a new thread so that you can do the code formatting correctly?
... View more
03-10-2015
10:36 PM
|
0
|
1
|
5071
|
|
POST
|
I did try GetParameter, same result, it doesn't return a SR object, but a string! I looked and looked through the documentation and found no pointers how to do this. If the esri folk are listening, perhaps something should be in in the help files on how to do this. My solution works, but is there another way to do it?
... View more
03-10-2015
10:32 PM
|
0
|
2
|
5071
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-08-2015 11:28 PM | |
| 1 | 12-20-2013 08:59 PM | |
| 1 | 05-14-2014 10:38 PM | |
| 1 | 12-16-2013 09:05 PM | |
| 1 | 05-31-2019 02:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|