Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
66 views

Sharpmap GeoTIFF placement/scale Issues

I am trying to place GeoTIFFs onto a SharpMap Mapbox. Some GeoTIFFs work just fine and are placed where expected. For example, .tiff files from this website work fine and are placed/scaled ...
0
votes
1answer
104 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
3answers
201 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 ...
0
votes
1answer
254 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 ...
1
vote
0answers
86 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....
0
votes
0answers
166 views

How to Add Zoom to Earth animation on Offline maps in C#

I am Developing Map application using SharpMap I want to add Zoom effect in maps I want to pass lat,long and start zooming like zoom to earth animation effect how can I achieve it on Offline Maps? ...
1
vote
1answer
170 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
0answers
296 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
1answer
914 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
0answers
296 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
0answers
61 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 ...
2
votes
1answer
488 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 ...
1
vote
1answer
2k 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
1answer
2k 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 ...
0
votes
1answer
730 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
vote
0answers
559 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
0answers
274 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
0answers
202 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?
1
vote
1answer
992 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: ...
1
vote
2answers
282 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
2answers
834 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 ...
1
vote
1answer
276 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 ...
0
votes
1answer
850 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
1answer
2k views

How to create 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); ...
2
votes
1answer
360 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"); ...
0
votes
2answers
1k 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....
1
vote
1answer
6k 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 ...
1
vote
0answers
555 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....
1
vote
1answer
99 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. ...
3
votes
1answer
1k 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 ...
1
vote
0answers
980 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 ...
0
votes
1answer
224 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
2answers
730 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 ...
0
votes
1answer
778 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
1answer
333 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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
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
1answer
543 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 ...
1
vote
2answers
5k 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
1answer
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 ...
2
votes
1answer
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 ...
1
vote
1answer
371 views

overview map with sharpmap

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 ...
6
votes
2answers
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 ...
8
votes
2answers
6k 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 ...
6
votes
2answers
6k 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
2k views

How can i add sharpmap to visual studio2008?

i have just installed visual studio 2008. and i want to add sharpmap or any other tool so that i can add shape file in .net. I have selected sharpmap because by the search i have got that sharpmap is ...
1
vote
1answer
760 views

How to tell SharpMap to display polygons based on z-order?

I have a series of polygons which overlap in spatialite. Each has a an attribute providing it's z-order as well as the output color for that polygon. What do I need to do, processing-wise, to allow ...
2
votes
1answer
1k views

TopologyException side location conflict reading MapInfo with Sharpmap

I'm using SharpMap 0.9 to read various MapInfo (.tab) files. I have used a number of files without any problem and been able to perform intersection queries on them like so: var interesectionResults ...
2
votes
0answers
234 views

SharpMap UK OS data

I've downloaded the UK raster and the corresponding tab file from the ordnance survey website and have displayed the image using the GDARaster class. however I am now stuck as I have no idea how to ...