POST
|
I have a print service setup with custom layouts published with Export Web Map. The Layouts do not contain any layers, these are added in the PrintTask . I have created a dictionary of all of the layers that are within my map extent named legendInfo. For the legend I need to set the SublayerIds for the Legend Layer to be those that are within the map extent and are visible. This is done to minimize the size of the Legend on the pdf. For the dictionary key value pair, the key is the ID of the ArcGISDynamicMapServiceLayer and the values are a List<int> of the subids for the ArcGISDynamicMapServiceLayer. . I have tried several casts such as pair.Value as IEnumerable<List<int>>. SublayerIds are null after the loop has finished. Scratching my head...any suggestions? Thanks in advance... Margo foreach (var pair in legendInfo) { ESRI.ArcGIS.Client.Printing.LegendLayer myLegendLayer = new ESRI.ArcGIS.Client.Printing.LegendLayer(); // Set the LegendLayer.LayerId to the Layer.ID to add it to the printed map's legend area. myLegendLayer.LayerId = pair.Key.ToString(); myLegendLayer.SubLayerIds = pair.Value as IEnumerable<Object>; myLegendLayers.Add(myLegendLayer); }
... View more
11-14-2014
04:09 PM
|
0
|
2
|
2982
|
POST
|
I need an explanation about the relationship of the VisCode and the TarIsVis fields. I have an observer and target locations. My TarIsVis says that the target is visible. I would think that my line-of-sight line would be entirely visible (VisCode =1). What I have are two lines with a VisCode = 1 and a VisCode = 2. Most of the line is not visible, VisCode = 2. This does not intuitively make sense. Could someone please explain how this can be the case. I am using a LIDAR DSM. The LOS calculations are being done with a Geoprocessing service. Thanks for any information you can provide!
... View more
10-14-2013
03:42 PM
|
0
|
1
|
387
|
POST
|
Kevin, Thank you for the test code, it really helped. I used your code and the query worked, so it appeared that I was going in the right direction. After fiddling around with my orginal code it turned out to be the pSpatialFilter.GeometryField = sabFeatureClass.ShapeFieldName code that was hanging things up. Crazy that this would make the difference, but the spatial query is now just working fine. Thanks again! Margo Blosser Gorge GIS www.gorgegis.com www.interactivegeospatial.com
... View more
04-06-2012
09:43 AM
|
0
|
0
|
190
|
POST
|
I am accessing a MapServer that has a parcel layer that I am trying to select taxlots with a both a spatial query and an attribute query. I am accessing the MapServer with a url and am not part of the user AGSusers or Admin groups. The spatial query is based on a local shape file. Seems simple enough but I get the following error message from Fiddler: ???Layer not found.7>5 y??H??V?~? "esriCarto.MapServer??? The local shape file and the MapServer layer are both in the same projection. I am accessing the Mapsever with an IAGSServerConnection Connection. Code is below: Dim connectionProperties As IPropertySet = New PropertySetClass() connectionProperties.SetProperty("Url", "http://www3.multco.us/ArcGIS/Services") Dim obj As System.Object = Activator.CreateInstance(Type.GetTypeFromProgID("esriGISClient.AGSServerConnectionFactory")) Dim PEnumSoName As IAGSEnumServerObjectName = AGSServerConnection.ServerObjectNames Dim pSOName As IAGSServerObjectName = PEnumSoName.Next PEnumSoName = AGSServerConnection.ServerObjectNames Do Until pSOName Is Nothing If pSOName.Name = "BaseMap/Taxlots" Then Exit Do pSOName = PEnumSoName.Next Loop If pSOName Is Nothing Then Exit Sub pName = pSOName pMapServer = pName.Open Dim pMapServerInfo As IMapServerInfo = pMapServer.GetServerInfo(pMapServer.DefaultMapName) Dim pMD As IMapDescription = pMapServerInfo.DefaultMapDescription ?????????????????????????????????????????????????????????????????????????????????????????????????????????Add Mapserver layer to Toc??????????????????????????????????????????????????????????????? pMSLayer.ServerConnect(pSOName, pMapServer.DefaultMapName) 'Add layer to map t pMap = mxDocument.FocusMap pAV = pMap pMap.AddLayer(pMSLayer) pAV.Refresh() ????????????????????????????????????????????????????????????????????????Create Spatial Filiter with Attribute query???????????????????????????????????????????????????????????????????????? Dim pSpatialFilter As ISpatialFilter = New SpatialFilter() pSpatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelWithin Dim sabFeatClass As IFeatureClass = featureLayer.FeatureClass Dim sabfeature As IFeature = sabFeatClass.GetFeature(0) pSpatialFilter.Geometry = sabfeature.Shape pSpatialFilter.GeometryField = sabFeatClass.ShapeFieldName pSpatialFilter.WhereClause = "NAME LIKE" + Space(1) + "'" + "UNITED" + "%" + "'" Dim QRecSet As IRecordSet = pMapServer.QueryFeatureData(pMD.Name, 0, pSpatialFilter) ???Code fails here Dim Reccursor As ICursor = QRecSet.Cursor(True) Dim row As IRow = Nothing Dim Feature As IFeature = Reccursor.NextRow While (Feature) IsNot Nothing Dim Geometry As IGeometry = Feature.Shape ??????do some stuff??????. Feature = Reccursor.NextRow End While How should I be creating the spatial filter? Do I have to create it with a servercontext, ISpatialFilter pSpatialFilter = pServerContext.CreateObject( "esriGeodatabase.SpatialFilter")as ISpatialFilter; If I need to create the spatial filter with a ServerContext does anyone have some code that shows doing this with a URL? Should I be doing something to specify that the Spatial Filter is based on a local shape file? Should I be using a different type of connection, possibly with the ESRI.ARCGIS.ADF.Connection.AGS Namespace? Can someone point me in the right direction? Thanks in advance for any guidance that you can provide. Best Regards, Margo
... View more
04-05-2012
08:44 AM
|
0
|
2
|
722
|
POST
|
I need a mapprogressbar that has the graphical status bar and text in addition to the percent complete text. The control text would be something like �??Fetching Data�?� and the percent complete text on top of the graphical status bar. I have looked at the example at http://help.arcgis.com/en/webapi/silverlight/apiref/api_start.htm and in the example in the Samples directory, but can�??t see how to do this. Can someone point me in the right direction? Best Regards, Margo Best Regards, Margo
... View more
01-25-2012
08:11 AM
|
0
|
1
|
2159
|
POST
|
Dominique thank you! The correct URL helped but I am still can�??t display any data from the service. In fiddler I get a �??Exception in GetMap reply. [ERR0924] Requested image is too big and cannot be created.�?� In a different forum I have found a post about this error message from an WMS service �??when users are trying to view this service in an application that is maximized to the full extent of a large monitor and the server cannot produce an image that will fit the entire screen.�?� So I changed my display from full screen to a smaller extent and the map service displays the data. Has anyone experienced this issue and found a workaround? The WMS service is from ArcIMS. Best Regards, Margo
... View more
11-16-2011
12:41 PM
|
0
|
0
|
221
|
POST
|
I am trying to add the Air Temperature layer RTMA_AIR_AIRTEMP from the WMS service at nowcoast.noaa.gov. I have not been able to find an ArcServer Site with this information so I have to use the WMS service. The projection of the service is mercator:3857. All the arcgisonline layers display fine but not the WMS layer. From Fiddler I get: "http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/analyses?service=Wms?&SERVICE=WMS" &REQUEST=GetMap&WIDTH=1583&HEIGHT=1000&FORMAT=image/png&LAYERS=RTMA_RAS_AIRTEMP &STYLES=&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&VERSION=1.1.1 &SRS=EPSG:3857&bbox=-14146326.877,4730925.48441977,-12388811.793,5841168.74658023 My XAML is: <esri:Map x:Name="MyMap" Extent="-14146326.877,4914555.193,-12388811.793,5657539.038" Height="1000" ExtentChanged= "MyMap_ExtentChanged" Loaded="MyMap_Loaded"> <esri:ArcGISTiledMapServiceLayer ID="Road Map" Visible="True" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> <esri:ArcGISTiledMapServiceLayer ID="Aerials" Visible="True" Opacity="0.0" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" /> <esri:ArcGISTiledMapServiceLayer ID="USGS Topo Map" Visible="False" Url="http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"/> <esri:WmsLayer ID="OtherWMSLayer" Url="http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/analyses?service=Wms?" SkipGetCapabilities="True" Layers="RTMA_RAS_AIRTEMP" Version="1.1.1" Opacity="0.7" InitializationFailed="WmsLayer_InitializationFailed" /> Does anyone have any suggestions; I can???t see why this does not display the WMS layer? Thanks for any info you can provide, Margo
... View more
11-15-2011
11:53 AM
|
0
|
3
|
686
|
POST
|
Michael, Rectifying assemblies- yuck! I sure would appreciate getting a copy of your code snippet for loading a shape file. Best Regards, Margo mblosser@gorgegis.com
... View more
05-18-2011
07:47 AM
|
0
|
0
|
319
|
POST
|
This has worked for me: Dim whereClause As String = ("Situsall LIKE" + Space(1) + "'" + Tboxsearch.Text + "%" + "'") Best Regards, Margo
... View more
03-30-2011
11:39 AM
|
0
|
0
|
501
|
POST
|
Hello???I have tried to query several GeoServer WMS clients programmatically with the following code: Dim wmsLayer1 As ServiceLayer = New ServiceLayer(New ServiceConnectionProperties(ServiceType.Wms, New Uri("http://giswebservices.massgis.state.ma.us/geoserver/wms?"), "States")) Dim connected1 As Boolean = wmsLayer1.Connect() MessageBox.Show(connected1.ToString) MessageBox.Show(wmsLayer1.CanQuery.ToString) I get a "false" for the CanQuery and a "true" for connected1. The URL works when I add it manually. Can I query a WMS service from Explorer? A separate question, does Explorer support WFS clients at build1500 Thanks for any information you can provide, Best Regards, Margo
... View more
03-30-2011
10:20 AM
|
0
|
0
|
352
|
POST
|
I am working on a custom popup that I want to have act in a very similar manner to existing AE popup. I need the popup to access data that have a one-to-many relationship. The approach I am taking is to create an extension add-in, but the problem I am having is how to get the popup to fire, what event can I use to trigger the extension to run its code. I have seen examples that use the GraphicClicked event, but what I need is an event for clicking on the activemapdisplay. I want the custom popup to fire much like what the out-of-the-box AE popup does, with a mouse click. Can someone point me in the right direction? Best Regards, Margo
... View more
02-17-2011
08:45 AM
|
0
|
2
|
1861
|
POST
|
I have had to reinstall my OS which required a reinstall of my ArcExplorer Developers Environment. I have XP Home sp3, ArcGIS 10.00, VB 2008 sp 1, IE 8.00, ArcExplorer Build 1500(not current user) and the SDK for ArcExplorer. When I open VB 2008 and try to make a new project with the template I get a wicked, ugly error message. I have enclosed a screen print of error message but their is a reference to the ArcExplorer ESRI.ArcExplorer.Devtools.wizard Help! Any information would be greatly appreciated. Best Regards, Margo
... View more
01-12-2011
09:47 AM
|
0
|
0
|
1538
|
POST
|
Thanks for the info! I will try a different approach. Best Regards, Margo
... View more
11-10-2010
08:38 AM
|
0
|
0
|
184
|
POST
|
I need to programmatically close a Dockwindow. Do I need to get the Handle for the Control and go that way? This should be simple, but unfortunately it does not appear to be so. Can someone point me in the right direction? Best Regards, Margo
... View more
11-09-2010
02:58 PM
|
0
|
2
|
614
|
POST
|
Hello All... Excellent new function, to be able to convert from a note to a Layer Package, thanks ESRI! But I need to be able to programmatically implement the same functionality as the Share for a note that converts a note to a Layer Package. I do not see anything that would do this in any of the namespace documentation. Am I missing something, or did this functionality not make it into the Build 1500 SDK? Best Regards, Margo
... View more
11-01-2010
01:07 PM
|
0
|
1
|
440
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|