|
POST
|
Khadijah, you may want to move thus to Cartography and Maps Or Mapping Info for: Moving Content
... View more
05-23-2015
02:27 PM
|
0
|
2
|
1556
|
|
POST
|
Actually I think what he has is ok (I think that's how I usually do it), although I would use the variable name sr like you have, and there is no need to reassign it to a new variable. ArcGIS Help (10.2, 10.2.1, and 10.2.2) My guess is the spatial reference error is coming up because the first argument he is using list_all_rasters, is invalid based on how he was creating it. If he uses my code, or a cleaner version when someone else rewrites is, I think he could then just use " list_all_rasters" as the first argument (and not "list_all_rasters[rasters]"). There still might be an issues with the spatial reference s you mention, but I don't have a chunk of data handy to test it with right now.
... View more
05-22-2015
09:42 PM
|
1
|
0
|
5569
|
|
POST
|
Hi Robert, One issue I can see is that the list_all_raster variable is having issues with the formatting and the continuation lines (and you have a \new.. in the middle and a few too many "). I'm sure that a half dozen others on this forum will be able to write this code in a cleaner way, but since so much of the long tif file name is the same, you can get the variable set with a simple loop. If you copy and past this in your code, make sure to check that the forest names and the N and E values pairs are set correctly....and my spelling is correct. Once the variable is set correctly, try you process again to see if there is another issue. theList = [["Luzon","20N_120E"], ["Luzon","30N_120E"], ["Luzon","20N_110E"], \
["Palawan","20N_120E"], ["Palawan","10N_110E"], ["Palawan","20N_110E"], \
["Negros_Panay","10N_120E"], ["Negros_Panay","10N_110E"], \
["_Mindanao","10N_120E"], ["_Mindanao","10N_110E"], ["_Mindanao","20N_110E"]]
cnt = 0
for tif in theList:
if cnt == 0:
list_all_rasters = "(newlossGreater_" + tif[0] + "forests_onlyloss_" + tif[1] + ".tif"
cnt += 1
else:
list_all_rasters = list_all_rasters + "; newlossGreater_" + tif[0] + "forests_onlyloss_" + tif[1] + ".tif"
list_all_rasters = list_all_rasters + ")"
print list_all_rasters The cnt == 0 is to make sure the ( with no ; at the front. That way each of the following tifs in the list start with the ; Once you exit the for statement, I add the closing ")" If you need the full variable wrapped in quotes for the input, you may need to do some slight adjustments. This may not fix the problem completely, but first things first. Good luck!
... View more
05-22-2015
08:41 PM
|
0
|
0
|
5569
|
|
POST
|
Hi Scott...You marked you're comment as the answered...you may want to go change it to Tim's since he actually answered it (or pointed you to the right page). If someone looks at this thread right now...the marked answer won't make much sense. It's all about making it easier for others too. Have a good weekend.
... View more
05-22-2015
06:07 PM
|
0
|
1
|
2488
|
|
POST
|
Hi James, I went back to look at my tech support incident, and there was no resolution or NIM/bug. I looks like when 10.3 final came out the incident was closed (so I could test it) with the standard "this is closed, but if you are still having issues..." When I sent my last message (shown in my previous post), that did not trigger the re-opening, and obviously I never followed up. I have not installed on 10.3.1 so I do not know if it is still an issue or no, but since I never heard anything definitive about it, it might still be an issue. are you just getting it with image services, or all? If you end up putting in a tech support ticket for this issue, and want to reference my incident/case number, let me know. It may help if they know it's not just one customer.
... View more
05-22-2015
05:57 PM
|
0
|
6
|
4337
|
|
POST
|
Hi Andy, Thanks for the insight. I agree, but working with our network services a while back and trying to convince them we needed the SSL cert and port, they kind of got stuck on us needing to everything that was recommended in the various documents. At the time it was easier to do this than to argue that it was a maybe overkill. But having it disabled is of course an inconvenience for us too, not just the public. So I will probably also rethink this although sometimes I still want the rest endpoint to not be viewable even if it is a public (not secure) service. So, for me, I would still like to have the fine tuning of having the web adapter version being blocked, but the internal machinename:6080 be viewable. There is a case for both. I think that is what Duarte is asking for too. That would be the best of both worlds/environments.
... View more
05-22-2015
05:36 PM
|
0
|
8
|
3230
|
|
DOC
|
Thanks for sharing Curtis. I have no need for this at this point since I still have workstation installed,but it sure nice to know there is a workaround for the ancient stuff once I don't. I'm going to make an effort thus year to get all that old stuff updated...but best laid plans...
... View more
05-22-2015
02:57 PM
|
1
|
0
|
1230
|
|
POST
|
Also check out Esri Video | Videos Covering GIS Events, Products, People, & Topics for short (usually about an hour) video tech sessions, webinars etc on just about any topic and skill level. All free.
... View more
05-22-2015
02:44 PM
|
1
|
0
|
1208
|
|
POST
|
Any chance it is hitting secure services that you don't have proper credentials? Just a guess, I haven't fully deciphered your script.
... View more
05-22-2015
09:42 AM
|
0
|
1
|
3185
|
|
POST
|
I'm working on something similar. I'm writing the items that I want to a variable. I then check to see it it's unique, and append it to my list if not. the I sort the list. then I write it to my .csv. In short... outFile = r"d:/_dataTest/myoutput.csv"
f = open(outFile, "w")
print ("File is open: " + str(not f.closed))
f.write("Type, TOCRef, FullPath, newPathn")
uniqueList = []
for root, dirs, files in os.walk(rootDir):
if something: #do stuff and create various anItem's
anItem = ("blah", "blah", "blah") # creates an item with the fields or variable values I want
if anItem not in uniqueList: # created tuple list of uniq combinations
uniqueList.append(anItem) #appends the item only if it is completely unique
#once all is done and everything is appended and unique
uniqueList.sort() # sorts the list, order Type, Path, TOC
for item in uniqueList:
# creating output as Type, TOC, Path
f.write("{},{}, {}\n".format(item[0], item[2], item[1]))
f.close() I trimmed this from a much larger script so obviously it will not run as is. Hope this helps.
... View more
05-21-2015
04:00 PM
|
1
|
0
|
4411
|
|
POST
|
Hi Shafi, quick answer, for general javascript and flex api web pages, this is how I have done it... - secure certain folders in ArcGIS Server (AGS). - security set on AGS with https and an ssl cert in place. - To access layers, use a proxy that passes "public" services through without an issue, and uses a token based on the requester to access secure services. I haven't been able to work with web app builder for a while (hopefully in a week or two) so I can't give good instructions on secure services in WAB...things may have changed since I last tested. As for creating the services, other than making sure there isn't a basemap included in the service (basemaps are handled separately) I don't think there was anything special about them. On Web AppBuilder Developer Edition – Customization Resource List I have a link to Installing Robert’s Enhanced Search Widget for the Web AppBuilder by Tapas. He has documented in detail many steps, including working with proxy's. Don't be fooled by the name....it's more than just the search widget. I hope this helps.
... View more
05-21-2015
01:16 PM
|
1
|
0
|
924
|
|
POST
|
Jayanta, that doesn't work if you have the rest end point disabled, you get the error you can add ?f=pjson to the end to get a listing, e.g. http://<servername>:6080/arcgis/rest/?f=pjson But it's not the nice formatting that you would like and you can't access the javascript view direct. We have our public services directory disabled for external use (per esri recommended steps for security). The other option is just looking at it in catalog, but the services directory is a very handy too. I too would like to be able to shut it off externally (i.e. web adapter) but keep it open with the <server:6080>.. I haven't looked to see if anyone has this in the ideas page yet. Have you Duarte? Edit: fixed typo. added sample link. formatted.
... View more
05-21-2015
11:58 AM
|
1
|
10
|
3230
|
|
POST
|
Off thread subject, but to respond to Donna Pitzer, Using @mention In short, you would type "@kelly_hutchins" without the quotes FYI Kelly Hutchins (Kelly, bumping for above message)
... View more
05-21-2015
09:32 AM
|
0
|
0
|
2662
|
|
POST
|
I'm not an expert on lidar, so won't even try to answer that, however... Are your .e00 the old coverage/grid format? I know it is still possible to load ArcInfo Workstation 10.0 and have it run with ArcGIS Desktop 10.3, if that is what you are needing for extracting the .e00 files. This is an old thread COMMENT: ArcGIS 10.2 and ArcInfo Workstation (works without uninstall) but should help get it setup. I run them side-by-side still. It's also supposed to be available in Desktoop, but I've never tried it. Just in case you want to go thru that process.
... View more
05-20-2015
09:36 PM
|
0
|
0
|
1135
|
|
POST
|
Also, make sure you are specifying the coordinate system I'm assuming they are WGS84 if geocoded from ArcGIS Online or similar. as for labeling near the point, make sure there is a column with some identifying name. Ones you make you Display XY event, you will want to save it to (right click and Export). To save it as a shapefile, call the file Mypoints.shp or if ou have a file geodatabase (fgdb - my preference), you can do similar to this where temp.gdb is the name of my fgdb. To label the points, right click on the new layers so you can select the properties, and in the Label tab Sorry this isn't pretty, but I know you are in a rush. Once you buffer your points, if the unique name does come over to the buffers so you can use that for labeling, you can use a join between the two (since there should at least be a common field, or use the joinitem (to permanently attache the attribute from the point file to the buffer. Then you can use labeling on the buffer file. I hope this helps. we've all been there on learning and having rush jobs. good luck. edit: looks like Chris already responded and has the same info.
... View more
05-20-2015
06:25 PM
|
1
|
0
|
3811
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-08-2018 08:21 AM | |
| 1 | 10-07-2015 09:48 AM | |
| 1 | 10-25-2015 12:23 PM | |
| 1 | 11-02-2017 09:00 AM | |
| 1 | 11-04-2016 02:11 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-31-2025
04:56 PM
|