|
POST
|
Here's a workflow that would probably work for you. Create a feature class that matches the schema in the shapefile. Add a domain for the outcomes (vacant, occupied, work required and "?" as a default value). In ArcMap, set the symbology for the domain field. Append the shapefile to the empty feature class. Publish the service. In Collector, the domain will show up as a drop-down.
... View more
12-19-2016
03:48 PM
|
0
|
0
|
484
|
|
POST
|
Try: 1=1 AND timeFilter >= '2016-12-19 00:00:00' or 1=1 AND timeFilter BETWEEN '2016-12-19 00:00:00' AND '2016-12-21 00:00:00' If the response format is JSON, then you will need to convert any returned date/time fields from Unix millisecond format. However for the query text, you will want to use a time string such as above, but something like '12/19/16' may also work. You may also wish to use the DATE keyword before your date/time string.
... View more
12-19-2016
10:37 AM
|
0
|
0
|
2050
|
|
POST
|
From github, ssl.create_default_context was added in 2.7.9. I also received the same error as you when using Python 2.7.5.
... View more
12-15-2016
10:04 AM
|
1
|
0
|
2303
|
|
POST
|
I used hostname = 'google.com' in line 3 of bixb0012's code, added a couple of print statements and had no issues obtaining google's info. I would suggest just using your base domain "xx.com" (from your sample code - with no "https://xxx.x....") for the host in line 3 of Joshua's code. You may need to use port 7443 instead of 443 in line 6.
... View more
12-14-2016
09:20 PM
|
1
|
6
|
2303
|
|
POST
|
Perhaps working with versioned data would work. You might try asking or tagging your question in the Managing Data section. Perhaps someone could explain versioning. Enabling edit tracking would tell you who added or edited data, but not who deleted it.
... View more
12-08-2016
12:43 PM
|
0
|
0
|
536
|
|
POST
|
Assuming your where statement is correct, try this statement in the update box (note the use of double quotes around the expression and not the field names): [{"field" : "conc_hors_CCM", "sqlExpression" : "code_mag1 + code_mag2"}] Regarding the where statement, is "concatenation" a field name?
... View more
12-01-2016
10:49 AM
|
0
|
2
|
1084
|
|
POST
|
Perhaps Trek2There might meet your definition of rudimentary.
... View more
11-29-2016
10:34 AM
|
1
|
2
|
1427
|
|
POST
|
Try using the Copy Runtime Geodatabase To File Geodatabase tool in desktop version 10.3 or above. I don't think the tool is available in ArcGIS Pro. PS: This page may also help: How To: Access offline edits from Collector for ArcGIS directly from an Android or iOS device
... View more
11-21-2016
12:01 PM
|
0
|
0
|
603
|
|
POST
|
The information about internal GPS accuracy is helpful. But the documentation indicates that for internal GPS accuracy is not available, yet data is being placed in the accuracy fields. I would expect that it is coming from the internal GPS, but could this data just be bogus numbers from some incomplete math calculation?
... View more
11-14-2016
02:34 PM
|
0
|
0
|
1408
|
|
POST
|
In the GPS receiver support document it states: "Estimated accuracy is not available for internal GPS systems on devices." However when using the internal GPS, these fields (Horizontal Accuracy and Vertical Accuracy) do contain data. Is it that the data is inaccurate? If so, what other data from the internal GPS should be considered inaccurate or suspect?
... View more
11-09-2016
02:17 PM
|
0
|
4
|
2481
|
|
POST
|
Here is a code example that will obtain the field information from the server link you mentioned. Since it does not require a password, I have omitted the password and token sections. import urllib
import urllib2
import json
import sys
import collections
URL = "https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/MapServer/0"
query_dict = { "f": "json" }
jsonResponse = urllib.urlopen(URL, urllib.urlencode(query_dict))
jdata = json.loads(jsonResponse.read(),
object_pairs_hook=collections.OrderedDict)[u'fields']
print json.dumps(jdata, indent=4, sort_keys=True)
Is this the type of information you were looking for?
... View more
11-03-2016
09:56 PM
|
1
|
1
|
2308
|
|
POST
|
If I understand what you are trying to do, I would suggest using the Domain To Table tool to create a table, then join the table to your feature. Then you could use the field calculator to set the field in your feature to equal the one you want from the domain table.
... View more
10-27-2016
02:23 PM
|
1
|
0
|
1722
|
|
POST
|
If you are starting with x-y data in Excel, here's a possible workflow. I like to use Excel's concatenate function to write code (Python, SQL, etc.). I have also used shapefile.py found at GeospatialPython to create shapefiles. Organize your data in Excel with the x-y data in columns with other attributes. Create a concatenate formula to write a line of Python code containing the x-y data and copy it down the column. Copy the column containing the code into a python editor. Clean up code as required using search and replace. Run script to create a shapefile. Add a projection file such as WGS 1984. The attached file contains an example of this process. The script to create the shapefile looks like this: import shapefile
filename = 'myshape'
w = shapefile.Writer(shapefile.POLYGON)
# edit field definitions as needed
w.field('NAME','C',40,0)
w.poly(parts=[[[25.9, 29.2], [22.942, 29.2], [22.942, 34.533], [25.9, 34.533], [25.9, 29.2]]])
w.record('one')
...
# Save shapefile
w.save(filename)
print "Done."
... View more
10-20-2016
10:36 PM
|
1
|
0
|
3181
|
|
POST
|
I don't believe it relates to the environment. The tool is able to list layers in a map and allows navigation to geodatabases and shape files.
... View more
10-14-2016
11:12 AM
|
0
|
0
|
431
|
|
POST
|
Commenting out the line is like deleting it. The purpose of the line is to limit the layers to types that the tool is designed to work with. But for some reason, the filter class in the Python toolbox code does not seem to be working properly, and I'm not sure how to debug it. If you limit the input layers to these three types, the tool will probably work.
... View more
10-13-2016
09:34 AM
|
1
|
2
|
2110
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-27-2016 02:23 PM | |
| 1 | 09-09-2017 08:27 PM | |
| 2 | 08-20-2020 06:15 PM | |
| 1 | 10-21-2021 09:15 PM | |
| 1 | 07-19-2018 12:33 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-15-2025
02:54 PM
|