Hot answers tagged

6

The key to proper parenting of WPF windows within a non-WPF application is to use the WindowInteropHelper class. Suppose you have a WpfWindow class which is a WPF window (derives from Window): private void ShowWpfWindowModal() { var parentHandle = new IntPtr(_app.hWnd); // the ArcMap window handle var wpfWindow = new WpfWindow(); //...


4

Esri's Runtime for WPF supports WMS layers. It is not free, but the ArcGIS Silverlight SDK is and has many of the same capabilities. So you may want to try the Silverlight SDK in Out-of-browser mode, which is similar to running a WPF app. You need to set up a proxy though.


4

You can add multiple models to a geoprocessing package by running them and having their results preserved within the Results window. Esri Help page: Adding a result to a geoprocessing package When you will click Add Result, all the results of the models' runs will be listed and you can choose the one you need.


3

With featureLayers I think you need to reference a single layer in a map service or feature service. So, instead of: http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer try http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer/0 change the "0" at the end to match the layer you are interested in.


3

You might want to check out BiMserver. It's an open source building information model server. The Building Information Modelserver (short: BIMserver) projects creates software (the BIMserver software) that turns a computer/server into a ‘BIMserver’. A BIMserver enables you to centralize the information of a construction(or other building related)...


3

There is a binding sample from ESRI. Check it out: http://edndoc.esri.com/arcobjects/9.2/NET/a6eb84fb-93db-4bc3-82a9-874d8890a8ca.htm Same sample in ArcGIS 10 documentation


2

The documentation for rubber bands suggests that they should support cancelling via pressing the Esc key. If that really does not work for you, consider using a display feedback instead, e.g. the NewLineFeedback. Display feedbacks are a bit more involved than rubber bands, but they are not necessarily that much difficult to use. Plus, you can Stop most ...


2

After some research I found the following solution: IGraphicsContainer pGraphicsContainer = _pageLayoutControl.GraphicsContainer; pGraphicsContainer.Reset(); IElement pElement = pGraphicsContainer.Next(); while (pElement != null) { if (pElement is IMapFrame) { IMapFrame pMapFrame = pElement as IMapFrame; IEnvelope pEnvelope = new EnvelopeClass();...


2

We made the layout in ArcMap and added a scalebar. In ArcGIS Engine we use the pagelayout to display a print preview and sent it to the printer. Not sure how this works in WPF but in winforms we used the sample for synchronize map and pagelayout to get started, but customized so we could open different layouts.


2

when you create the feature layer be aware that you set the properties DisableClientCaching = true, AutoSave = false, Mode = FeatureLayer.QueryMode.Snapshot then it will be save the edits with: graphicsLayer.SaveEdits();


2

This article looks like it might help: Serializing JSON Geometry Objects between Silverlight, WPF and ArcObjects


2

I found the answer (I've been looking for it a week): the coordinates are part of the geometry attribute. The code I added to get the coordinates of the stop is this: ESRI.ArcGIS.Client.Geometry.Geometry whats = stop.Geometry; This returns a type saying somthing like "Point[x=456543.34,y=456234.23,WKID=2045]" and if I want to do anything with it, I can ...


2

I don't have too much experience in C# and WPF, but I think there should be such controls as webview or whatever where you can display a web page or a map. Define map operations using OpenLayers with javascript and hook them to C# functions.


2

Based on this error that you reported "Feature Access requires that the data be on SDE; other types of data sources are not supported", I'm assuming that your data is stored in either a file GDB, personal GDB or shapefile. If you are trying to edit data in a feature service, then your editable data has to be in an enterprise SDE database. Here is a link ...


2

If you need to add, update, delete features you will first need to publish a "Feature Service", you can do this while publishing your service, by enabling "Feature Access". Then depending on which programming language (Silverlight, Flex, iOS, Javascript, ... etc.) you're using, ESRI has a bunch of API's that allow you to access a Feature Service, to add, ...


2

Well it seems that I accidentally answered my own question haha. I put the comma in there to explain that I wanted both of those layers and that is actually how you do it. WOW. That is why coding is fun. LayerIDs="CalvertCity, WaterValves"


2

I have not used it myself but SharpMap should be able to handle a WMS layer and render it in WPF using a WindowsFormsHost. See Tutorial - Example 3: Adding a WMS-layer to the map. Also check out Mapsui which is a port of SharpMap to WPF, Silverlight and Windows Phone.


2

Might be overkill for what you're looking for, but ESRI's CityEngine may be worth a look. http://www.esri.com/software/cityengine/ Esri CityEngine provides professional users in architecture, urban planning, entertainment, GIS, and general 3D content production with a unique conceptual design and modeling solution for the efficient creation of 3D cities ...


2

The FeatureDataGrid is connected to a single GraphicsLayer or FeatureLayer (which inherits from GraphicsLayer), and uses the attributes to autogenerate column names. Mixing two layers that (probably) have different column names would look confusing on a single table, since some records would fill in some columns, and other records wouldn't. I think that's ...


2

There is a ConstrainExtentBehavior that you can add to the Map. See here. <esri:Map x:Name="MyMap" Extent="-120,30,-60,60"> . . . <i:Interaction.Behaviors> <esriBehaviors:ConstrainExtentBehavior ConstrainedExtent="-120,30,-60,60"/> </i:Interaction.Behaviors> </esri:Map> You can get the extent of your layer and ...


2

Please, do not use with geographic coordinates. x axis is North oriented, so x = Northing y axis is East oriented, so y = Easting azimuth is the clockwise angle measured from x axis, in radians. (all three are topographical conventions, you must transform the following formulas if you want to use another system) x_0 and y_0 are the coordinates of ...


1

I don't know anything more about this than what it says on the page, but ARCHIBUS Geospatial Extensions for ESRI sounds like it might fit the bill. (source: archibus.com) Incorporate a geospatial perspective directly within your ARCHIBUS Web Central dashboards to unlock the power of geospatial visualization for improved analysis, reporting, and ...


1

Does this have to be a fully WPF solution? If not then you can use the WebBrowser control and then you can use Google maps, Bing maps or any other web GIS api.


1

Changing the parser from VBScript to python or Javascript may not be simple to automate. This object has not been exposed by ESRI within the arcpy library, see this ArcGIS Ideas page, however it may be automated via arcobjects/javascript via IAnnotationExpressionEngine getExpressionParser() object.


1

From the documentation only Bing and OpenStreetMap are supported: http://www.telerik.com/help/wpf/radmap-overview.html However, it appears that a custom provider can be created to use ArcGIS Server map service. http://www.telerik.com/help/wpf/radmap-howto-custom-provider.html So if you are using a cached service then you would want to create a ...


1

I have a feeling that the original did not work because the map name does not match the infowindow binding: <esri:Map x:Name="MyMap"> Map="{Binding ElementName=My_Map}"


1

I finally figured it out for the most part... XAML: <esri:InfoWindow x:Name="MyInfoWindow" Padding="2" CornerRadius="20" Background="{StaticResource PanelGradient}" Map="{Binding ElementName=MyMap}" ...


1

In ArcObjects? Set the callout's AnchorPoint property to an IPoint at the desired map coordinates. VB example here: http://forums.esri.com/Thread.asp?c=93&f=993&t=303569#949615


1

as you want to create 3d buildings there are some open source alternatives. like osggis. see osggis screentshots here. you may also give a look at VTP. these will help you to build 3d buildings and stuff. after preparing the data you can use some opensource 3d webgis tools for rendering on browser. as you said you are new to GIS its better to seek a help ...


1

Few things to try: Make sure the selection enumerator is either non-recycling (see IEnumFeatureSetup, or otherwise copy the feature geometries prior to adding them to the geometry bag (via IFeature.ShapeCopy). Make sure all the input geometries, as well as the newly created Polygon have the same spatial reference. Make sure all the input geometries are ...


Only top voted, non community-wiki answers of a minimum length are eligible