|
POST
|
Thanks for reporting this issue. I have verified this problem and logged an issue for it.
... View more
11-13-2014
06:42 AM
|
0
|
3
|
1875
|
|
POST
|
Small update to this : Actually issue that is reported originally should be using "name" instead of "SicCode" when finding the symbol.
WriteableBitmap image = dictionary.GetSymbolImage("Tank Medium H", 128, 128) as WriteableBitmap;
returns symbol correctly but the symbol that you are seeing is returned when symbol is not found (ie. when trying to use SIC). I think that the bug here is that we don't tell that no results were found and return an image. See my previous comment how to find symbols based on the SIC values.
... View more
11-13-2014
03:51 AM
|
0
|
0
|
2638
|
|
POST
|
Here's another way to do get the symbol if you need that
SymbolDictionary dictionary = new SymbolDictionary(SymbolDictionaryType.Mil2525c);
IEnumerable<SymbolProperties> symbols = dictionary.FindSymbols(new List<string>() { "SHGPEVATM-" });
var symbolSource = symbols.First().GetImage(128, 128);
JpegBitmapEncoder encoder = new JpegBitmapEncoder();
encoder.Frames.Add(BitmapFrame.Create(symbolSource as WriteableBitmap));
PictureMarkerSymbol symbol = new PictureMarkerSymbol();
MemoryStream ms = new MemoryStream();
encoder.Save(ms);
symbol.SetSource(ms.ToArray());
ms.Close();
Graphic g = new Graphic(new MapPoint(0, 0), symbol);
GraphicsLayer.Graphics.Add(g)
... View more
11-13-2014
03:41 AM
|
0
|
2
|
2638
|
|
POST
|
Yep, it's a bug. Thanks for reporting this Keith. I have logged issue as a bug and hopefully we will get it fixed soon.
... View more
11-13-2014
02:47 AM
|
0
|
3
|
2638
|
|
POST
|
Hmm, it should check it. Are you able to create a repro for me to look at?
... View more
11-13-2014
02:31 AM
|
0
|
2
|
3509
|
|
POST
|
Could you share the Geodatabase for testing? You can send it to me (see mail from profile). cheers, Antti
... View more
11-13-2014
02:27 AM
|
0
|
1
|
1340
|
|
POST
|
Could you share the geodatabase that doesn't work for testing?
... View more
11-13-2014
02:24 AM
|
0
|
3
|
1767
|
|
POST
|
This issue comes when mix matching the Nuget and Deployment (SDK). When you are using Nuget -package, default ArcGIS Runtime deployment is done on build which means you should see arcgisruntime10.2.4 folder in bin. This deployment doesn't have local server or specialized symbology in it but everything else should be included. If you aren't working with Local server and/or specialized symbols, just remove that import from the project file and you should be good to go. If you can't do that then you need to include .targets file and other needed stuff from the SDK but I think that full installation is not necessarily needed if files are found. Edit: I missed the part when you said that you dropped using Nuget. Basically your options are following - Move back to the Nuget - Install SDK to the build server - Create needed registrykeys and copy needed files to the build server. Also make sure that the deployment tool run ok.
... View more
11-13-2014
02:12 AM
|
0
|
0
|
3720
|
|
POST
|
Hey, to get started please see following documentation Edit features—ArcGIS Runtime SDK for .NET | ArcGIS for Developers Create an offline map—ArcGIS Runtime SDK for .NET | ArcGIS for Developers
... View more
11-12-2014
09:46 AM
|
0
|
0
|
666
|
|
POST
|
You could load your data to S57DisplayPropertiesSample and see what settings does the trick.
... View more
11-12-2014
06:19 AM
|
0
|
2
|
2566
|
|
POST
|
I'm not expert on hydrographic terminology but you should be able to define if soundings are shown using
HydrographicS52DisplayProperties.Default.ViewGroupProperties.Soundings = false;
... View more
11-12-2014
06:06 AM
|
0
|
4
|
2566
|
|
POST
|
You shouldn't need to add it to DataContext. In sample it is used because it is manipulated through DataBinding.
... View more
11-12-2014
03:55 AM
|
0
|
6
|
2566
|
|
POST
|
You can do it something like this, not very nice sample but you get the point View : Notice binding
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<esri:MapView x:Name="MyMapView"
LayerLoaded="MyMapView_LayerLoaded">
<esri:Map>
<layers:ArcGISTiledMapServiceLayer ID="Basemap"
ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</esri:Map>
</esri:MapView>
<Button Command="{Binding ElementName=MyMapView, Path=Editor.AddVertex}" CommandParameter="{Binding GPSLocation}"
Background="Green"
Width="100" Height="100" HorizontalAlignment="Right" VerticalAlignment="Top"
>add vertex</Button>
</Grid>
ViewModel
public class MainPageViewModel : INotifyPropertyChanged
{
DispatcherTimer timer;
public MainPageViewModel()
{
timer = new DispatcherTimer()
{
Interval = new TimeSpan(0, 0, 3)
};
timer.Tick += timer_Tick;
timer.Start();
GPSLocation = new MapPoint(0, 0, SpatialReferences.WebMercator);
}
void timer_Tick(object sender, object e)
{
var random = new Random(DateTime.Now.Millisecond);
GPSLocation = new MapPoint(random.Next(-10000000, 10000000), random.Next(-1000000,1000000), GPSLocation.SpatialReference);
}
private MapPoint _gpsLocation;
public MapPoint GPSLocation
{
get { return _gpsLocation; }
set { _gpsLocation = value; RaisePropertyChanged("GPSLocation"); }
}
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string name)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
}
And set DataContext to new MainPageViewModel and activate editor. For example like this
public MainPage()
{
this.InitializeComponent();
DataContext = new MainPageViewModel();
MyMapView.NavigationCompleted += MyMapView_NavigationCompleted;
}
private async void MyMapView_NavigationCompleted(object sender, EventArgs e)
{
MyMapView.NavigationCompleted -= MyMapView_NavigationCompleted;
try
{
var geom = await MyMapView.Editor.RequestShapeAsync(DrawShape.Polygon);
}
catch (Exception)
{
// todo
}
}
Hope this helps.
... View more
11-12-2014
03:52 AM
|
1
|
9
|
3509
|
|
POST
|
I agree that it's not very good error message that is returned from the server. Unfortunately that's all we know what happened in the operation on the .NET side. I will log this as an issue to the Server / REST side so in the future we would get a bit more details what's going on.
... View more
11-12-2014
03:14 AM
|
1
|
0
|
2628
|
| 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
|