Questions tagged [sharpmap]

SharpMap is an easy-to-use mapping library for use in web and desktop applications. It 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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
106 views

SharpMap for asp.net 2022

I'm new to SharpMap and trying to display simple shapefiles. My projection is NAD_1983_StatePlane_Alabama_East_FIPS_0101_Feet. I cannot get the map to show up in VS 2022. My solution that is not ...
  • 11
0 votes
0 answers
2k views

Getting started with SharpMap in Visual Studio with C#

I am trying to use SharpMap in Visual Studio with C#. My first step was to go to the Tutorials on CodePlex. https://archive.codeplex.com/wikipage?title=SharpMap%20Tutorial&referringTitle=Home But ...
  • 109
3 votes
1 answer
658 views

Multipolygon to single polygon

I am trying to merge the three polygon to make a single Polygon. The WKT of the polygon is as below //TMP_6 POLYGON ((626480.63252975536 3069129.8280593003, 626489.846006365 3069133.60864098, 626490....
  • 189
1 vote
0 answers
68 views

Attribute data is not supported by the GeometryProvider in th Sharpmap

Attribute data is not supported by the GeometryProvider. SharpMap.UI ver 1.2.0.0 I want to make a click event on the image("maker"). so I used the following sample code URL. https://xaml.dev/post/...
0 votes
0 answers
77 views

Running RIK map files?

I am new to GIS. Which program do you recommend I use to view, mark, and then print .rik map files in Linux?
0 votes
1 answer
162 views

SharpMap's backgroundLayer on an intranet(no internet) (Windows)

I'm making windows C#(WPF) mapControl on intranet(no internet). (Windows Server) I get OSM.pbf and mbtiles file. Is this possible? Please, Look at this picture. private void button6_Click(object ...
0 votes
1 answer
668 views

Merge feature data rows of a shapefile

I'm using NetTopologySuite to read a shapefile like below code: private FeatureDataTable GetFeatureTableFromShapefile(string shapeFilePath) { GeoAPI.GeometryServiceProvider....
1 vote
3 answers
899 views

Creating WMS proxy without capabilities document?

I've recently been tasked with making a custom written WMS server be usable with newer clients and apps such as QGis. The original server was written years ago by a consultancy firm in C++ and who ...
  • 1,713
0 votes
1 answer
510 views

How to build SharpMap

I am trying to test the SharpMap 1.2 libraries. I cloned the build from https://github.com/SharpMap/SharpMap and ran a Build. I encountered 56 errors under VS2015. There is virtually no info on how to ...
  • 427
1 vote
0 answers
124 views

{"Cannot convert value"} error while save geometry data to postgresql table

I want to add a record to postgresql table with DevArt dotConnect for PostgreSQL component. I use Entity Framework 6 and I add a kind of NuGet packages to my project. SharpMap, NetTopologySuite,GeoAPI....
1 vote
1 answer
245 views

Implementing a category theme using SharpMap.Rendering.Thematics.CategoryTheme?

GitHub page for SharpMap has a link for related solution for CategoryTheme without any sample code. Can someone provide sample code using the SharpMap.Rendering.Thematics.CategoryTheme for a ...
1 vote
0 answers
462 views

WMTS request with brutile and sharp map return wrong parameter

I'm using brutile and sharpmap to send wmts request and show maps. here is my code: Public Shared Function Create() As ITileSource Dim uri As New Uri("http://91.98.30.14:8080/geoserver/gwc/...
2 votes
1 answer
1k views

Overlaying an image on a point, on a map in sharpmap?

I can add points to a map but I want to show an image (like a baloon or location sign) instead of the default red circle for the points. how can I do that with Sharpmap? my code to draw points is: ...
1 vote
0 answers
454 views

Loading Geoserver Group Layer as tiled map in SharpMap

I have geoserver and sharpmap and when I add one layer as tiled map it works perfect but when I want to add a group layer which contains several layers it shows nothing. this is my code: ...
1 vote
0 answers
66 views

PostGIS Batch File generation error

I am following the link : http://sharpmap-postgis.blogspot.in/ I have successfully setup my database as mentioned in the above link. I have downloaded and extracted all the source code from the link ...
  • 53
2 votes
1 answer
736 views

Postgis-Sharpmap Query

I want to display a map in offline mode (without Internet connectivity), so I have imported OSM data into my PostgreSQL database using osm2pgsql installer. I went through various links and tutorials ...
  • 53
2 votes
1 answer
5k views

How to get Geometry points using Geo API

