|
POST
|
"labellingInfo" contains not only the symbol but additionaly, "labelPlacement", "labelExpression",... To get the symbol, you could try: _textRenderer = (obj["drawingInfo"]["labelingInfo"]["symbol"]).ToString(); Not tested though.
... View more
03-04-2013
10:17 PM
|
0
|
0
|
1744
|
|
POST
|
From your screenshot, it seems you are not using the latest version which adds lots of checking. It should be: private static string GetValue(DataGridColumn col, Graphic graphic)
{
if (col is DataGridBoundColumn)
{
DataGridBoundColumn column = col as DataGridBoundColumn;
if ((column.Binding != null) && (column.Binding.Path != null))
{
string path = column.Binding.Path.Path;
if (!string.IsNullOrEmpty(path))
{
var att = Regex.Replace(path, ".*\\[(.*)\\]", "$1");
return graphic.Attributes[path] == null ? string.Empty : graphic.Attributes[path].ToString();
}
}
}
return string.Empty;
}
... View more
03-04-2013
10:04 PM
|
0
|
0
|
1477
|
|
POST
|
It seems Darina gave a fix second post of this thread. Hopefully it's the same issue as yours.
... View more
03-04-2013
09:06 AM
|
0
|
0
|
1477
|
|
POST
|
Sorry, not sure I can help. I rarely published dgn files. Nevertheless are you sure it's a WMS issue? Is it working when using the MapServer and an ArcGISMapServiceLayer? My only clue about WMS: are you sure the layer "1" is the one containing the dgns?
... View more
03-04-2013
08:58 AM
|
0
|
0
|
2335
|
|
POST
|
You can listen to the button click events either by including directly a button in the symbol control Template and the event Handler in the .cs file, or by creating a user control (inheriting from UserControl) and including it in the symbol control Template.
... View more
03-04-2013
03:46 AM
|
0
|
0
|
542
|
|
POST
|
If 'Firstname' and 'LastName' are attributes of your graphics, you should get your maptip working with code like:
<!-- tooltip -->
<esri:GraphicsLayer.MapTip>
<Border Padding="4,2" Background="Black">
<StackPanel>
<TextBlock Foreground="White" Loaded="TextBlock_Loaded">
<Run Text="User: " />
<Run Text="{Binding [FirstName]}" />
<Run Text="{Binding [LastName]}" />
</TextBlock>
</StackPanel>
</Border>
</esri:GraphicsLayer.MapTip>
... View more
03-04-2013
03:17 AM
|
0
|
0
|
605
|
|
POST
|
A degree of latitude is approximately 111Km. A degree of longitude is approximately 111Km at equator and decreases to zero as the meridians converge to the poles. The value is depending on the latitude and is approximately 111Km*cos(latitude).
... View more
03-04-2013
03:14 AM
|
0
|
0
|
1785
|
|
POST
|
But the dgn map is not visible or projected on the map. Is this a problem with Projection system ..how do I address this issue.. Before publishing your mxd, you have to set the spatial reference of your dgn files
... View more
03-04-2013
02:54 AM
|
0
|
0
|
2335
|
|
POST
|
Well it mostly works great. The results for some reason still tack on those extra Geometry attribute columns for every result. Strange, any idea's? The Geometry field does exist in the database so your code, which loops on fields, creates a column for the geometry. You could exclude it by testing the field type and skip type geometry
... View more
03-04-2013
02:39 AM
|
0
|
0
|
1315
|
|
POST
|
Resetting VisibleLayers to null should do the job. Unfortunately it seems there is a bug in the API since the layer is correctly reset to its original state but the legend is not updated. Thanks for pointing out that issue, we'll try to get it fixed in a future version. That being said, my feeling is that you shoud get the expected result with code like: Dim dvl As List(Of Integer) = (From x In agdsl.Layers Where CBool(x.DefaultVisibility) = True Select x.ID).ToList
agdsl.VisibleLayers = dvl.ToArray
... View more
03-04-2013
02:09 AM
|
0
|
0
|
1181
|
|
POST
|
There are discussions about enhancements of this program in these threads: - http://forums.arcgis.com/threads/67767-Export-To-Excel-Downloaded-only-records-in-dialog-view - http://forums.arcgis.com/threads/63895-Export-To-Excel-Null-Reference-Error Unfortunately, I am not sure someone published a new version grouping all the fixes.
... View more
03-04-2013
01:11 AM
|
0
|
0
|
2352
|
|
POST
|
But then it underlines "GetValue" and says: "'ESRIMinimalMapApplication3.DataGridExtensions.GetValue(System.Windows.FrameworkElement)': not all code paths return a value" Please help Not sure why this method gets called with a null value but to compile it, you need to return a value in case of null value. Something like: private static string GetValue(FrameworkElement frameworkElement)
{
if (frameworkElement != null)
{
return frameworkElement is TextBlock ? (frameworkElement as TextBlock).Text : frameworkElement.ToString();
}
else return null;
}
... View more
03-04-2013
12:18 AM
|
0
|
0
|
2352
|
|
POST
|
Likely PrintResult is null becasue you got an erro during the print process. I suggest you change the PrintCompleted Handler by this one: private void printTask_PrintCompleted(object sender, PrintEventArgs e)
{
if (e.Error != null)
MessageBox.Show("Error:" + e.Error.Message);
else
System.Windows.Browser.HtmlPage.Window.Navigate(e.PrintResult.Url, "_blank");
} The error, which will be displayed in a message box, might give a clue about the origin of the problem.
... View more
03-03-2013
11:09 PM
|
0
|
0
|
1018
|
|
POST
|
You have to set the WMS.Layers property, which is required to get the layer displayed. If you still run into problems after setting this property, try using fiddler to look at the requests sent to the server. That might give a clue about the issue.
... View more
03-03-2013
11:02 PM
|
0
|
0
|
2335
|
|
POST
|
That seems to be a good use case for the schematics extension that allows the organization of features by document (schema) and, possibly out of the geographical coordinates.
... View more
03-03-2013
10:57 PM
|
0
|
0
|
599
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2025 03:01 AM | |
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|