|
POST
|
Andrew, Please take a look at Ian Murray post in Python Script to Merge Files. This would need to be modified to check for "bpoly" in the filename. Another python sample source is Batch merge ArcGIS.
... View more
07-09-2019
07:07 PM
|
1
|
3
|
5586
|
|
POST
|
Anupam Sharma, ESRI has a many free videos at their E360 site. As Joe Borgione noted above, Google and YouTube will be your best friends as well.
... View more
07-09-2019
07:07 AM
|
2
|
0
|
1047
|
|
POST
|
Have you tried using a third party iDevice file manager such as iExplorer. This has been able to access files that I have not been able to access via iTunes.
... View more
07-09-2019
06:57 AM
|
1
|
1
|
2184
|
|
POST
|
Malcolm, When calling a function to assign a value to an attribute in field calculator you need to pass the parameters needed in the function. In this case, the pinning function needs to pass the datetime (FullDateTime) and the temperature (Jan26_temp) so your function call should be pinning(!FullDateTime!, !Jan26_temp!) These will be passed to the function as the variables defined in the def statement. In the case below, FullDateTime is assigned to dt and Jan26_temp is assigned to temp. You then use dt and temp in your function to perform your calculations/comparisons and return a value or variable using a return statement, in this case the value of temp or -99. def pinning(dt, temp):
if dt.strftime("%Y/%m/%d") == "2019/01/26":
return temp
else:
return -99 Working with dates in ArcGIS is temperamental. What I have done above is used the strftime method of a datetime class to return a string representing the date in the format of YYYY/MM/DD and compare it to the string "2019/01/26", the date you are checking. Another method you could use would be to create a datetime for 1/26/2019 and check the date portion of this value to the date portion of your FullDateTime chk = datetime.datetime(2019,1,26)
def pinning(dt, tmp):
if dt.date() == chk.date():
return tmp
else:
return -99 I hope that helps.
... View more
07-08-2019
08:36 PM
|
1
|
1
|
2023
|
|
POST
|
Joe, You are correct AddXY uses or will add the Point_X and Point_Y attributes to your feature when run. We use this when pushing out data to AGOL to add X and Y attributes to be consumed by other applications such as Collector or Survey123 that need lat/long in WGS 1984 decimal degrees for example. arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(4326) #WGS 84
arcpy.env.geographicTransformations = "WGS_1984_(ITRF00)_To_NAD_1983"
arcpy.AddXY_management(fc) One other side note, do not forget about the transformation for projecting coordinate systems in addition to the coordinate system. This can be added to your script using the arcpy.env.geographicTransforamtions.
... View more
07-08-2019
05:57 PM
|
2
|
0
|
8539
|
|
POST
|
Joe, Are you looking to do this for a single point or all points in a feature class? If for a feature class you can use Add XY Coordinates. This will add or update the PointX and PointY fields to your feature class. To do this for a different coordinate system than that of the feature class you need to set the output coordinate system and transformation in the environment settings when running the tool. I use this all the time to add GCS decimal degrees to our state plane data for use in other applications. I will add a few screen shots once I can get on a desktop system later this evening.
... View more
07-08-2019
03:13 PM
|
0
|
2
|
8539
|
|
POST
|
Malcolm, You are correct on the 0-6 for weekday(), I was thinking of isoweekday() which is 1-7 for Sunday through Saturday. Sorry about that. As you already are submitting a date type all you need is weekno = labelday.weekday() in your code to replace weekno = datetime.datetime(lableday).weekday() and you do not need the import statement. Something along the lines of the following using your naming: def typodate(lableday):
weekno = lableday.weekday()
if weekno < 5:
return "Weekday"
else:
return "Weekend"
... View more
07-08-2019
11:55 AM
|
1
|
0
|
2885
|
|
POST
|
André Souza As you do not have DNS enabled, have you tried to connect using the IP address of the server rather then the server name?
... View more
07-08-2019
11:21 AM
|
0
|
0
|
3125
|
|
POST
|
Malcolm, Can you please 1) provide a copy of the revised code and 2) confirm the FullDateTime attribute is a type of datetime and not a string. You can check this by right clicking on the attribute name in the table and selecting properties or just looking at the field information for the feature.
... View more
07-08-2019
09:05 AM
|
0
|
2
|
2885
|
|
POST
|
André Souza Can you show more of the connection dialog when you are creating the connection and not just the error? As Jonathan Farmer noted, check for connection between the two systems via ping and telnet. Check the ping for both IP and FQDN. Do you have a firewall between the two systems or could they be running of different subnets/vlans? Is port 1433 open and is this the port the SQL server is running you are trying to connect to? Especially if not running on the default version.
... View more
07-08-2019
08:24 AM
|
0
|
0
|
3125
|
|
POST
|
I Putu Yogiswara What platform are you displaying your data? You can just turn your basemap off or if on a desktop platform not include one.
... View more
07-08-2019
08:08 AM
|
0
|
0
|
1016
|
|
POST
|
You need to 1) pass (!FullDateTime!) to your function not (!DayType!) 2) move the "weekno = datetime.datetime(labelday).weekday()" line into your def statement rather than outside. Another consideration, what type of data is FullDateTime: string, datetime, etc. 3) your first condition should be "weekno <= 5" as 1 through 5 are Monday through Friday. 6 and 7 are Saturday and Sunday for the weekday() function.
... View more
07-08-2019
07:46 AM
|
1
|
4
|
2885
|
|
POST
|
Lynn, Yea, I just opened it in IE and I am seeing the same. It does open correctly in Chrome or if you download it and open it with Acrobat. Have a great day.
... View more
07-08-2019
07:35 AM
|
0
|
0
|
1575
|
|
POST
|
This issue persisted until the January iOS update. Once the Update was installed the issue stoped. We also have now fully moved over the Collect for ArcGIS and no longer use the "Classic" version.
... View more
07-07-2019
02:21 PM
|
0
|
0
|
1075
|
|
POST
|
After evaluating this again, apparently AGOL and Collector now support the full domain list for features published using Types (Unique symbols). Previously, only the feature types published to the map were available to collect for selection. Newer releases of AGOL still only display the symbology as published in the map but you can select any value in the domain when adding a point. If "Other" point types are enabled in the symbology, they will be displayed as well on your map.
... View more
07-07-2019
02:02 PM
|
0
|
0
|
817
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | a week ago | |
| 1 | 09-16-2019 05:49 PM | |
| 1 | 06-11-2025 03:32 PM | |
| 1 | 12-26-2023 09:15 AM | |
| 1 | 12-29-2023 10:06 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|