I have a EPSG:4326 WGS 84 Shapefile and I've converted it into Sql Spatial Data I'm able to render the map using that with sharpmap 1.1(Previously was using Sharpmap 0.9). What I'm trying to achieve ...
1 vote
1 answer
3k views

Loading different shapefile in SharpMap?

I am currently working on sharpmap project with the need to work on offline maps. As i am fresher in this field,I am following the sharpmap tutorial and facing a problem with loading new shape files ...
  • 53
0 votes
1 answer
1k views

How to draw line/multiline, polygon/multipolygon with SharpMap from Coordinate Source

I have a list of n points, exactly x objects in GeoJSON from a CouchDB. I want to generate lines/multilines and polygons/mutipolygons with SharpMap and add this to a Layer in VB.NET. For points its ...
  • 1
1 vote
0 answers
779 views

Transform projection with SharpMap

I have SharpMap loading a shapefile and displaying the rendered image to a PictureBox. If I open the shapefile in QGis I can see the SRC: +proj=merc +lon_0=100 +lat_ts=-41 +x_0=0 +y_0=0 +datum=...
2 votes
0 answers
376 views

Use SharpMap with WebGL Earth

I'm trying to display a layer on top of a WebGL Earth view inside an Asp.Net 5, MVC 6 website. I have no problem to do this in a desktop application, but I am totally unable to do it on the website. ...
1 vote
0 answers
252 views

How to change the style of a layer in a mapbox?

I would like to change the style of an arbitrary layer in a mapbox, but I can't. I can get the desired layer name, but how to set up this layer style?
2 votes
1 answer
2k views

Is there a way to use wms like a tiled map service in sharpmap?

In sharpmap , is it possible to load a default wms like a tiled map service? I was able to use a WMS but currently it loads the map as a single image. I desire a behavior like OpenLayers 3. Edit: ...
  • 239
1 vote
2 answers
487 views

How to get point location?

I load a VectorLayer which contain coordinate location point. Now, I have a VectorLayer and I would like to get the point location on a item of this layer in order to center a map to this point. Is ...
1 vote
2 answers
1k views

Any possibility to have local tiles of OSM an display them with Sharpmap

I'm using Sharpmap to develop my Windows application. I am able to show OSM using Brutile provider of OSM default server. This is a Tile Layer of Sharpmap. new SharpMap.Layers.TileAsyncLayer(new ...
  • 133
1 vote
1 answer
375 views

Applying a new colour scheme on GdalRasterLayer using SharpMap

I'm currently developing a surface water modelling system in C# (.NET) and am using the SharpMap control as my mapping component. It's all going well, but there's one thing I'm struggling with. I ...
  • 2,203
0 votes
1 answer
1k views

How worked with large shapefile using SharpMap? [closed]

I use SharpMap for working with shapefile. Now shapefile is big and SharpMap take a long time to loading layers. Please tell me how I can speed up working with shapefile.
2 votes
2 answers
4k views

Creating a polygon with four coordiates?

I need to draw polygon shape with the following coordiantes private List<IGeometry> geos2 = new List<IGeometry>(); var gf = new GeometryFactory(new PrecisionModel(), 3857); ...
  • 89
2 votes
1 answer
430 views

Create New point

creating new point with different coordinates not changing the position. First point The bellow code create a point on the map VectorLayer pushPinLayer = new VectorLayer("PushPins"); ...
  • 89
0 votes
1 answer
2k views

How two add line from point A to B

I am trying to draw a line between two lines. I could create points by using the createPoint Method using System; using System.Collections.Generic; using System.ComponentModel; using System....
  • 89
1 vote
1 answer
9k views

How to make a point from real latitude and longitude values

My program has a center point and one moving object . At this moment this point is somewhere in Europe.But Now i have to change that point from the latitude and longitude values(of Australia) . Please ...
  • 89
1 vote
0 answers
689 views

How to convert real altitude and longitude values to GeometryTransform.TransformBox values

I have a running program which has a point but its values are not dynamic . Current code for the point is var mathTransform = LayerTools.Wgs84toGoogleMercator.MathTransform; GeoAPI....
  • 89
1 vote
1 answer
121 views

How can i get the center point for victoria

I am following this tutorial. But as per this tutorial the the center point is located in Netherlands. Now I need to change this for Victoria, Australia. Could you please tell me how can i change it. ...
  • 89
3 votes
2 answers
2k views

SharpMap Coordinate transformation Problem

