POST
|
I tried to switch to a css flexbox layout for my overall web page layout and the map behaves very very poorly. I tried different combinations of positions and flex options, but the map either ignores other blocks, shrinks down to a small square, or only fills the screen in one direction. Has anyone successfully done this? The only way I can really get the map positioned where I want it is I use position: fixed on the map div and work around it, and that doesn't work with flexbox. btw, I am on 3.18.
... View more
08-10-2017
09:06 AM
|
0
|
1
|
810
|
POST
|
I'd got the gdal in the folder. Could another GIS app installation be interfering?
... View more
07-15-2016
09:51 AM
|
0
|
0
|
500
|
POST
|
Thanks for the tip Rebecca. Tried adding stuff to the path, it didn't seem to help.
... View more
07-15-2016
09:51 AM
|
0
|
0
|
500
|
POST
|
Hello Lucian! When I run it from the command line, I get a windows dialog with the cache_worx.exe has stopped working, followed by a window with the 0xc000001d exception code. There is definitely something weird going on. My coworker is able to run the tool on his machine, with almost the same setup. I tried repairing my C++ runtime libraries, but am still having the same error. I wonder if my windows installation is corrupted? 😕 Thanks.
... View more
07-15-2016
09:50 AM
|
0
|
1
|
500
|
POST
|
I can't seem to run any of the tools from the Cacheworx ( http://www.arcgis.com/home/item.html?id=1f66b212056744b384a8ad0ccb8e00ac ) toolbox on Arcmap 10.3.1. It seems like the toolbox is running an exe called cache_worx.exe underneath each tool which is failing with no good errors in the geoprocessor. I looked at the Windows Event log and found two events related to the failure. 1. Faulting application name cache_worx.exe etc etc Faulting module name: gdal110.dll etc etc Exception Code: 0xc000001d 2. Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk the file is stored on, or the storage drivers installed on the computer, or the disk is missing. Windows closed the program cache_worx.exe because of this error. etc etc etc I tried moving the toolbox to my local drive, as well as moving my test cache to the local drive. I also reinstalled the C++ redistributables. No dice. I wonder if it's gdal related? I don't have any other gdal libraries installed. Any ideas? Thanks!
... View more
07-08-2016
04:14 PM
|
0
|
7
|
2613
|
POST
|
Jason, I think it only takes a URI, you have to convert it no matter what the source is. Here's their official example of dragging and dropping a local file to the Map, and it looks like they did the same thing you did: private async void MyMapView_Drop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
KmlLayer kmlLayer = new KmlLayer(new Uri(files[0]));
await kmlLayer.InitializeAsync();
//Add the kml layer
MyMapView.Map.Layers.Add(kmlLayer);
//Zoom to the kml layer if available
if (kmlLayer.RootFeature.Viewpoint != null)
await MyMapView.SetViewAsync(kmlLayer.RootFeature.Viewpoint);
}
} Hope this helps.
... View more
08-04-2015
10:52 AM
|
0
|
0
|
470
|
POST
|
ok looks like I can use a Local Service and package up ArcGIS Desktop Geoprocessing Tools. That should solve the problem of exporting to shapefile and file geodatabase. But it doesn't say the export to KML tool is supported. Any ESRI folks out there know if the Export to KML geoprocessing tool will be supported in the future? I'm also curious if you can package up a Model composed of several GP tools and use it in .NET Runtime... Thanks.
... View more
08-04-2015
10:37 AM
|
0
|
2
|
633
|
POST
|
Hello all, Is there any way to export data from a .NET runtime application to KML, a shapefile, or a file geodatabase? If so, can you do it without server interaction? Thanks, Ken
... View more
08-04-2015
07:43 AM
|
0
|
3
|
3771
|
POST
|
Nakul, Thanks for your reply. I am familiar with sending events from the View to the ViewModel. I should have been more specific. I need to send information back to the View. For example: 1. User sends a geospatial query from my UI to the ViewModel. 2. ViewModel sends the query through the Model. 3. Model returns with the results. ViewModel adds them to the Map as a layer. 4,. View zooms to the results I just added. This seems like it should be something simple to do, but unless you break MVVM you need to create an attached behavior, use an event bus, or stick the MapView into the ViewModel in order for the ViewModel to tell the MapView the extent to zoom to. That's really what my question is about. Which is the best method and why. And if I go with the last method, is there something that will break later. Thanks, -Ken
... View more
07-28-2015
12:08 PM
|
0
|
0
|
1128
|
POST
|
Hi all, I've been working on understanding the new .NET api and how it works with MVVM. (I previously worked with the WPF api and my team used MVVM with no problems.) I'm trying to understand why the MapView was split from the Map and how I should route events to the ViewModel. So far I have 3 approaches I've been looking at: 1. Do all event handling in code behind. (Ugg.) Use an event messenger to communicate with the ViewModel if it can't be avoided. 2. Use a Map Controller pattern, as outlined in this post: [blogpost] Navigating the MapView from a ViewModel Do all work in the ViewModel, no code behind. 3. Create my Map and MapView in the ViewModel, bind a ContentControl in the View to display the MapView. Do all work in the ViewModel, no code behind. I am leaning towards #3... it worked for my team in the WPF runtime when we just had a single Map control. #2 seems like a lot of code for what it does. Does anyone know if there are any problems with the third approach? I know it's a little fishy to instantiate a UI element in a ViewModel, but I feel like that is less fishy than creating an elaborate dependency property Map Controller. Thanks!
... View more
07-24-2015
03:07 PM
|
0
|
4
|
6506
|
POST
|
Hi all, Came across a peculiar behavior with the Overview example. Overview Map | ArcGIS for Developers When I'm remote desktopped into my dev workstation and I run the sample it freezes during the ExtentChanged event. It seems to be dying somewhere in the overviewMap.SetViewAsync. One of my CPUs goes to max, and the application must be killed. The problem isn't consistent, sometimes the app freezes on the first extent change, sometimes it takes a few seconds of roaming around. When I run the sample from a physical workstation, the sample works with no issues. I am wondering if there is some sort of latency issue with multiple MapViews firing their SetViewAsync at the same time? I also tried copying my app into a VM and it happened there as well. I could see this being a problem for my own app eventually, I want an overview and I can't control where and when people will run my application. Does anyone have any thoughts on how to get around this or if a fix is in the works? Thanks! -Ken
... View more
07-22-2015
08:26 AM
|
0
|
8
|
4578
|
POST
|
Thanks Ken! That definitely helps. Still having trouble with the input though. It seems like the clip geoprocessing tool only wants to take a FeatureClass as input. I am trying to grab a subset of features from an SDE database with a query. Do you happen to know of an easy way to input this into the clip tool? Thanks, -Ken
... View more
03-26-2015
07:52 AM
|
0
|
1
|
1009
|
POST
|
Hi all, I am grabbing a bunch of polygon features (footprints) from a mosaic dataset and I want to clip them and re-add them to the database. I'm getting the records with a Search Cursor within an edit session. So far that part is working just fine, I can update the table fields and Store them back to the db. I'm running into trouble when I try to clip the features. I cannot seem to get the parameters right. It complains with every kind of output I've tried. Ideally I'd output back to the original input feature, but failing that I'd like to output to memory. I tried creating a memory workspace, but I don't know how to get the results of the clip into it. Has anyone ever done anything similar? The documentation on using geoprocessor in ArcObjects doesn't seem very clear. It seems funny it's so incredibly easy to do what I want in ArcMap 10.3 and it's so hard programmatically. I can start an edit session, select my records, select my clipping feature, and hit the Clip in the Editor menu, and boom... done. But it doesn't seem like the Editor clip method is exposed in ArcObjects. Thanks! -Ken
... View more
03-24-2015
08:10 AM
|
0
|
3
|
7068
|
POST
|
Jie, Thank you for your reply. I have tried this. Synchronize is not working when you add a mosaic as a table to a derived mosaic. I'm specifically trying to get MaxPS and ZOrder to sync, but it isn't working. (Maybe it's a bug in my version? I'm using 10.3). I ended up going with a large single mosaic with all my data. Still curious why the derived mosaics are a recommended best practice, if you could please find out for me. Thanks! -Ken
... View more
03-20-2015
08:14 AM
|
0
|
1
|
540
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|