|
POST
|
Thanks for the fast response ! I'm not wrapping the tool in a script, do I need to do that? I don't see anything in the list for error 00151 that would apply to my tool. http://resources.arcgis.com/en/help/main/10.1/index.html#//00570000009n000000 The tool takes one argument (a long), and returns one argument (a long). For IGPFunctionName.MinimumProduct I'm returning esriProductCodeBasic ... is that correct? This worked at 10.0. Any word on whether this use case is supported when both desktop and server are installed on same machine?
... View more
09-10-2012
09:36 AM
|
0
|
0
|
1882
|
|
POST
|
Hi NobbirAhmed - Here's my results: 1. You have compiled the C# project by removing the reference to ADF and adding it back AND - setting the Debug mode to 'Any CPU'. yes 2. In order to run the tool in ArcMap you need to register it with the 32-bit EsriRegAsm located at ../Program Files (x86)/Common Files/ArcGIS/bin - if the registration fails then you have some problem with the project settings. success (I did both 32 and 64 bit esriregasm). Assuming step 2 succeeded. 3: Run the tool in ArcMap. If you want to publish the tool it will fail as the Server does not know about it yet. So, don't publish now until performing step 4. successfully ran 4. Register the DLL with the 64-bit EsriRegAsm located at /Program Files/Common Files/ArcGIS/bin folder. If registration succeeds .. Did after step 2. 5. From ArcMap, share the result as a service. Failure - error 00151 after running analyze. [ATTACH=CONFIG]17565[/ATTACH] 6. You should now be able to consume the service from any machine whether the DLL is registered with that machine. Let me know what error message you get (if any). Could you please confirm that these steps work on a machine with both Desktop and server are installed? Thanks, Kirk
... View more
09-09-2012
05:19 PM
|
0
|
0
|
1882
|
|
POST
|
I had the same problem and was able to get the 64 bit version of EsriRegAsm to succeed by removing the reference to ESRI.ArcGIS.ADF, and adding a reference to ESRI.ArcGIS.ADF.Local, and recompiling. However, when I go into arcmap and run the tool, then right click to share as a geoprocessing package, it fails. I have both arcgis desktop and server installed on the same machine. I'm getting an error 00151.
... View more
09-09-2012
08:11 AM
|
0
|
0
|
1882
|
|
POST
|
Hi - The response to this indicates that the layer supports the Query capability ... http://tiles.arcgis.com/tiles/FSrqtdqRXhw9e7ql/arcgis/rest/services/originalLandGrants/MapServer/0?f=pjson "hasLabels" : false,
"capabilities" : "Map,Query,Data",
"maxRecordCount" : 1000,
"supportsStatistics" : true,
"supportsAdvancedQueries" : true,
"supportedQueryFormats" : "JSON, AMF" However, I get a 404 when I run this query: http://tiles.arcgis.com/tiles/FSrqtdqRXhw9e7ql/arcgis/rest/services/originalLandGrants/MapServer/0/query?returnGeometry=false&spatialRel=esriSpatialRelIntersects&where=1%3d1&f=pjson Am I doing something wrong? Thanks, Kirk
... View more
08-26-2012
03:57 PM
|
0
|
5
|
4226
|
|
POST
|
Thanks Mike & Pho for the fast response. Q: Can I store a copy of ArcGIS Online map service tiles for offline use? A: No. Temporary caching of tiles in a client is permitted for performance reasons while the client is connected to the service. This local cache is not allowed to be shared outside of each end user's connected application. The local cache cannot be copied somewhere else and used again with another application or service or for offline use So even though OSM is available on ArcGIS Online, it appears it would be a violation of the TOS to use it. Is there a tool that allows me to create a TPK from http://www.openstreetmap.org/ ?
... View more
04-25-2012
10:10 AM
|
0
|
0
|
541
|
|
POST
|
Someone was telling me it would be a violation of the terms of use to create a tile package (TPK) of Bing or even Esri's base map for use on a device in a disconnected mode. Is there more information on this somewhere?
... View more
04-24-2012
01:10 PM
|
0
|
4
|
1307
|
|
POST
|
It was nice to get an extended authorization code for Beta 2 ... now all I need to do is install it. When I go to the beta site though, it says "downloads are now closed". Any chance we could re-open those until pre-release is available? Thanks, Kirk
... View more
03-22-2012
02:30 PM
|
0
|
1
|
751
|
|
IDEA
|
OData appears to make life easier. Here's a good white paper by David Chappell. I'd like to be able to publish a mapservice as an OData endpoint, and also have ways to consume it provided in the web sdks.
... View more
01-26-2012
07:15 AM
|
20
|
1
|
2716
|
|
IDEA
|
OData appears to make life easier. Here's a good white paper by David Chappell. I'd like to be able to publish a mapservice as an OData endpoint, and also have ways to consume it provided in the web sdks.
... View more
01-26-2012
07:15 AM
|
18
|
2
|
1806
|
|
POST
|
Thanks Ravi, Is there a 10.1 sample server available for me to test against?
... View more
11-29-2011
05:50 AM
|
0
|
0
|
526
|
|
POST
|
I would expect the count to be zero if Where="1=2", however I get 3149 (all features). http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=1%3D2&time=&returnCountOnly=true&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=&f=html In some cases I notice setting Where="1=1" is used to return all rows, seems like 1=2 would return none.
... View more
11-28-2011
11:20 AM
|
0
|
3
|
933
|
|
POST
|
I want to load some features into a featurelayer, but Fiddler shows no request when featurelayer.Update() is called. Neither UpdateCompleted nor UpdateFailed get fired. I'm using SelectionOnlyMode. Is there some way to load a featurelayer with only the features based on a list of ObjectIDs ? private void button1_Click(object sender, RoutedEventArgs e)
{
var fLayer = MyMap.Layers["MyFeatureLayer"] as FeatureLayer;
fLayer.ObjectIDs = new int[] { 1, 2, 3, 4 };
fLayer.UpdateCompleted += (s, ea) =>
{
Debug.Print(fLayer.Graphics.Count.ToString() + " features selected");
};
fLayer.UpdateFailed += (s, ea) =>
{
Debug.Print("update failed: " + ea.Error.Message);
};
fLayer.Update();
} <esri:Map x:Name="MyMap" Extent="-130,10,-70,60" Grid.Row="1">
<esri:Map.Layers>
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<esri:FeatureLayer ID="MyFeatureLayer" Mode="SelectionOnly"
Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0" >
</esri:FeatureLayer>
</esri:Map.Layers>
</esri:Map>
<Button Content="Button" Click="button1_Click" Height="21" HorizontalAlignment="Left" Margin="58,0,0,0" Name="button1" VerticalAlignment="Top" Width="63" />
Any suggestions would be greatly appreciated, Thanks!
... View more
11-28-2011
10:30 AM
|
0
|
1
|
1793
|
|
POST
|
Is it good MVVM practice keep Draw out of the ViewModel, (and only in the View)? If so, how can I do that? The VM needs the eventargs when DrawComplete fires, so I�??ve tried using MVVM Light�??s EventToCommand, but it throws an exception saying: Cannot attach type "EventToCommand" to type "Draw". Instances of type "EventToCommand" can only be attached to objects of type "FrameworkElement". <UserControl x:Class="GeoidApp2.TestPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:ei="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<UserControl.Resources>
<esri:SimpleLineSymbol x:Key="DrawLineSymbol" Color="Green" Width="4" />
<esri:SimpleFillSymbol x:Key="DrawFillSymbol" Fill="#3300FF00" BorderBrush="Green" BorderThickness="2" />
<esri:Draw x:Key="MyDraw" LineSymbol="{StaticResource DrawLineSymbol}" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="DrawComplete">
<!--<ei:CallMethodAction TargetObject="{Binding}" MethodName="DrawDone"></ei:CallMethodAction>-->
<cmd:EventToCommand Command="{Binding DrawCompleteCommand,
Mode=OneWay}" PassEventArgsToCommand="True" />
</i:EventTrigger>
</i:Interaction.Triggers>
</esri:Draw>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map x:Name="Map" Background="White" WrapAround="true" Loaded="Map_Loaded">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Loaded">
<i:InvokeCommandAction Command="{Binding MapLoadedCommand}"
CommandParameter="{Binding ElementName=Map}" />
</i:EventTrigger>
<i:EventTrigger EventName="Loaded">
<i:InvokeCommandAction Command="{Binding WireDrawCommand}"
CommandParameter="{StaticResource MyDraw}" />
</i:EventTrigger>
</i:Interaction.Triggers>
<esri:ArcGISTiledMapServiceLayer ID="BaseLayer"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
</esri:Map>
</Grid>
</UserControl>
... View more
11-09-2011
02:56 AM
|
0
|
0
|
578
|
|
POST
|
InitializationFailure is a property, not an event. Note that if there is a failure, the initialized event fires, but after this property is set to an exception, and before InitializationFailed event fires. http://forums.arcgis.com/threads/36578-FeatureLayer.FromJson-thows-exception?p=123635&viewfull=1#post123635
... View more
10-29-2011
06:48 PM
|
0
|
0
|
1272
|
|
POST
|
I'm trying to serialize some featurelayers to a local file, and then deserialize them in Visual Studio at design time to use as a design time datacontext. However, I can't find a way to serialize or deserialize. When I try to serialize, I get this exception: System.Runtime.Serialization.InvalidDataContractException was unhandled
Message=Type 'ESRI.ArcGIS.Client.FeatureLayer' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
At the WriteObject call in this code: private void button1_Click(object sender, RoutedEventArgs e)
{
var fLayer = new FeatureLayer();
fLayer.Url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/2";
fLayer.Initialized += (s, ea) =>
{
MemoryStream ms = new MemoryStream();
DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(FeatureLayer));
ser.WriteObject(ms, fLayer); // exception here
ms.Position = 0;
StreamReader sr = new StreamReader(ms);
string json = sr.ReadToEnd();
Debug.Print(json);
fLayer.ToString();
};
fLayer.Initialize();
}
When I try to deserialize, I get this Exception : System.ArgumentException was unhandled
Message=layerDefinition
Parameter name: Property was not found during JSON deserialization.
When I call FeatureLayer.FromJson: private void button1_Click(object sender, RoutedEventArgs e)
{
WebClient wc = new WebClient();
wc.OpenReadCompleted += (s, ea) =>
{
using (StreamReader sr = new StreamReader(ea.Result))
{
string json = sr.ReadToEnd();
Debug.Print(json);
var fLayer = FeatureLayer.FromJson(json);
Debug.Print(fLayer.LayerInfo.Fields.Count.ToString());
}
};
wc.OpenReadAsync(new Uri(@"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/2?f=pjson"));
}
... View more
10-29-2011
12:38 PM
|
0
|
1
|
4361
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-17-2015 10:41 AM | |
| 2 | 11-15-2012 05:22 AM | |
| 4 | 09-29-2011 08:20 AM | |
| 3 | 12-04-2015 08:50 AM | |
| 1 | 04-08-2010 09:34 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|