|
POST
|
There is no build in solution as far as I know so yes, you need to create animation yourself. Note that if you are using AcceleratedGraphics symbols doesn't support Xaml Control templates and visual states. Check this, you might get something useful information from that and extent the solution to support flashing. If you do, please provide your experience here or in the blog. You can select graphics but you need to provide Selected and Unselected states for the symbol and that is meaned for selection visualization but you could use that also but I wouldn't do that.
... View more
05-27-2013
01:22 AM
|
0
|
0
|
1221
|
|
POST
|
See sample from ArcGIS Runtime SDK for WPF -> Mapping -> Graphics Layers -> Add interactively / Add interactively Online. This should give you at least starting point.
... View more
05-27-2013
01:14 AM
|
0
|
0
|
3308
|
|
POST
|
Can you use FeatureLayer instead of GraphicsLayer? Like are the graphics short lived in memory or are those stored in the service/database?
... View more
05-23-2013
05:11 AM
|
0
|
0
|
663
|
|
POST
|
If you are using Standard level ArcGIS Runtime licence in your application you can use Local Server provided by the ArcGIS Runtime SDK for WPF (no other arcgis stuff installation needed) but if you are using Basic level you can't use Local Server. About this you can check http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/Functionality_set_requirements/017000000067000000/. If you want to use GeomteryService that is hosted in ArcGIS Online you can start with : http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer Tasks.arcgis.online is partly retiring in the end of this year, but I have asked what is the prefered service provided by the ArcGIS Online and will come back with that info. This is the solution that I have used in all my cases but you could create your own projection, use other libraries to do that and I might be unaware of easier solutions provided by the ArcGIS Runtime SDK for WPF. Edit: If you are projecting from WGS84 coordinates (WKID=4326) to web mercator (WKID=102100) then you can use WebMercator helper class. Just make sure that paramater MapPoints spatial reference is set to correct when giving it to the WebMercator projection method.
... View more
05-22-2013
12:43 AM
|
0
|
0
|
1435
|
|
POST
|
What is your maps SpatialReference? If you don't set it explicitly it get SpatialReference from first layer (usually basemap). If you can use LocalGeomteryService in your application you can use the code from Project example:
LocalGeometryService.GetServiceAsync(lgs => { _geometryTask = new GeometryService(); _geometryTask.Url = lgs.UrlGeometryService; _geometryTask.ProjectCompleted += geometryService_ProjectCompleted; _geometryTask.Failed += geometryService_Failed; }); After this is completed, you should have access to the GeometryService through task (_geometryTask). You should get the UrlGeometryService from lgs parameter.See also http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#//017000000039000000
... View more
05-21-2013
11:44 PM
|
0
|
0
|
1435
|
|
POST
|
Hi, I have tried to create a service that takes polygon / envelope as a parameter and returns string that contains URL to TiledPackage that is created by the python script but I cant get even prototype working. This is my first touch to python and ArcGIS Geoprosessing. I have created python script that takes polygon to extract and package name as a parameters. Then I have default values hard coded and then I call arcpy.ExportTileCache_management with those values. As a result, I get TiledPackage that is about size 164 kb regardless what polygon I give. I have cache stored on a external USB drive. Any pointers?
# -*- coding: utf-8 -*-
import arcpy
import os
import sys
import traceback
arcpy.env.overwriteOutput = True
# Get parameters for the script
polygonToExtract = arcpy.GetParameterAsText(0)
packageName = arcpy.GetParameterAsText(1)
# Set default values for extract tool
cacheSource = r"L:\Taustakartta\Cache_taustakartta\Taustakartta\Taustakartta"
cacheTarget = r"T:\TilePackages"
cacheName = packageName
cacheType = "TILE_PACKAGE"
storageFormat = "COMPACT"
scales = "8000000;4000000;2000000;800000;300000;160000;80000;50000;25000;10000"
areaofinterest = polygonToExtract
try:
arcpy.ExportTileCache_management(cacheSource, cacheTarget, cacheName, cacheType, storageFormat, scales, polygonToExtract)
except arcpy.ExecuteError:
# Get the tool error messages
msgs = arcpy.GetMessages(2)
# Return tool error messages for use with a script tool
arcpy.AddError(msgs)
# Print tool error messages for use in Python/PythonWin
print msgs
except:
# Get the traceback object
tb = sys.exc_info()[2]
tbinfo = traceback.format_tb(tb)[0]
# Concatenate information together concerning the error into a message string
pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])
msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"
# Return python error messages for use in script tool or Python Window
arcpy.AddError(pymsg)
arcpy.AddError(msgs)
# Print Python error messages for use in Python / Python Window
print pymsg + "\n"
print msgs
print "-- Script completed --"
... View more
05-20-2013
02:51 AM
|
0
|
1
|
970
|
|
POST
|
Hi, Does someone have samples/tutorials/blogs using OAuth2 authentication to ArcGIS Online with application logins in WPF / Windows Phone?
... View more
05-20-2013
01:38 AM
|
0
|
2
|
1163
|
|
POST
|
I think that you need to create the enumeration yourself. If there is another solutions, I would like to know that too.
... View more
05-20-2013
01:35 AM
|
0
|
0
|
1605
|
|
POST
|
Check samples from ArcGIS Runtime SDK for WPF under Geometry -> Geometry operations -> Project and Project Online If that doesn't help, let us know.
... View more
05-20-2013
01:33 AM
|
0
|
0
|
1435
|
|
POST
|
Here is the XAML: <esri:Navigation Height="140"
Background="SteelBlue"
HorizontalAlignment="Left"
Margin="0,0,605,344"
Name="navigation"
VerticalAlignment="Top"
Width="176"
Foreground="SteelBlue"
PanFactor="0.25"
IsManipulationEnabled="False"
Opacity="1"
>
<esri:Navigation.Map>
<esri:Map MinimumResolution="0.0000000000001" IsLogoVisible="False" WrapAround="True" />
</esri:Navigation.Map>
</esri:Navigation>
After some more testing it appears that the problem is because the <esri:Navigation.Map> is being set. Once I remove those four lines of XAML it works as your example shows. If i understood this correctly, you should create Map outside of the Navigation control and then reference to that with Map="{Binding ElementName=MyMap}". This way you don't create new Map for the navigation control but reference to existing one that is the correct.
... View more
05-20-2013
01:24 AM
|
0
|
0
|
1063
|
|
POST
|
Here is concepts in WPF runtime conserning MapPackages: http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/About_map_packages/017000000059000000/ You can find examples from ArcGIS Runtime SDK for WPF samples application that you get when installing the SDK. There all examples that doesn't have postfix Online uses local layers (tile or map package). If you have more specific questions, then we can answer more detailed.
... View more
05-20-2013
01:18 AM
|
0
|
0
|
624
|
|
POST
|
Hi, We need to share some Python toolboxes across the whole company. We have 2 sides in the production: core users has ArcMap installed on their laptops and others will use it through Citrix. What I would like to do is set the "My Toolboxes" or "System Toolboxes" to point to some shared folder where we can have the tools centralized manner. Is there some easy way to do this at machine level like setting some registry value to HKEY_LOCAL_MACHINE branch? with regards, caje
... View more
05-02-2013
01:51 AM
|
0
|
1
|
1182
|
|
POST
|
Thanks for the reply Khaled. So it was a bug. Good to know because that would have broken the link we are using in WebMaps if we don't include the ObjectId to it's correct place. I quess that the Attachment Id's are still FeatureService and not feature wide. So I need to get the attachment id fetched anyway? Thanks for pointing Upload API out, haven't checked that earlier. In our case, we want to have our information (feature information and the picture) used easily in the ArcGIS platform products. If you compare the usage between Upload and Feature Attachments, do you think that Upload can be considered as easily consumed manner? If I understood the concept of Upload correctly, I still want to use Feature Attachments as a storage for images so those can be easily accessed from WebMaps and other clients. For example, it is easy to attach the image for WebMap's popup with Image tag. with regards, Antti
... View more
03-10-2013
10:44 PM
|
0
|
0
|
2287
|
|
POST
|
Hi, This post has 2 things, first one interesting scenario how the REST endpoint is working and second part some questions how to work with the Attachments. I have hosted FeatureService with attachments enabled in the ArcGIS Online and I use direct REST query to add/update them from my Windows Service. I have noticed that the feature part of REST doesn't affect the attachment query at all and I can access all attachments from any feature endpoint. The case here is that we have published Feature Service that contains some traffic cameras around Finland and we are adding / updating the images to the Features as a attachments. At background I have Windows Service that does some SOAP calls to another system were we get the updated images in not-so-easily-used-in-the-ArcGIS-systems. --- Test case --- FeatureService : http://services.arcgis.com/4PuGhqdWG1FwH2Yk/arcgis/rest/services/Mittauspisteet/FeatureServer/0 Access to Feature: http://services.arcgis.com/4PuGhqdWG1FwH2Yk/ArcGIS/rest/services/Mittauspisteet/FeatureServer/0/44 List of Attachments with Feature 44: http://services.arcgis.com/4PuGhqdWG1FwH2Yk/ArcGIS/rest/services/Mittauspisteet/FeatureServer/0/44/attachments?f=html&token= Feature 44 has only 1 attachment with ID = 32. CASE 1: Access to Attachment with ID = 32 http://services.arcgis.com/4PuGhqdWG1FwH2Yk/ArcGIS/rest/services/Mittauspisteet/FeatureServer/0/44/attachments/32 --> I get correct Attachment CASE 2: Access to Attachment with ID = 33 http://services.arcgis.com/4PuGhqdWG1FwH2Yk/ArcGIS/rest/services/Mittauspisteet/FeatureServer/0/44/attachments/33 --> I get Attachment that is assigned to Feature 45 CASE 3: Access to Attachment with ID 32 but in context of Feature 45 http://services.arcgis.com/4PuGhqdWG1FwH2Yk/ArcGIS/rest/services/Mittauspisteet/FeatureServer/0/45/attachments/32 --> I get same attachment that I get in case 1 ----------------------------------------- CONCLUSION: The Feature specified in the URL actually doesn't do anything and I can access to all Attachments in context of any existing feature. ----------------------------------------- QUESTIONS: I haven't tested this with service that is hosted in the ArcGIS Server but do you know if it works the same and is this the behavior how it should be working? At least from my perspective, if we are using the Feature in the structure, then the query should only affect attachments that are associated with that. Can attachments be accessed with some other Identifier than it's Id? Like with the uploaded name directly from the REST. In my case, I wouldn't like to make AttachmentInfo call for every Feature. As a round work, we have the Attachment id stored in the feature by itself so we can construct the Image Url directly from the information known. In our case, each Feature should have only 1 attachment that is updated in the background. There are Features that doesn't have any attachments yet so we cannot directly relay that Feature ObjectId == Attachment Id even if we add Attachment in order. Any thoughts on this?
... View more
03-07-2013
10:58 PM
|
0
|
3
|
8386
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-12-2014 03:52 AM | |
| 1 | 08-27-2015 03:47 AM | |
| 1 | 12-08-2014 09:58 AM | |
| 1 | 05-05-2015 10:19 AM | |
| 1 | 07-30-2015 08:43 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|