|
POST
|
Use Silverlight ContentControl inside MapTip <esri:FeatureLayer.MapTip> <ContentControl ContentTemplate="{StaticResource MyFeatureLayerInfoWindowTemplate}" Content="{Binding}"/> </esri:FeatureLayer.MapTip>
... View more
03-26-2014
11:38 PM
|
0
|
0
|
430
|
|
POST
|
Hi cc4ever, my filepaths look something like \\CORPNAS\ntcorp\StructuresPhotos\001 - UNLICENCED [PID 017-587-166].bmp These are contained in a text field in the gdb table. It's baffling as clicking on a spot where the photo should be brings up the photo in a new window, indicating there aren't any problems with the paths or anything. Thanks Just Put your Server IP instead of server name and it will work. http://[Server[/url] IP]/ntcorp/StructuresPhotos/001 - UNLICENCED [PID 017-587-166].bmp
... View more
03-25-2014
10:22 PM
|
0
|
0
|
925
|
|
POST
|
Hi Laura , can you post sample path for your [FILEPATH] content/format? you can check that your image is loading using fiddler or firebug in your browser.
... View more
03-24-2014
10:47 PM
|
0
|
0
|
925
|
|
POST
|
Try "esriArcMapUI.MxSelectionMenu" instead of "esriArcMapUI.ZoomToSelectedCommand" protected override void OnClick()
{
try
{
UID commandID = new UIDClass();
commandID.Value = "esriArcMapUI.MxSelectionMenu";
ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID.Value);
if(comm != null)
comm.Execute();
}
catch
{
}
} All 10.2 GUIDs (CLSID / ProgID): http://resources.arcgis.com/en/help/arcobjects-net/conceptualHelp/#/ArcMap_commands/00010000029s000000/ Regards,
... View more
03-19-2014
08:44 PM
|
0
|
0
|
1033
|
|
POST
|
Hi Wei, You can check Query Related Records Sample. You can find more information about query related records operation in the following links: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Related_Records_Map_Service_Dynamic_Layer/02r3000000nt000000/
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Related_Records_Map_Service_Layer/02r3000000nq000000/
... View more
03-18-2014
11:03 PM
|
0
|
0
|
357
|
|
POST
|
Hello, I have a VB.NET addin button that activates the ArcMap "split command" for the user and then updates the attributes of the resulting arcs. I would like to make another button that is almost identical, but using the "split tool" instead of the "split command". However, the new arc is not selected after the split tool executes, so I am unable to update its attributes. I would like to add the new arc to the selection set, possibly by referring to its OBJECTID. I know that the OBJECTID of the new arc is the largest one in the edited (unsaved) version of the feature class, but if I reference the feature class via its layer in ArcMap, I will only see the pre-edited version (without the new feature). Any suggestions how I can get around this issue? Thanks! Kerry You can get the new feature by listening on Editor events
UID editorUid = new UID();
editorUid.Value = "esriEditor.Editor";
IEditor3 m_editor = ArcMap.Application.FindExtensionByCLSID(editorUid) as IEditor3;
m_editEvents = m_editor as IEditEvents_Event;
//To get the original feature
// m_editEvents.OnChangeFeature += new IEditEvents_OnChangeFeatureEventHandler(m_editEvents_OnChangeFeature);
//Get the new feature
m_editEvents.OnCreateFeature += new IEditEvents_OnCreateFeatureEventHandler(m_editEvents_OnCreateFeature); In OnCreateFeature event handler you can add your new arc to the selection void m_editEvents_OnCreateFeature(IObject obj)
{
IFeatureSelection pFeatSel = arcFeatureLayer as IFeatureSelection;
pFeatSel.Add(obj as IFeature);
ArcMap.Document.ActivatedView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);
}
... View more
03-18-2014
10:48 PM
|
0
|
0
|
492
|
|
POST
|
If you have access to ArcGIS Server in your network you should have a Geometry Service. If not, you can write your Arcobjects code inside a web service and consume it in your silverlight Application.
... View more
03-18-2014
03:38 AM
|
0
|
0
|
568
|
|
POST
|
You can get/set your default workspace using: import arcpy
# Get WS
current_Workspace = arcpy.env.workspace
# Set the workspace environment to local file geodatabase
arcpy.env.workspace = "C:/data/base.gdb"
#set to SDE file
arcpy.env.workspace = r"c:\data\base.sde"
you can check ArcGIS Help for more info: http://resources.arcgis.com/en/help/main/10.2/index.html#/Current_Workspace/001w00000002000000/
... View more
03-18-2014
01:37 AM
|
0
|
0
|
2655
|
|
POST
|
Try zooming to your feature using Map.ZoomTo Method After rotation.
... View more
03-18-2014
01:02 AM
|
0
|
0
|
1523
|
|
POST
|
Hi Ehab, For ArcGIS Server 10.0 <ARCGISHOME> equals ArcGIS Server installation folder you should find under root like the following: [System Prgram Files]\ArcGIS\Server10.0\server\user
... View more
03-17-2014
11:12 PM
|
1
|
0
|
624
|
|
POST
|
You should use Geometry service for coordinate transformation.
... View more
03-17-2014
08:37 PM
|
0
|
0
|
568
|
|
POST
|
From SDK help: Note that only the top-level datasets in the workspace are returned by these methods. In particular, if a workspace contains both stand-alone feature classes and additional feature classes that are part of a feature dataset, then calling the DatasetNames property on the workspace with a dataset type of esriDTFeatureClass will return only the standalone feature classes. In order to get the feature class names within a feature dataset, the application needs to get the FeatureClassNames property on the top-level feature dataset name returned by the workspace. IWorkspace.DatasetNames Property will list all matched types for the top level only. If your feature classes are inside featuredataset you should use IFeatureDatasetName.FeatureClassNames After you get your dataset.
... View more
03-15-2014
11:39 PM
|
0
|
0
|
3089
|
|
POST
|
i have used all the direction on that link but did not got any solution if you have any another link for this problem send me thank you Form project properties in visual studio , navigate to debug tab then uncheck "Enable unmanaged code debugging" checkbox.
... View more
03-11-2014
09:40 PM
|
0
|
0
|
1208
|
|
POST
|
Hi Ahmed, Thanks a lot for the response. Looking at the geoprocessor result revealed that the dissolveds.in_features was being read as "GPL0" instead of the actual name. I have tried placing the gp execution inside the first method ie dissolveadanced.. But the error remains. The input feature classs does exist in memory and contains features, fields so not sure how dissolve/gp is not able to read. I was thinking perhaps I should give the full pathname of the feature class in inmemory workspace because it would contain the uid of the inmemory workspace but no luck so far in creating the full path name.. Cheers, Sanj. Hi Sanjay, GPL0 will not cause any problems. You can try to add this layer to map and run dissolve tool from toolbox and check if it's working as I tried the code and it works fine. If dissolve tool runs on your layer in Arcmap you should debug your code and check if the layer is not locked by another operation.
... View more
03-11-2014
09:26 PM
|
0
|
0
|
752
|
|
POST
|
You need to decode the incoming text as strings is encoded to map the wide range of characters used worldwide. you can customize the ItemTemplate of AttachmentEditor Control and make a value converter that decodes the incoming string as the following:
public class StringDecoder : IValueConverter
{
#region IValueConverter Members
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
string decodedValue= System.Convert.ToString(value);
return HttpUtility.UrlDecode(decodedValue);
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
#endregion
} then you should embed it into your XAML file: xmlns:converter="clr-namespace:[Your App Namespace]" Add the converter to your resources <Grid.Resources>
<converter:StringDecoder x:Key="EncodingConverter" />
</Grid.Resources> and set your new Item Template (this is same as default) with the converters: <esri:AttachmentEditor.ItemTemplate>
<DataTemplate>
<Grid Margin="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal">
<HyperlinkButton Content="{Binding Name,Converter={StaticResource EncodingConverter}}" NavigateUri="{Binding Uri,Converter={StaticResource EncodingConverter}}"
VerticalAlignment="Center" TargetName="_blank">
<ToolTipService.ToolTip>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Text="Name: " Margin="10,0,0,0"
HorizontalAlignment="Right" VerticalAlignment="Center"
Grid.Row="0" Grid.Column="0" />
<TextBlock Text="{Binding Name,Converter={StaticResource EncodingConverter}}" Margin="5,0" MaxWidth="250" TextWrapping="Wrap"
Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" />
<TextBlock Text="Size: " Margin="10,0,0,0"
HorizontalAlignment="Right"
Grid.Row="1" Grid.Column="0" />
<TextBlock Text="{Binding Size}" Margin="5,0" MaxWidth="250"
TextWrapping="Wrap" Grid.Row="1" Grid.Column="1" />
<TextBlock Text="Uri: " Margin="10,0,0,0"
HorizontalAlignment="Right"
Grid.Row="2" Grid.Column="0" />
<TextBlock Text="{Binding Uri,Converter={StaticResource EncodingConverter}}" Margin="5,0" MaxWidth="250"
TextWrapping="Wrap" Grid.Row="2" Grid.Column="1" />
<TextBlock Text="Content Type: " Margin="10,0,0,0"
HorizontalAlignment="Right"
Grid.Row="3" Grid.Column="0" />
<TextBlock Text="{Binding ContentType}" Margin="5,0" MaxWidth="250"
TextWrapping="Wrap" Grid.Row="3" Grid.Column="1" />
</Grid>
</ToolTipService.ToolTip>
</HyperlinkButton>
</StackPanel>
<Button Grid.Column="1" Command="{Binding Delete}" VerticalAlignment="Center" Cursor="Hand">
<Button.Template>
<ControlTemplate TargetType="Button">
<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</ControlTemplate>
</Button.Template>
<Image VerticalAlignment="Center" Source="/ESRI.ArcGIS.Client.Toolkit;component/Images/deleteFeature.png" Stretch="None" />
</Button>
</Grid>
</DataTemplate>
</esri:AttachmentEditor.ItemTemplate> Regards,
... View more
03-10-2014
03:41 AM
|
0
|
0
|
581
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2015 06:50 AM | |
| 1 | 04-01-2014 10:01 PM | |
| 1 | 04-07-2014 11:18 PM | |
| 1 | 04-08-2014 09:19 PM | |
| 1 | 11-26-2014 07:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|