POST
|
Hello How store labels as a separate layer so it can go over map features for Vector basemap?
... View more
02-28-2022
12:56 PM
|
2
|
1
|
562
|
POST
|
Hello, I am getting this error with your code ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='myorg.maps.arcgis.com', port=443): Max retries exceeded with url: /sharing/rest/generateToken (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001EB4CC5F448>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')) any suggestions?
... View more
02-16-2022
08:38 AM
|
0
|
0
|
8874
|
POST
|
I checked and I don't miss anything seems "f" doesn't work here txtFileNameNoExt = f"{os.path.splitext(txtFileNameWithExt)[0]}_{datetime.datetime.now():%Y_%m_%d}" ^ SyntaxError: invalid syntax also here arcpy.env.workspace = my_Path arcpy.Rename_management(txtFileNameWithExt,f"{txtFileNameNoExt}.shp")
... View more
02-14-2022
09:13 AM
|
0
|
1
|
1111
|
POST
|
Hello @KimGarbade I don't way but I run your code on jupyter notebook on Arcpro and works fine when I am trying to run on PyScripter I am getting error #rename shapefile
txtFileNameWithExt = "op.shp"
txtFileNameNoExt = f"{os.path.splitext(txtFileNameWithExt)[0]}_{datetime.datetime.now():%Y_%m_%d}"
arcpy.env.workspace = my_Path
arcpy.Rename_management(txtFileNameWithExt,f"{txtFileNameNoExt}.shp")
... View more
02-14-2022
08:58 AM
|
0
|
4
|
1116
|
POST
|
Hello I am trying to rename shapefile to current date like this dd_02112022.zip I am created zip file but I can't find out how to rename shapefile or feature class before zipping all together. any python code or arcpy to rename and add current date. Best,
... View more
02-11-2022
01:44 PM
|
0
|
7
|
1678
|
POST
|
Hello I want to hide some fields on Survey123 Analyze Results page anyway i can do this? Since I plan to share the results through the Analyze page, I would like the hidden fields not to appear in the summary. Is this possible? Thanks
... View more
02-10-2022
01:16 PM
|
0
|
0
|
276
|
BLOG
|
Hello I shared Analyze page with some users but we can't see some fields? and shows this. What is of meaning of this? I didn't find anything about those dot in green area.
... View more
02-07-2022
01:08 PM
|
0
|
0
|
931
|
POST
|
Hello All I am trying to create zip file with name and current date. example: Land_01242022.zip I created shapefile with current date like this Land_todayDate.shp. But I am having problem to have same format for zip file with all shapefile on it. I want something like this : Land_todaydate.zip I have this code but this just create zip file with name and not adding date to it. Expression: zipshape(r"Path","Name") this function requires the two inputs folder (path to the shapefile) and name (shapefilename, for example if your shapefile is foo.shp, the name should be foo (without the extension). it doesn't work with one input. code Block: import os
import glob
import zipfile
def zipshape(folder, name):
os.chdir(folder)
zipname = name + ".zip"
flist = glob.glob(name + "*")
with zipfile.ZipFile(zipname, "w") as newzip:
for ff in flist:
if ff[-4:] != "lock" and ff != zipname:
newzip.write(ff)
return os.path.join(folder, zipname) Date Type File I need to run this everyday because I need to add date or maybe just overwrite pervious zip file with new date.
... View more
01-24-2022
12:31 PM
|
0
|
0
|
591
|
POST
|
@curtvprice Thanks a lot I can create zip file right now. Just one question do you know how can rename the zip file which I created rename with current date land_TodayDate.zip.
... View more
01-24-2022
10:17 AM
|
0
|
0
|
593
|
POST
|
I created shape file and added date whenever you run the model. Right now I am trying to zip the shapefile and then next step rename it like this : "A_todaydate" I don't understand this part. what I need to replace. how can I get already shapefile created and zip it.
... View more
01-21-2022
10:04 AM
|
0
|
1
|
615
|
POST
|
Hello I can create zip file but the zip file is empty. zipshape(r"E:\mypath","open")
... View more
01-21-2022
09:43 AM
|
0
|
3
|
625
|
POST
|
Hello I am having problem to add date to my file I am getting this error in ArcPro I am having problem to set copy features output. I tried with code here too
... View more
01-19-2022
08:58 AM
|
0
|
0
|
1141
|
BLOG
|
Hello all I have these so have and I am getting this error: JS Code function returnFeatures2(ID,Token){
var xmlhttp = new XMLHttpRequest();
var token = Token // This is a field token calculation
var url = "https://services.arcgis.com/*****/ArcGIS/rest/services/******/FeatureServer/0"
+"query?where=vehicle_id%3D%27"
+ ID // The parameter filter
+ "%27&objectIds=&time=&resultType=none&outFields=*&returnHiddenFields=false&returnIdsOnly=false&returnUniqueIdsOnly=false&returnCountOnly=false&returnDistinctValues=false&cacheHint=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&having=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pjson"
+ "&token=" + token
xmlhttp.open("GET",url,false);
xmlhttp.send();
if (xmlhttp.status!=200){
return "Error1"
} else {
var outValue = xmlhttp.responseText;
}
return outValue;
} Xlsx Form
... View more
01-18-2022
09:00 AM
|
0
|
0
|
4238
|
BLOG
|
I am thinking my code is not correct I will test it Thanks a lot
... View more
01-14-2022
01:42 PM
|
0
|
0
|
4275
|
Title | Kudos | Posted |
---|---|---|
1 | 05-14-2024 01:35 PM | |
1 | 03-11-2022 11:40 AM | |
1 | 08-25-2023 10:36 AM | |
3 | 06-26-2023 09:02 AM | |
1 | 05-24-2023 08:46 AM |