POST
|
I'm working off of the Xamarin.Forms api found at (MobileMapPackage.OpenAsync Method )
... View more
06-16-2016
08:39 AM
|
0
|
0
|
851
|
POST
|
I'll dig into that a bit more because I'm sure this stems from my lack of experience in c# and Xamarin. In my bit of code above I get the error that OpenAsync does not exist in the current context. I'm not sure if I need to import something else or if I need to define OpenAsync myself.
... View more
06-16-2016
08:38 AM
|
0
|
3
|
851
|
POST
|
_mappackage = await OpenAsync("D:\\Source code\\Data\\Test.mmpk");
var mapPackageUri = new Uri(_mappackage.Item.Url);
var mapTable = new ServiceFeatureTable(mapPackageUri);
var mapPackageFeatureLayer = new FeatureLayer(mapTable);
myMap.OperationalLayers.Add(mapPackageFeatureLayer);
More specifically I'm not sure what to do for the OpenAsync method.
... View more
06-14-2016
01:49 PM
|
0
|
5
|
851
|
POST
|
Using the samples I can utilize a FeatureLayer but haven't been able to figure out how to load a mobile map package. Any suggestions? Thanks
... View more
06-14-2016
12:39 PM
|
0
|
7
|
2231
|
POST
|
Heh, it ended up that my GPS was attempting to get a location and I simply had to go outside Hard to do with a tablet plugged into your desktop. I also removed all the location data in xaml.
... View more
06-14-2016
08:40 AM
|
0
|
0
|
408
|
POST
|
I'm very new to Xamarin and am attempting to mash forms and android examples to get an idea of what I need to do. All I want is a dot of my location displayed on a map using xamarin forms. I don't see code brackets so I put it at pastebin. ########### C# file using Esri.ArcGISRuntime; using Esri.ArcGISRuntime.Data; - Pastebin.com I'm testing this on an android device and my error is "Default constructor not found for type Esri.ArcGISRuntime.Location.LocationDisplay. Any guidance would be appreciated. Thanks
... View more
06-13-2016
01:31 PM
|
0
|
1
|
2826
|
POST
|
We host the service on our own GIS Server and from AGOL we "add an item from the web".
... View more
02-13-2015
07:12 AM
|
0
|
0
|
291
|
POST
|
I recently did this and might have a little help. I had to keep both the polygon feature and the table it relates to in the document I published. Did you setup a relationship using relationship classes? Did you publish directly to ArcOnline or to your Server and than add it to ArcOnline? I'm successfully viewing related attributes in ArcOnline from the spatial data to a related table. However if I have a spatial dataset related to a table which relates to another table ArcOnline is failing to pull the attributes from that 2nd table.
... View more
02-03-2015
06:56 AM
|
0
|
2
|
291
|
POST
|
I'm attempting to figure out how to go about using the dynamic time slider https://developers.arcgis.com/javascript/jssamples/time_sliderwithdynamiclayer.html and instead of allowing access to all days between 1921 and 2009 like this code: timeExtent.startTime = new Date("1/1/1921 UTC");
timeExtent.endTime = new Date("12/31/2009 UTC"); I would like to only access months 1,2,3,9,10,11,12 between years 1921 and 2009. Any thoughts? Thanks
... View more
06-05-2014
01:03 PM
|
0
|
0
|
519
|
POST
|
That worked perfectly! Thank you so much. I've been struggling with this on and off for about 2 months. I put it right inside my function that the pool calls. and changed it just a little. I added my year string because multiple processes would try to create the directory with the same time. Adding the variable passed to the end of it made sure that each one was unique. Does the os.environ command set the temp directory for just the current process? def doCalc(year):
yearstr = str(year)
import time
time.sleep(1.1)
newTempDir = r"C:\temp\gptmpenvr_" + time.strftime('%Y%m%d%H%M%S') + yearstr
os.mkdir(newTempDir)
os.environ["TEMP"] = newTempDir
os.environ["TMP"] = newTempDir
... View more
05-12-2014
10:26 AM
|
0
|
0
|
1185
|
POST
|
csny490 - That's a really good idea. Thanks! I'll try that and report back.
... View more
05-12-2014
08:54 AM
|
0
|
0
|
1185
|
POST
|
I'm currently setting default and scratch workspaces to the year geodatabase I'm pulling information from. So process 1979 is setting the 1979 geodatabase as default and scratch and the year 1980 is setting the 1980 geodatabase as default and scratch. Like so: def doCalc(year):
yearstr = str(year)
print('Starting doCalc: ' + yearstr)
defaultGDB = "D:\\GIS\projects\\year" + yearstr + ".gdb"
#Setting environmental variables
arcpy.env.workspace = defaultGDB
arcpy.env.scratchWorkspace = defaultGDB
... View more
05-12-2014
08:22 AM
|
0
|
0
|
1185
|
POST
|
I have written a script that uses pool.map to process multiple netCDF files and store information in a table. Each process runs a function to process one year. Each year has it's own individual file geodatabase, table within that geodatabase, and mxd. I also set the default workspace and scratch workspace to that geodatabase. For example when the function loads the year 1979 it accesses the 1979 geodatabase, 1979 table within that geodatabase, and 1979 mxd. 1980 would access the 1980 geodatabase, 1980 table within that geodatabase, and 1980 mxd. If I run 1 process everything works fine. If I try to run 2 or more I get Fatal Error (INFADI) Missing Directory. It always happens at random times on a random process. A try catch phrase isn't catching the error. The process is completely shutting down. All the other processes continue and the process that crashes starts another year. It happens here: try: deleteme = Raster(arcpy.gp.ExtractByMask_sa(WSILayerRas, AOIshape)) except: continue Does anyone have any thoughts? Thanks
... View more
05-12-2014
07:05 AM
|
0
|
8
|
5104
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|