I want to transform my layers from SRID 31463 (Gauß Krüger) to Webmercator. Since SharpMap does only know webmercator and WGS84 i tried to create the Coordinate System 31463 by WKT and applied it on ...
  • 79
1 vote
0 answers
1k views

Loading Raster with SharpMap (GDAL) doesn't work [closed]

I have problems loading rasterfiles (.tiff) with SharpMap I tried initializing a SharpMap GDAL Layer but nothing happens. It doesn't even throw and error when debugging after I set a path for the ...
  • 79
0 votes
1 answer
293 views

MapBox VectorTile

I'm trying to decode mapbox vector tiles for use with SharpMap. Does a tile know its position in the grid (x, y) and zoom level (z), or do I have to provide these values alongside with the vector ...
1 vote
2 answers
2k views

How to show street direction on map?

I am using sharpmap to render my OPEN STREET MAPS (osm) maps. i need to show the direction of one way streets on my map. How can i do that?! After googling i found SharpMap.Rendering.Symbolizer and ...
  • 141
0 votes
1 answer
968 views

SharpMap & BruTile library: Method not found

I'm using SharpMap 1.1 and BruTile 0.12.0 in my project. when I try to add a Tilelayer to the map the program stops with an unhandled exception of type System.MissingMethodException. Map....
6 votes
1 answer
483 views

How to work with UTM and multiple zones

I'm totally a newbie with geo tools. I'm using Sharpmap as I'm working with C#. I have a map where I can put an item on a UTM Location with E,N Zone and number. So the item appears on the desired ...
  • 61
1 vote
1 answer
3k views

Example using sharpmap in mvc asp.net

I am wanting to open shapefile files in a ASP.NET MVC application, was researching and found sharpmap but have not found examples of how to implement the MVC. Does anyone have any examples to help me ...
  • 111
1 vote
1 answer
2k views

converting projections using dotspatial or proj4

how can i convert projections using either dotspatial or proj4? i am making a program using sharpmap and dotspatial in VB.net have to convert a EPSG 4030 into a Lambert conformal conic projection and ...
1 vote
1 answer
615 views

How to create themed layer based on a list of geometries and specific risk values in Sharpmap

I am now using SharpMap for creating a network-based tool. By using SharpMap, for constructing network, the current functions in SharpMap enables the tool to capture coordinate on background layer and ...
  • 71
1 vote
2 answers
6k views

How to use Sharpmap to display spatial data from MS SQL Server 2008

Can anyone show me a step by step example on how to use Sharpmap to display MS SQL server spatial data using C# as the programming language? Please note I have exploit some of the example online but ...
1 vote
1 answer
2k views

SharpMap WMS - How to add labels to a map containing a VectorLayer

First, I'm new to SharpMap. I'm adding in labels for a vector layer, but for some reason the labels are not showing up. My PostGIS data is in Geographic NAD 83 and the UI is OpenLayers so am ...
  • 11
2 votes
1 answer
2k views

How to show only some labels sharpmap

I am new to Sharpmap and GIS. Going through the sample code and building simple programs for better understanding. I have a water bodies layer. I want to display only a particular river. I used ...
0 votes
1 answer
415 views

overview map with sharpmap [closed]

I'm using Sharpmap to create a GIS application. I'm trying to get a small overview map on top of my map so it gives an idea what part of the map is being viewed. Is there a simple/implemented way of ...
  • 9
6 votes
2 answers
2k views

A bug in ESRI Line Geometry WKB that adds needless, trailing 0's behind otherwise valid WKB?

[Update 7.13.2012] My coworker noticed the the ESRI Line WKB is malformed contains unspecified trailing data, and since he's not active on GIS.SE, I posted his remarks as an answer. I'll wait a few ...
  • 6,260
8 votes
2 answers
7k views

How to start using the SharpMap library?

I am a very newbie on GIS and also programming especially C#. I am trying to develop a program to: display map from GeoTIFF, DTED (level 2 I guess), shapefiles and JPEG type of files. display ...
  • 81
6 votes
2 answers
8k views

How to perform transformations using ProjNet?

While writing some unit tests I thought it would be convenient/possible to use ProjNet to convert from EPSG:4326 into several other coordinate systems (3875,3395). I figured it would be as easy as ...
  • 2,851
0 votes
2 answers
2k views

How to reproject data in EPSG:4326 to EPSG:3857 using SharpMapv0.9 for display on Google Maps

I have data stored in SQL Server 2012 in EPSG:4326. I need to display this data on a Google Map in EPSG:3857, but without an ST_Transform function, I cannot determine how to convert my data on the fly ...
  • 21