|
POST
|
Q. How do geographers get to know their future partners? A. They datum...
... View more
04-29-2016
03:02 AM
|
3
|
1
|
2400
|
|
POST
|
Kept a copy of the old *.prj file structure before it disappeared. That doesn't look like 2 spaces in that name...
... View more
04-29-2016
01:05 AM
|
0
|
1
|
3224
|
|
POST
|
Melita, so you are saying that if the zone number has a single digit, 2 spaces should be added to form the "Name" string. Is that true throughout the system? Other, non UTM style names, just the .replace("_", " ") should work?
... View more
04-29-2016
01:00 AM
|
0
|
3
|
3224
|
|
POST
|
I agree with Adrian. You cannot "make" a WKID. But you can use custom coordinate systems for you web maps. In a internal portal recently, the entire portal was in a custom coordinate system. Just had to specify the basemaps first in this system. As this was essentially closed to AGOL, everything worked okay.
... View more
04-28-2016
08:33 AM
|
0
|
2
|
3029
|
|
POST
|
As Dan says, first include the env.workspace to change to this workspace. Then ListFields returns a fields object, which has various properties (or attributes). so : fldsFirst = [f.name for f in arcpy.ListFields(fc)] will give you a list of the field names. Do this on both then run your other loop to delete the fields in the second fc. Back up your original fc's first, you never know when your routine might do something you may not have intended. All this assuming you are running this in an IDE, not a python window inside ArcMap or wherever.
... View more
04-28-2016
08:18 AM
|
0
|
0
|
1696
|
|
POST
|
Tiff is lossless, unless they are doing something on the front end before it becomes tiff. Compressions algorithmns like lcw are also lossless. ecw, jpeg, jp2 are not. Just from a file handling point of view, most survey companies, provide the data in a series of "tiles", bit sized chunks. It is extremely easy to then use these as a data source for a Mosaic. No need to load these into sde or anything else. Just use a file system folder, and build the mosaic (in an fgdb) on top. Then, if you have image server, you can publish this as a service. If you havn't got Image server, then you need to make a tile cache, then publish that. The tile cache building can take a while though with very large raster datasets.
... View more
04-28-2016
08:07 AM
|
2
|
1
|
2615
|
|
POST
|
A few points here. ECW is a proprietry format from Erdas. So unless you have some sort of licenced plugin, I don't think you can "export to ECW". Projecting, reading one file image, resampling and recoordinating and writing out a new image is the same as exporting. So, have you tried copying the ecw stuff to a different format first? Projections (Reproject) and transformations (change the datum on which the data is based), are 2 fundamentally different things. This "transforming from NAD83 to WGS84" doesn't really make sense to me as it is stated.
... View more
04-27-2016
11:16 AM
|
0
|
4
|
3261
|
|
POST
|
Matt, yes this sr.name vs the "Name" you're supposed to use when trying to initiate it seems to be a bit inconsistent. The help files refers to the pdf in the documentation installation area. But those "Names" all have underscores. Perhaps Melita or an esri guru could explain.
... View more
04-27-2016
11:05 AM
|
1
|
0
|
3224
|
|
POST
|
Normally just do this with the labeling tab on the features class properties. Pick the label position (along the line), parallel. Then set the text to have a halo around it, so it masks the line underneath.
... View more
04-27-2016
05:52 AM
|
3
|
3
|
5788
|
|
POST
|
But that approach doesn't work with these UTM ids. >>> sr = arcpy.SpatialReference(26901)
>>> sr.name
u'NAD_1983_UTM_Zone_1N'
>>> sr = arcpy.SpatialReference('NAD_1983_UTM_Zone_1N'.replace("_", " "))
Traceback (most recent call last):
File "<pyshell#29>", line 1, in <module>
sr = arcpy.SpatialReference('NAD_1983_UTM_Zone_1N'.replace("_", " "))
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\arcobjects\mixins.py", line 949, in __init__
self._arc_object.createFromFile(item)
RuntimeError: ERROR 999999: Error executing function.
>>>
... View more
04-27-2016
05:25 AM
|
1
|
3
|
6583
|
|
POST
|
This name vs wkid to specify the sr is very odd. This wkid from my help files. sr = arcpy.SpatialReference(102007)
>>> sr.name
u'Hawaii_Albers_Equal_Area_Conic'
>>> sr = arcpy.SpatialReference('Hawaii_Albers_Equal_Area_Conic')
Traceback (most recent call last): # errors out here, but then replace the "_" with a space
File "<pyshell#23>", line 1, in <module> sr = arcpy.SpatialReference('Hawaii_Albers_Equal_Area_Conic'.replace("_", " "))
>>> sr
<SpatialReference object at 0x2a68850[0x1108ead0]>
>>> sr.name
u'Hawaii_Albers_Equal_Area_Conic'
... View more
04-27-2016
05:23 AM
|
1
|
0
|
6583
|
|
POST
|
You could just create it on the fly. A quick investigation... >>> import arcpy
>>> idList = [str(i+1).zfill(2) for i in range(0, 50)]
>>> idList
['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50']
>>> base = "269"
>>> for i in idList:
sr = arcpy.SpatialReference(int(base + i))
name = sr.name
print "WKID {} Name {}".format(int(base + i), name)
WKID 26901 Name NAD_1983_UTM_Zone_1N
WKID 26902 Name NAD_1983_UTM_Zone_2N
WKID 26903 Name NAD_1983_UTM_Zone_3N
WKID 26904 Name NAD_1983_UTM_Zone_4N
WKID 26905 Name NAD_1983_UTM_Zone_5N
WKID 26906 Name NAD_1983_UTM_Zone_6N
WKID 26907 Name NAD_1983_UTM_Zone_7N
WKID 26908 Name NAD_1983_UTM_Zone_8N
WKID 26909 Name NAD_1983_UTM_Zone_9N
WKID 26910 Name NAD_1983_UTM_Zone_10N
WKID 26911 Name NAD_1983_UTM_Zone_11N
WKID 26912 Name NAD_1983_UTM_Zone_12N
WKID 26913 Name NAD_1983_UTM_Zone_13N
WKID 26914 Name NAD_1983_UTM_Zone_14N
WKID 26915 Name NAD_1983_UTM_Zone_15N
WKID 26916 Name NAD_1983_UTM_Zone_16N
WKID 26917 Name NAD_1983_UTM_Zone_17N
WKID 26918 Name NAD_1983_UTM_Zone_18N
WKID 26919 Name NAD_1983_UTM_Zone_19N
WKID 26920 Name NAD_1983_UTM_Zone_20N
WKID 26921 Name NAD_1983_UTM_Zone_21N
WKID 26922 Name NAD_1983_UTM_Zone_22N
WKID 26923 Name NAD_1983_UTM_Zone_23N It errors out after 23.
... View more
04-27-2016
04:37 AM
|
1
|
0
|
6581
|
|
POST
|
Why not just use the WKID to reference the correct zone. NAD83 UTM xxN is numbered very logically NAD_1983_UTM_Zone_1N 26901 NAD_1983_UTM_Zone_2N 26902 ... NAD_1983_UTM_Zone_10N 26910 etc
... View more
04-27-2016
02:57 AM
|
1
|
1
|
6581
|
|
POST
|
Well a 2.5Gb image in a web scene is pretty ambitious! Is the pixel size of the tif far smaller than the DEM? You might want to resample them to the same pixel size to reduce the overall size.
... View more
04-27-2016
12:28 AM
|
0
|
1
|
2775
|
|
POST
|
Well, that seems fairly obvious. How big is the raster and the underlying DEM? Is this a tin? My general experience with building web scenes.. If it takes more than about 10mins to build the scene, there are too many features in it and you need to make it smaller.
... View more
04-26-2016
07:27 AM
|
0
|
3
|
2775
|
| 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
|