POST
|
Thanks for getting back to me on this Morten. Using ArcGISMapImageLayer in 100.x did allow me to reproject so that gets me passed a potentially big hurdle in my upgrade. However, it did seem to be significantly slower to update the image compared to 10.2.7 for this layer.
... View more
01-31-2019
10:24 AM
|
0
|
0
|
1847
|
POST
|
Hey Morten. In your estimation, is it impossible to reproject a basemap in 100.x runtime for .NET? If so I need to abandon my upgrade immediately as I've sunk quite a bit of time into it already and am still missing quite a few features that I had in 10.2.7.
... View more
01-25-2019
03:28 AM
|
0
|
2
|
1847
|
POST
|
Using Fiddler to capture the network traffic as I change the map's SpatialReference I see something like this... http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/export?bbox=-126.110427699194%2C15.1598412754068%2C-57.3560880326194%2C61.7189024596362&bboxSR=4269&imageSR=4269&size=1078%2C730&dpi=96&transparent=true&f=image You can see the SR specified in the web request and the image return reflects the reprojection. I can clearly see very different reprojected images returned even looking at the image returned in Fiddler outside of the map view.
... View more
01-24-2019
08:13 AM
|
0
|
1
|
1847
|
POST
|
I am using ArcGISTiledMapServiceLayer in 10.2.7. If I set the SpatialReference for the map to something other than WebMercator then I see the layer reprojected to that SpatialReference. Yeah if 10.2.7 had support for vector tiles then we would have used them(if they supported reprojection of course). So is there no way that you know of to reproject a basemap in 100.x?
... View more
01-24-2019
08:03 AM
|
0
|
0
|
1847
|
POST
|
But in 10.2.7 I could set the SpatialReference for the map and then when it requested the tiled layer from the ArcGIS online rest service, the layer would be returned in the specified SpatialReference(if I understand it correctly). Is that still possible in 100.x?
... View more
01-24-2019
06:02 AM
|
0
|
7
|
1847
|
POST
|
I start my map in WebMercator and set the basemap using Basemap.CreateTopographicVector(). All displays as expected. I allow my user to select a different spatial reference where I create a new map passing the selected SpatialReference and then add the basemap in the same way as before and the basemap does not display. Is there something else I should be doing to allow for this or are vector basemaps not allowed to reproject? I did this in 10.2.7 fairly easily. Just trying to figure out how to accomplish this in 100.x now.
... View more
01-23-2019
12:17 PM
|
0
|
9
|
2265
|
POST
|
I did see the RoutingSample by the way and that was the closest thing I've seen so far that at least shows an example of MVVM using 100.x. Thanks for that one. Just wondering if there is a more complete example like this.
... View more
01-21-2019
12:56 PM
|
0
|
0
|
767
|
POST
|
I've seen the .NET Samples solution where there are many small examples of individual features on display. And most of the ones that I looked at all have code behind and very surface level implementations. Are there any professional quality, broader scope applications that demonstrate how one might use several of the features in one "enterprise"(for lack of a better term) application? Something following the MVVM pattern and has feature layers, graphics overlays, and raster layers all working together? I'm looking for an example of how one "should" put together an application using 100.x as things have changed significantly from 10.2.7.
... View more
01-21-2019
12:55 PM
|
0
|
4
|
863
|
POST
|
Thanks again Morten. The ArcGISHttpClientHandler may be another option. So really my fundamental requirement isn't as technically complex as the current solution was made to be. My user will have a collection of data and they will want to select many items from their collection for display on the map. The application would build an image based on the selection and draw it over the basemap in the correct location. For some of that data its simple geometry which I'm having no problem accomplishing on the GraphicsOverlay. For other data we are creating bitmaps that have to be drawn on the screen for various reasons. In one case we have very large volumes of 3D data and we want to take one particular horizontal slice of that volume, create a bitmap, and display it on the map. For this one an example might be a high resolution map of all temp values in a state for instance. You'd want to overlay the entire state with a color matching the temp value at that particular pixel for the entire state(assuming you had such detailed measurements all over the state). In another case we are allowing some custom annotation where a point might be represented by one of several symbols depending on the status of that entity and then have user determined labels to the left, right, top, or bottom of the symbol based on fields selected by the user. There is another layer that did some custom annotation where the code is making use of raster graphics to accomplish the goal. I hope this helps explain a bit about what we're trying to do here. I don't think it's incredibly complicated but I am having a hard time converting the existing code to the new runtime. I was able to get a sample GeoTIFF and display it on our map just statically referencing it. So the raster feature there works. But when I try to take the MemoryStream that contained the bitmap image that we were generating before, copy it to a FileStream, and then later replace that GeoTIFF with the file on disk it doesn't show up.
... View more
01-14-2019
12:47 PM
|
0
|
0
|
750
|
POST
|
Thanks for the reply Morten! Ok so I looked back at the solution here(developed by a 3rd party contractor) and there was an intermediate custom layer that provided the DrawingContext to the outermost concrete layers and it defined an abstract DrawInScreenCoordinates method. So please ignore those references. GetImageUriAsync() is what the intermediate layer is overriding from DynamicMapServiceLayer. The caching that I was referring to was done within the layers. It was caching the images that it would create so that it didn't have to create them each time the layer received a request for it. But I've pretty much given up on that pattern now as I'm pretty sure I can't reproduce it in 100.x. Now I'm trying to figure out how to accomplish displaying my raster graphics at all. I tried saving the image being produced to disk and then just added a RasterLayer that referenced the image file to the map's OperationalLayers like the examples do but that didn't seem to work for me for whatever reason. We may not be able to proceed with the upgrade either way as there are just too many things that have fundamentally changed and we have a rather complex implementation in our product today. I know that support is supposed to sunset on 10.2.7 in the near future but it looks like we would have to completely rewrite our mapping feature to do so and lose some features in the process. Is the online guide and the API Reference all of the documentation available? Are there any more sample applications? In particular I'd like to see how other people are adding many different rasters at run time.
... View more
01-14-2019
12:01 PM
|
0
|
2
|
750
|
POST
|
In 10.2.7 our application accomplished some of our features by extending DynamicMapServiceLayer. It seems that all Layers and Overlays are sealed in 100.x so I'm trying to figure out how to do the same thing that we were doing. So we allow the user to selectively add their data to the map and there could be hundreds of these things to choose from and we dynamically generate the image in the user session as the underlying data can change. And the data is somewhat complex(fairly large matrices). These custom layers are caching the images for performance reasons. The user can toggle visibility of these images in real time once they have been loaded. But basically we extended DynamicMapServiceLayer and override DrawInScreenCoordinates so that we can use the DrawingContext to draw our custom images on the screen. We also override GetImageUriAsync and fake a service call while we are really generating the images locally in the application. I can't see a way to achieve the same level of flexibility given the 100.x framework and how every class seems to be sealed and not extensible. I read about GraphicsOverlays which seem to be limited to simple geometry which is great for some of my data but not the scenario that I presented above. I also read about RasterLayers but they seem pretty limited as well. You can create one with a file reference would be too slow for my use. RasterFunction seemed like a promising option but it is sealed as well. Would mocking an ImageRasterService work perhaps? Any other options that I'm not considering? Thanks for any input that anyone may have.
... View more
01-09-2019
10:14 AM
|
0
|
4
|
884
|
POST
|
I'm finally trying to migrate my app from 10.2.7 to 100.3. We draw most of our data on our maps via extensions of DynamicMapServiceLayer. I'm wondering what the equivalent would be in 100.x. Thanks, David
... View more
10-22-2018
06:53 AM
|
0
|
0
|
423
|
POST
|
Ok. Thanks to both of you for your help on this. I have a better understanding of the problem now. It sounds like if I want something for now to work with 10.2.7 that I'll have to create some kind of conversion table mapping the same Wkid to multiple names. If you guys had a REST service that did this it would be great. The fact that v100 reprojects shapefiles will help me sell management on the upgrade so thanks for revealing that as well. Thanks again for all of the information. -David
... View more
04-17-2018
12:30 PM
|
0
|
0
|
541
|
POST
|
So has the name change by EPSG then broken compatibility with older tools like Petra?
... View more
04-17-2018
12:19 PM
|
0
|
0
|
541
|
POST
|
The file is displayed on the map by itself just fine. The problem is that I was told that Shapefiles cannot be reprojected into another projection system. So if I have other data in the correct projection system(32041) and this is a kind of custom projection system by Wkt with Wkid-0 then it can't reproject and be in my map that's in 32041.
... View more
04-17-2018
12:16 PM
|
0
|
0
|
1321
|
Title | Kudos | Posted |
---|---|---|
1 | 04-17-2018 12:12 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|