POST
|
Thanks Rebecca. For now, I try to using combination of loop and sorting. Let's see how it goes and if it doesn't, we'll try something else.
... View more
12-11-2017
11:29 PM
|
0
|
0
|
662
|
POST
|
Thanks Dan Yups..it's a sorting issue. On progress to solve the debugs.
... View more
12-11-2017
11:23 PM
|
0
|
0
|
662
|
POST
|
Hye Dan, Yups..topdown is correct. The result of print statements is below; How I want add the shapefile from the last folder, thats mean the bottom of printout. Because in this root folder, the folder with date will be update with the new folder following by date. My task is to pick up the latest folder (CURRENT date) that contain the shapefile. Thank you.
... View more
11-20-2017
11:11 PM
|
0
|
2
|
662
|
POST
|
Hye everyone, I have create one Python file, the task is to add layer from the latest or current folder following date of folder. The sample folder is below; This is my sample code on Python; import arcpy
import os
# suppose you want to add it to the current MXD (open MXD)
mxd = arcpy.mapping.MapDocument(r"C:\Users\User\Documents\MTSB_JPS\MXD\test.mxd")
dataFrame = arcpy.mapping.ListDataFrames(mxd, "*")[0]
# base folder
workspace = r"C:\Users\User\Documents\MTSB_JPS\Flood_Forecasting_Outputs\TRN"
walk = arcpy.da.Walk(workspace, topdown=False, datatype="FeatureClass")
for dirpath, dirnames, filenames in walk:
for filename in filenames:
layerfile = os.path.join(dirpath, filename)
addlayer = arcpy.mapping.Layer(layerfile)
arcpy.mapping.AddLayer(dataFrame, addlayer, "BOTTOM")
mxd.save()
arcpy.RefreshTOC()
arcpy.RefreshActiveView()
del addlayer, mxd The problem is, this code can't add the layer from the latest or current folder. It should add the layer from "20171117_0600_AF" but when I run this code, it add the layer from "20170701_2000_AF" folder. Please help.
... View more
11-20-2017
07:02 PM
|
0
|
6
|
771
|
POST
|
Hello everybody, I'm doing the conversion from Raster with tiff format (with GDM_2000_MRSO Spatial reference) to polygon shapefile. I want to set the new shapefile with WGS84 for spatial reference. The problem is, the new shapefile with WGS84 not match with imagery basemap (esri basemap) or others basemap with spatial reference wgs84. can somebody tell me the best idea to convert tiff to shapefile? with gdm 2000 mrso to wgs84? is it good to do conversion in arcgis with different spatial reference? Please help me.. Thank you. #tiff conversion #gdm2000towgs84
... View more
04-25-2017
01:17 AM
|
0
|
4
|
1785
|
POST
|
Hi Mattias, I'm using compiled version for this my flex apps. If so, can I assume if using a compiled versions we can't update or customize for this sign in popup? I've tried to search and google but did not find the solutions. thanks for your info.
... View more
09-22-2015
08:06 PM
|
0
|
2
|
654
|
POST
|
Hi, How do I remove the url or address directory on the display in sign in po-pup when I login in my flex application. I tried to clear at arcgis flex viewer manager but to not avail. But I still need this sign in popup for security features. Please help, Thank you.
... View more
09-21-2015
09:51 PM
|
0
|
4
|
3222
|
Online Status |
Offline
|
Date Last Visited |
06-06-2024
09:27 AM
|