|
POST
|
We are planning a field solution based on ArcGIS Online hosted Feature Services, WebMaps and GeoColletor. We are hosting inspection spots in Feature Service that includes the date when it needs to be inspected. What we would like to achieve is that endusers that are using GeoCollector can see their jobs for the day in the client. So is there possible to filter Features by current date in WebMap's? If this is not possible to do this way, any ideas how we could get similar outcome? We try to get this solution done without coding but if there isn't any possible way to do this like that, then we might need to jump to the development side.
... View more
08-14-2013
11:26 PM
|
1
|
8
|
8099
|
|
POST
|
Hi, I know 2 source implementations that you can check. Depending on the scenario you have, you can use Dave Timmins implementation that you can find from https://github.com/davetimmins/ArcGIS.PCL. It is a portable class library that you can use to communicate with AGS / AGOL services without having reference to ESRI SKD. It is very nice implementation and you can use that also as a reference implementation if needed. Another implementation is my Knet.ArcGIS library https://github.com/anttikajanus/knet-arcgis that is based on ESRI SDK and uses Graphic class to work with so it needs a reference to SDK. I'm now converting my older implementations to that repository but it is proceeding slowly. My implementation of Apply Edits is Task based approach with using Task Based Asynchronous Pattern. Current implementation is only WPF with 4.5 framework but I'm also creating same tasks for other platforms. Example usage of EditFeaturesTask
public async Task<EditFeaturesResult> SaveFeatures(List<Graphic> graphicsToAdd, List<Graphic> graphicsToUpdate)
{
var editFeaturesTask = new EditFeaturesTask(INCIDENT_SERVICE);
var editFeaturesParameter = new EditFeaturesParameter();
if (graphicsToAdd.Count > 0)
{
editFeaturesParameter.AddGraphics.AddRange(graphicsToAdd);
}
if (graphicsToUpdate.Count > 0)
{
editFeaturesParameter.UpdateGraphics.AddRange(graphicsToUpdate);
}
var results = await editFeaturesTask.ExecuteAsync(editFeaturesParameter);
return results;
}
... View more
08-14-2013
09:21 AM
|
0
|
0
|
916
|
|
POST
|
Answered to http://gis.stackexchange.com/questions/68219/databinding-combobox-to-graphicscollection-esri-wpf-runtime.
... View more
08-09-2013
01:28 AM
|
0
|
0
|
809
|
|
POST
|
Hi there, I have done blog posts about things that more or less uses this approach. Sorry already for for linking to external site instead of describing solution here. Check if this helps you http://kajanus.net/?p=342, even thou it is done with Windows Store SDK. Just bind the selected graphic to your control and you should be ready to go. If you want, I might write more detailed blog post for WPF. For WPF you can use also DataContextProxy from this post http://kajanus.net/?p=15 There might be also one interesting post releated to this issue, or actually visualizing the selected item in here : http://kajanus.net/?p=132 (it seems that I have forgot to publish the GitHub for this example, I try to remember to do that later)
... View more
07-01-2013
03:38 AM
|
0
|
0
|
844
|
|
POST
|
Have you saved the graphic into layer and verified that it is found from the service? You can easily check that from the REST endpoint with query tool.
... View more
06-05-2013
11:12 PM
|
0
|
0
|
1978
|
|
POST
|
I am running on organizational account with admin role so probably not.
... View more
06-04-2013
05:52 AM
|
0
|
0
|
648
|
|
POST
|
I try to publish a service through REST API. I have uploaded csv file into ArcGIS Online and I try to publish it with publishParameters. The file is shared and it is uploaded with my account. I have managed to do this couple months ago but it seems that this works differently now. Any pointers what have happened or have I just broken my code? Call: "https://www.arcgis.com/sharing/rest/content/users/-myname-/publish?itemId=f0d499594c7c4600a439481b07da3f97,filetype=csv,token=aWKhLO9oIIvdHYwGpObDLED2brCqgtlL8IZAINDIYCNvJkNW7Y2v4-Yo2B5IjjE-JDLXMtDM_ASxc0CMcPDNehM-2S609AnzanXYL01IOWnfl-92CERTeglZcvl_KKRy,publishParameters={\"name\":\"TestService123456\",\"locationType\":\"coordinates\",\"latitudeFieldName\":\"Latitude\",\"longitudeFieldName\":\"Longitude\",\"description\":\"test description\",\"maxRecordCount\":500,\"copyrightText\":\"test copyright\",\"layerInfo\":{\"fields\":[{\"name\":\"ObjectId\",\"type\":\"esriFieldTypeInteger\",\"alias\":\"FID\",\"sqlType\":\"sqlTypeInteger\",\"nullable\":false,\"editable\":false,\"domain\":null},{\"name\":\"Level\",\"type\":\"esriFieldTypeInteger\",\"alias\":\"Level\",\"sqlType\":\"sqlTypeOther\",\"nullable\":false,\"editable\":true,\"domain\":{\"type\":\"codedValue\",\"name\":\"RouteDifficulty\",\"codedValues\":[{\"name\":\"Easy\",\"code\":1},{\"name\":\"Normal\",\"code\":2},{\"name\":\"Hard\",\"code\":3},{\"name\":\"Extreme\",\"code\":4}]},\"defaultValue\":null},{\"name\":\"Longitude\",\"type\":\"esriFieldTypeDouble\",\"alias\":\"Longitude\",\"nullable\":false,\"editable\":true,\"domain\":null},{\"name\":\"Latitude\",\"type\":\"esriFieldTypeDouble\",\"alias\":\"Latitude\",\"nullable\":false,\"editable\":true,\"domain\":null}]}}&f=json" Response: "{\"error\":{\"code\":403,\"messageCode\":\"GWM_0003\",\"message\":\"You do not have permissions to access this resource or perform this operation.\",\"details\":[]}}"
... View more
06-03-2013
01:48 AM
|
0
|
2
|
1450
|
|
POST
|
Glad to help. Remember to mark question answered if the question was answered.
... View more
06-02-2013
11:50 AM
|
0
|
0
|
1221
|
|
POST
|
I try to publish a service through REST API. I have uploaded csv file into ArcGIS Online and I try to publish it with publishParameters. The file is shared and it is uploaded with my account. I have managed to do this couple months ago but it seems that this works differently now. Any pointers what have happened or have I just broken my code? Call: "https://www.arcgis.com/sharing/rest/content/users/-myname-/publish?itemId=f0d499594c7c4600a439481b07da3f97,filetype=csv,token=aWKhLO9oIIvdHYwGpObDLED2brCqgtlL8IZAINDIYCNvJkNW7Y2v4-Yo2B5IjjE-JDLXMtDM_ASxc0CMcPDNehM-2S609AnzanXYL01IOWnfl-92CERTeglZcvl_KKRy,publishParameters={\"name\":\"TestService123456\",\"locationType\":\"coordinates\",\"latitudeFieldName\":\"Latitude\",\"longitudeFieldName\":\"Longitude\",\"description\":\"test description\",\"maxRecordCount\":500,\"copyrightText\":\"test copyright\",\"layerInfo\":{\"fields\":[{\"name\":\"ObjectId\",\"type\":\"esriFieldTypeInteger\",\"alias\":\"FID\",\"sqlType\":\"sqlTypeInteger\",\"nullable\":false,\"editable\":false,\"domain\":null},{\"name\":\"Level\",\"type\":\"esriFieldTypeInteger\",\"alias\":\"Level\",\"sqlType\":\"sqlTypeOther\",\"nullable\":false,\"editable\":true,\"domain\":{\"type\":\"codedValue\",\"name\":\"RouteDifficulty\",\"codedValues\":[{\"name\":\"Easy\",\"code\":1},{\"name\":\"Normal\",\"code\":2},{\"name\":\"Hard\",\"code\":3},{\"name\":\"Extreme\",\"code\":4}]},\"defaultValue\":null},{\"name\":\"Longitude\",\"type\":\"esriFieldTypeDouble\",\"alias\":\"Longitude\",\"nullable\":false,\"editable\":true,\"domain\":null},{\"name\":\"Latitude\",\"type\":\"esriFieldTypeDouble\",\"alias\":\"Latitude\",\"nullable\":false,\"editable\":true,\"domain\":null}]}}&f=json" Response: "{\"error\":{\"code\":403,\"messageCode\":\"GWM_0003\",\"message\":\"You do not have permissions to access this resource or perform this operation.\",\"details\":[]}}"
... View more
05-29-2013
05:57 AM
|
0
|
0
|
1861
|
|
POST
|
In my sample app, I am using some random FeatureService from the AGOL to provide geometries. I am just confused about this since I was so sure that I could find service under Esri's name. If I would have found one, that could have been easier to provide to our customers who need to something like this. Maybe we need to fix that ourselves and provide one service into use.
... View more
05-28-2013
04:23 AM
|
0
|
0
|
634
|
|
POST
|
You can do about anything to that geometry. Like in this case, you could for example run it through Buffer. Refer sample Geometry -> Geometry Operations -> Buffer a Point.
... View more
05-28-2013
01:43 AM
|
0
|
0
|
3308
|
|
POST
|
Does Esri provide any service in the ArcGIS Online where I could query boundaries of the countries by their names? I tried to find one but I didn't see any official production ready services that I could rely on. The idea behind is to visualize some sales statistics in the map and I would like to color countries with different sets. I don't want to have boundaries in my own data. In the solution I just mashup my demo data with geometries that I get from the ArcGIS Online and then render those to show actual business data.
... View more
05-27-2013
09:49 PM
|
0
|
2
|
739
|
|
POST
|
If I understood your need correctly, you can create polygon by using Convex Hull (http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?esri.arcgis.client~esri.arcgis.client.tasks.geometryservice~convexhullasync.html) If you are using Standard version of the SDK, you can use local GeometryService and Convex Hull (See example Geometry -> Geometry operations -> Convex Hull) or if you are using basic you can use GeometryService provided by the ArcGIS Online or your own ArcGIS Server.
... View more
05-27-2013
09:33 PM
|
0
|
0
|
3308
|
|
POST
|
So you want to do something like this?
<Window.Resources>
<esri:SimpleRenderer x:Key="renderer">
<esri:SimpleRenderer.Symbol>
<esri:SimpleFillSymbol BorderBrush="Black" Fill="Red" BorderThickness="1"/>
</esri:SimpleRenderer.Symbol>
</esri:SimpleRenderer>
</Window.Resources>
<Grid>
<esri:Map x:Name="_map">
<esri:ArcGISTiledMapServiceLayer ID="Basemap"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
<esri:GraphicsLayer ID="Graphics"
Renderer="{StaticResource renderer}"/>
</esri:Map>
</Grid>
public MainWindow()
{
InitializeComponent();
var layer = _map.Layers["Graphics"] as GraphicsLayer;
var polygon = new Polygon();
var pointCollection = new PointCollection();
pointCollection.Add(new MapPoint(-13446927, 6296089, new SpatialReference("102100")));
pointCollection.Add(new MapPoint(-12564245, 6508379, new SpatialReference("102100")));
pointCollection.Add(new MapPoint(-11882681, 6586592, new SpatialReference("102100")));
pointCollection.Add(new MapPoint(-10810055, 5636871, new SpatialReference("102100")));
pointCollection.Add(new MapPoint(-11178770, 4508379, new SpatialReference("102100")));
pointCollection.Add(new MapPoint(-12173184, 4351955, new SpatialReference("102100")));
pointCollection.Add(new MapPoint(-12877094, 4620111, new SpatialReference("102100")));
// Closing point = same as first one.
pointCollection.Add(new MapPoint(-13446927, 6296089, new SpatialReference("102100")));
polygon.Rings.Add(pointCollection);
polygon.SpatialReference = new SpatialReference("102100");
var graphic = new Graphic() { Geometry = polygon };
layer.Graphics.Add(graphic);
}
}
... View more
05-27-2013
02:25 AM
|
0
|
0
|
3308
|
| 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
|