|
POST
|
Are you asking if the esri/tasks/Geoprocessor class will be available in the final release of the JavaScript 4.0 API?
... View more
09-21-2015
08:58 PM
|
1
|
2
|
1286
|
|
POST
|
The method should be synchronous because it blocks the UI thread when you call it. Have you tried wrapping it within an asynchronous method? Examples of how to do this are available on the following pages: Calling Synchronous Methods Asynchronously https://msdn.microsoft.com/en-us/library/2e08f6yc(v=vs.110).aspx Create an Asynchronous Method http://www.csharp-examples.net/create-asynchronous-method/
... View more
09-21-2015
08:46 PM
|
1
|
1
|
1511
|
|
POST
|
Where do you have the data hosted? What is the speed you're seeing to execute the query? And could you either provide a sample of your data to test against or describe it enough so that I can create similar data on my end?
... View more
09-21-2015
07:59 PM
|
1
|
1
|
2174
|
|
POST
|
I think for the offline workflow you'd need to have tiles that are already projected to the Gall's Steographic coordinate system. I'm looking at the REST endpoint for the Export Tiles operation and I don't see anything available here to allow you to reproject the tiles. Export Tiles operation of World Street Map (MapServer) http://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer/exportTiles Export Tile Cache (Sample for Runtime .NET) https://developers.arcgis.com/net/sample-code/ExportTileCache/ I believe that this information is mentioned in the .NET Runtime help as follows: Tiled layers Tiled layers are precached layers. At the time of caching, a spatial reference is used and is therefore predefined. It's typically not possible to request tiled layers in a different spatial reference from that defined in the service (unless the server supports doing this on the fly; most do not). If an ArcGIS tiled layer is added to a map in a different spatial reference, it cannot be drawn. Spatial references—ArcGIS Runtime SDK for .NET | ArcGIS for Developers
... View more
09-21-2015
04:51 PM
|
1
|
1
|
2641
|
|
POST
|
Have you tried supplying a spatial filter in your REST call? ArcGIS REST API: Query (Feature Service/Layer) http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000r1000000
... View more
09-21-2015
09:49 AM
|
1
|
4
|
2174
|
|
POST
|
1. You could use multiple submodels to utilize more than one iterator. Other than iterating the feature classes what was the other iteration logic you needed to implement? Integrating a model within a model http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/integrating-model-within-a-model.htm ** NOTE: You'll want to pay particular attention to the following section on the above page ** 2. You could use inline-variable substitution or the calculate field tool to accomplish this. For either approach you'd need a method to calculate the name of the table or the path to it programmatically. Examples of inline model variable substitution http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm Calculate Value http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/calculate-value.htm
... View more
09-21-2015
09:37 AM
|
0
|
0
|
1443
|
|
POST
|
Are you wanting to use the ArcObjects .NET SDK or the ArcGIS for Runtime SDK? The only 10.2.6 .NET SDK we have available is the ArcGIS for Runtime SDK and it would not provide you with access to the ArcObjects classes (i.e. ESRI.ArcGIS.DataManagementTools).
... View more
09-21-2015
09:13 AM
|
0
|
1
|
1265
|
|
POST
|
Why don't you just keep the datetime column and calculate the time from it? The approach you're using is only going to give you the correct number when your times are within the same minute. Otherwise it is simply not going to take into account the time is based on 60 and not 100.
... View more
09-18-2015
11:31 AM
|
0
|
0
|
4507
|
|
POST
|
I get what you're doing. You're experiencing a logic error and not a software/syntax error. It appears that you're just taking the time and putting together the numbers in a double field. Then you're just subtracting the two numbers and assuming this would give you the difference in time. For example, from 9:15:01 to 9:10:47 is 4 minutes and 14 seconds (i.e. 254 seconds), but you're treating the times as the numeric values 91501 - 91047 = 454. Both are correct answers, but if you're wanting the answer to represent time you cannot take your approach. If this is supposed to represent time you're missing the critical fact that one minute is equal to 60 seconds and not 100 seconds. My code isn't designed to work with your numbers, but the logic is still valid for what you're trying to do. The only difference is that you'd need to parse your time values from the double values instead of using the strings I used. You would need to either cast the values to string and slice it to get the hours, minutes, and seconds for it. Otherwise if you didn't want to do this you'd need to rethink how you're calculating the field values. Instead of making them directly into double values you'd want to actually store the double values to represent the equivalent time of day in hours, minutes, or seconds. For example, 7:30 AM would be 7.5 hours [i.e. 7 + (30 / 60)] or 450 minutes [i.e. (7 * 60) + 30] or 27,000 seconds [i.e. 7.5 * 3600].
... View more
09-18-2015
11:23 AM
|
1
|
2
|
4507
|
|
POST
|
Are you just storing the time values as a double For example 8:30:45 would be 83045? If no, can you explain how your storing the time in your double field?
... View more
09-18-2015
10:59 AM
|
1
|
1
|
4507
|
|
POST
|
Everything appears to be working fine for me. Could you provide more information about how you're calculating the time difference and how you're storing the time values in the field (i.e. are you storing them as time objects or strings)? Below is a screenshot of what I'm seeing with the times specified with in your screenshot. I've also included the script I used to test. This script can also create a table with the times shown in your screenshot. import arcpy
import os
from datetime import datetime
m_fields = [("StartTime", "TEXT"), ("EndTime", "TEXT"), ("ExpectedDiff", "SHORT") , ("TimeDiffFC", "SHORT"), ("TimeDiffUC", "SHORT")]
m_time = [("7:46:35", "7:46:57", 22), ("8:06:10", "8:06:42", 32), ("8:22:54", "8:23:16", 22),
("8:24:51", "8:25:21", 30), ("8:33:22", "8:33:37", 15), ("9:07:56", "9:08:15", 19),
("9:10:47", "9:15:01", 254), ("9:21:39", "9:25:33", 234), ("9:29:51", "9:30:22", 31)]
def createdata(folder):
outPath = os.path.join(folder, "data")
if os.path.exists(outPath):
arcpy.management.Delete(outPath)
os.makedirs(outPath)
gdb = arcpy.management.CreateFileGDB(outPath, "data.gdb")
tab = arcpy.management.CreateTable(gdb, "TimeTable")
for fname, ftype in m_fields:
arcpy.management.AddField(tab, fname, ftype, field_length=8 if ftype == "TEXT" else "#")
with arcpy.da.InsertCursor(tab, [f[0] for f in m_fields][:3]) as cursor:
for time in m_time:
cursor.insertRow(time)
return tab
def calcTime(table):
arcpy.management.CalculateField(table, "TimeDiffFC", "(datetime.datetime.strptime(!{0}!, \"{2}\") - datetime.datetime.strptime( !{1}!, \"{2}\")).seconds".format("EndTime", "StartTime", "%H:%M:%S"), "PYTHON")
with arcpy.da.UpdateCursor(table, [f[0] for f in m_fields]) as cursor:
for row in cursor:
row[4] = (datetime.strptime(row[1], "%H:%M:%S") - datetime.strptime(row[0], "%H:%M:%S")).seconds
cursor.updateRow(row)
if __name__ == '__main__':
if '__file__' in dir():
srcPath = os.path.dirname(__file__)
else:
from sys import argv
srcPath = os.path.dirname(argv[0])
table = createdata(srcPath)
calcTime(table)
... View more
09-18-2015
09:57 AM
|
1
|
4
|
4507
|
|
POST
|
Could you run the tool, package your result into a gpk and upload it so that I can take a look at it?
... View more
09-18-2015
09:12 AM
|
0
|
0
|
1038
|
|
POST
|
In regards to the GIS portion of learning the JavaScript API, I would suggest taking the Esri Instructor Led Training courses. Developing Web Apps with ArcGIS API for JavaScript http://training.esri.com/gateway/index.cfm?fa=catalog.courseDetail&CourseID=50133569_10.x I know that the class is expensive, but I think it's worth it. Most of the people on my team take this class to get a solid understanding of the API so that we can help users adopt it. I don't think you can beat the attention to detail that is provided in this class. For the Web Programming (i.e. HTML5, pure JavaScript, CSS, etc.) there should be tons of schools and online programs available at various prices that can help you with this. If your organization offers tuition reimbursement I'd suggest finding a university that offers extensions courses or a college that offers online training. I once used the OReilly School of Technology for this type of training, but I believe they're currently restructuring their online offerings. I know that on my team we have to learn tons of different technologies. A couple of sites that we use on my team to keep up to date with clients are listed below. DevelopMentor https://www.develop.com/ Pluralsight http://www.pluralsight.com/ Lynda http://www.lynda.com/ Udemy https://www.udemy.com/ With the learning style you described I think you'd find any of the above sites useful. They all provide courses for various topics that you can review at your own pace and the prices aren't too bad.
... View more
09-18-2015
09:10 AM
|
1
|
0
|
2019
|
|
POST
|
Could you elaborate more on the question you have? I'm assuming from the information you've provided above that it's related to the Multiple Ring Buffer (Analysis) GP Tool.
... View more
09-18-2015
01:10 AM
|
0
|
1
|
1038
|
|
POST
|
Hi Justin, I was able to confirm that the install we provide doesn't allow you to remove any of the items installed by the ArcPad installer. If you wanted to modify the install you'd have install ArcPad on a machine, retrieve all of the files you're needing to be installed, and write a custom script to install them as needed. Although you could easily move the ArcPad files around to nearly any location you want, you would have to follow particular steps to move the files related to the ArcPad Data Manager and get them registered on the machine. These dlls would drive the integration of the ArcPad Data Manager within the Desktop client.
... View more
09-17-2015
05:04 PM
|
1
|
0
|
1859
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-19-2016 04:45 AM | |
| 1 | 09-24-2015 06:45 AM | |
| 1 | 09-15-2015 10:49 AM | |
| 1 | 10-12-2015 03:07 PM | |
| 1 | 11-25-2015 09:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|