Questions tagged [sharpmap]

SharpMap is an easy-to-use mapping library for use in web and desktop applications.

SharpMap provides access to many types of GIS data, enables spatial querying of that data, and renders beautiful maps. The engine is written in C# and based on the .Net 4.0 framework. SharpMap is released under GNU Lesser General Public License

56 questions
1
vote
1 answer

Coloring a Shapefile map in ASP.NET

I have a Shapefile map of Maryland separated by zipcode. What I'd like to do is color each area based on a value I'm looking up in a database. Currently, I'm using ASP.NET with the SharpMap package. The basic questions are: 1) How do I associate…
Jodaka
  • 1,237
  • 8
  • 16
1
vote
0 answers

How to get real coordinates (lat lng) from Map.GetExtent()

Is there a way to get actual top left and bottom right lat lng coordinates from Map.GetExtent() envelope to filter MSSql server database for the available shapes in the region? I tried many things but was not able to achieve it. double dleft =…
1
vote
0 answers

Wrap OpenStreetMap at antimeridian using SharpMap

I have a simple SharpMap Map object (WinForms) which contains a TileAsyncLayer (OpenStreetMap using BruTile) within the BackgroundLayers collection. I would like to have the map either wrap at the edges or repeat so that the user can fan…
1
vote
1 answer

How to apply SharpMap.VectorStyle theme on VectorLayer if DataSource is FeatureDataTable?

I tried Vector Layer theme when I used ShapeFile as data source for vector layer. But when I am trying to achieve same thing with custom polygon data it is not working. Below is the code I used: Dictionary styles =…
1
vote
1 answer

How to use 'SharpMap' WPF Control

I want to use SharpMap in a WPF application, however, I can’t figure out how to use this control. This is what I have tried so far, and the dead-ends I have faced. Using the WPFExample available on Github: SharpMap on GitHub. First I tried opening…
Richard
  • 439
  • 3
  • 25
1
vote
1 answer

.Net 3.5 VS 2008 invalid token 'out' error

I am trying to compile SharpMap for .Net 3.5, I have sorted through most of the errors and the only error I get at the moment is: Invalid token 'out' in class, struct, or interface member declaration Invalid token '>' in class, struct, or interface…
1
vote
2 answers

Google map as background to my sharpmap map not aligning correctly

I've been at this for quite a while now. What I'm trying to achieve here is to add Google map as background layer to my Sharpmap, I'm able to achieve this but the problem I'm facing now is My map always centre's to a point near a Greenland sea in…
1
vote
1 answer

SharpMap: Creating and editing geometry

I´m working in a project using sharpmap on this we're displaying information, but is necessary create and edit too. I have experience with presenting information but i need some advices with creating and editing. I am working with 1.1.0 version of…
1
vote
1 answer

How to open a DXF referenced file with SharpMap?

I'm working in a viewer map with Sharpmap in C#. I use FWTools, too. I need attach a dxf file in my viewer as a reference. Actually i can attach shapes (shp) files, raster images (ecw, tif) but i can do this with sharpmap, i can't find the…
1
vote
1 answer

WinForms: ToolTips will not (re)appear after the initial mouse hover

I am working on a form that uses a SharpMap MapBox to display objects as points on a world map. Currently, if I enter the MapBox (mapBox1) with the cursor and stop on the point, it displays the tooltip as I want it to. However, once I've stopped the…
Crabgor
  • 202
  • 3
  • 14
1
vote
0 answers

Drawing Oracle spatial geometries with sharp map

I need to create a simple app which can display geometries from Oracle Spatial in C#. These geometries are exported from shape file to Oracle Spatial. I just need to pan,zoom the layers. When i am trying to use sharp map it produces an error Could…
Subin
  • 65
  • 2
  • 10
1
vote
1 answer

Dependencies error while installing packages with NuGet

I'm trying to install the following packages with NuGet on Visual Studio 2010 TweetSharp version 2.3.1 (which requires Newtonsoft.Json version 5.0.6) SharpMap version 1.1.0 (which requires Newtonsoft.Json version 4.5.11) using the following…
Aboud Zakaria
  • 567
  • 9
  • 25
1
vote
1 answer

Using SharpMap to render spatial data

I am trying to use SharpMap to render spatial data from SQL sever2008R2 in a windows form application. Below is a sample code I tried out. Everytime I tried running the code I keep getting this error message that I need to assign IGeometryServices…
1
vote
1 answer

Bing maps with custom WMS service asp.net

I looking for a way to use a custom WMS service with bingmaps api 7.0 but im unable to find any good tutorials about it. I have a simple javascript demo that displays bing maps.