Quantcast
Channel: DotSpatial
Viewing all 3973 articles
Browse latest View live

Updated Release: DotSpatial 1.6

$
0
0
Changes since 1.5.1 Entire list of changes see in the issue tracker.

You can also get binaries as nuget packages at Nuget.org or at official Cuahsi feed.

New Post: Convert Linelayer to polygonlayer

$
0
0
Dear All,

is there a way to convert a layer made of line segments to a polygon layer?

I am using MIConvexHull library to generate voronoi mesh related to a set of points. What I get from that is the set of edges of the voronoi cells from which I can create a linelayer. The point is that I need to be able to get a polygon layer.
Do you know of any method to convert from set of lines (connected to each other) to a set of polygons?

Hope someone has an answer for me :)

Thank you anyway
Oscar

New Post: Convert Linelayer to polygonlayer

$
0
0
NetTopologySuite has a polygonizer API:
NetTopologySuite.Operations.Polygonize

I assume you find a similar (older) version of that in DotSpatial.Topology

Source code checked in, #73649

$
0
0
Removed empty folder, minor fix in unit-test

Created Unassigned: DotSpatial.Topology vs NetTopologySuit [25064]

$
0
0
At the moment in the NetTopologySuit there are a lot of fixes\improvements, which not included into DotSpatial.Topology. I think we need to think how to syncronize these two projects. I think we should reuse NetTopologySuit as a reference dll insde DotSpatial.Topology with some converters from NTS to DS classes.

New Post: How to add layers to a group in the most simple way

$
0
0
I have some layers and want to group them and i have done it before but that code looks very complex to me....

this is what i have
 'new map group added to map
            Dim grp As New MapGroup(Form1.myVenster, "GROUP geluidbelastingen")
            'layer met geluidbelastingen GPP
            'Dim layer As IMapLayer = Form1.myVenster.Layers.Add(fsAdresLden)
            Dim player As IMapLayer = grp.Layers.Add(fsAdresLden)
            Dim slayer As IMapLayer = grp.Layers.Add(fsAdresLden)
            Dim zlayer As IMapLayer = grp.Layers.Add(fsAdresLden)
            Dim elayer As IMapLayer = grp.Layers.Add(fsAdresLden)
            Dim pPointMapLayer As IMapFeatureLayer
            Dim sPointMapLayer As IMapFeatureLayer
            Dim zPointMapLayer As IMapFeatureLayer
            Dim ePointMapLayer As IMapFeatureLayer
            If player IsNot Nothing Then
                If player.ProjectionString Is Nothing Then
                    player.Projection = DefineProjection()
                End If
                fsAdresLden = TryCast(player.DataSet, IFeatureSet)
                pPointMapLayer = TryCast(player, IMapFeatureLayer)
                Dim Ldenveld As String = "[GPP]"
                pPointMapLayer.Symbology = SetWegGeluidbelastingSwungLegend(fsAdresLden, Ldenveld)
                pPointMapLayer.LegendText = "Lden GPP"
                sPointMapLayer = TryCast(slayer, IMapFeatureLayer)
                Ldenveld = "[TkSAK]"
                sPointMapLayer.Symbology = SetWegGeluidbelastingSwungLegend(fsAdresLden, Ldenveld)
                sPointMapLayer.LegendText = "Lden standaard akoestische kwaliteit"
                zPointMapLayer = TryCast(zlayer, IMapFeatureLayer)
                Ldenveld = "[TkZm]"
                zPointMapLayer.Symbology = SetWegGeluidbelastingSwungLegend(fsAdresLden, Ldenveld)
                zPointMapLayer.LegendText = "Lden plan zonder maatregelen"
                ePointMapLayer = TryCast(elayer, IMapFeatureLayer)
                Ldenveld = "[TkEin]"
                ePointMapLayer.Symbology = SetWegGeluidbelastingSwungLegend(fsAdresLden, Ldenveld)
                ePointMapLayer.LegendText = "Lden plan met maatregelen"
                Form1.myVenster.ZoomToMaxExtent()
                Return
                fsAdresLden = Nothing
but when i have such code like below how do i add that new layer yto to a certain group? like

'new map group added to map
        Dim Clustergrp As New MapGroup(Form1.myVenster, "GROUP clustervlakken")
Dim fBuffer As New Feature()
                        Dim fs As New FeatureSet(fBuffer.FeatureType)
                        Dim g As IGeometry = GeometryFactory.Default.CreateLineString(coord)
                        g = g.Buffer(70)
                        g = g.Buffer(-50)
                        fs.Features.Add(g)

Commented Unassigned: DotSpatial.Topology vs NetTopologySuit [25064]

$
0
0
At the moment in the NetTopologySuit there are a lot of fixes\improvements, which not included into DotSpatial.Topology. I think we need to think how to syncronize these two projects. I think we should reuse NetTopologySuit as a reference dll insde DotSpatial.Topology with some converters from NTS to DS classes.
Comments: ** Comment from web user: FObermaier **

Try these
http://www.nuget.org/packages/NetTopologySuite.DotSpatial.Converter/

New Post: Determine street/polyline from latitude/longitude

$
0
0
Hi all,

Please bare with me - I'm fairly new to dealing with GIS data. I have a shapefile that describes a number of street sections/polylines and each has an associated speed limit (what I'm interested in). I have been able to suck the file in using DotSpatial and that has given me some insight into what kind of data is in the shapefile as well as the format. I have gotten to the point where I have all of the street sections broken out with x number of lat/lon points (what I'm familiar with and comfortable working with) describing each section. My question is what suggestions some of you might have to determine which street I am on given a number of lat/lon points (from my phone's GPS). I say a number of points as I would imagine direction of movement will come into play? How would one utilize DotSpatial to achieve this? Or is my question outside of the scope of DotSpatial?

To summarize, I have a shapefile describing street sections and their respective speed limits, my input is a number of lat/lon points (let's say 3) and I want to output a speed limit.

Thanks a lot in advance!
Mitch

Commented Unassigned: DotSpatial.Topology vs NetTopologySuit [25064]

$
0
0
At the moment in the NetTopologySuit there are a lot of fixes\improvements, which not included into DotSpatial.Topology. I think we need to think how to syncronize these two projects. I think we should reuse NetTopologySuit as a reference dll insde DotSpatial.Topology with some converters from NTS to DS classes.
Comments: ** Comment from web user: D_Guidi **

To me, DotSpatial should be implemented using GeoAPI: https://geoapi.codeplex.com
This should be pretty easy, if DotSpatial.Topology (as I remember) is similar to NTS (but maybe I'm wrong).

Commented Unassigned: DotSpatial.Topology vs NetTopologySuit [25064]

$
0
0
At the moment in the NetTopologySuit there are a lot of fixes\improvements, which not included into DotSpatial.Topology. I think we need to think how to syncronize these two projects. I think we should reuse NetTopologySuit as a reference dll insde DotSpatial.Topology with some converters from NTS to DS classes.
Comments: ** Comment from web user: mogikanin **

Yes, DotSpatial.Topology mostly includes older version of NTS (2010 year or so). This is why i created this issue.

Commented Unassigned: Patch to FeatureSetExt.cs Intersection [24345]

$
0
0
FeatureSetExt.cs's Intersection is buggy in the FieldJoinType.ForeignOnly case. I believe this has been reported previously.

Not sure if this _ever_ worked. See patch for 3 bug fixes.

Thanks.

-Phil
Comments: ** Comment from web user: mogikanin **

Hi Phil, can you provide sample code or unit-test which proves that your patch is correct?

Commented Unassigned: DotSpatial.Plugins.MapWindowProjectFileCompatibility has crashed when load a wmprj file [24715]

$
0
0
In DemoMap application, we can go to menu\files\open and choose a Mapwindow4Project (Mwprj) to open.

However, it go down to a bug. The bug is in "(DotSpatial.Plugins.MapWindowProjectFileCompatibility.DynamicXMLNode" .)
The error is in attached image: ![Image](http://muabanpiano.net/Myfiles/MapWindowProjectFileCompatibility%20has%20crashed.png)

the source code is: 73351
The mapwindow is: MapWindow GIS v4.8.6 - Final release - 64Bit (https://mapwindow4.codeplex.com/releases/view/76562)
Comments: ** Comment from web user: mogikanin **

Hi gis4sd, please also attach .Mwprj file.

Commented Unassigned: Display problem form about maximizing the minimal interface [24992]

$
0
0
When the form is initialized, the SHP file to display properly, the maximum at a minimum, the SHP file does not display.
Comments: ** Comment from web user: mogikanin **

Hi, can you explain your problem a bit more? When shp file not showing?

Edited Issue: PolygonShapefile throws ArgumentException on NOAA Medium Resolution Shoreline shapefile [22529]

$
0
0
Loading the standard NOAA medium resolution coastline shp file located at (downloaded from) http://coastalmap.marine.usgs.gov/GISdata/basemaps/coastlines/nos80k/nos80k.zip
 
via DataManager.DefaultDataManager.OpenFile(localPath)
 
Throws the following ArgumentException ("Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection."):
 
at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
at DotSpatial.Data.BufferedBinaryReader.Read(Byte[] buffer, Int32 index, Int32 count) in C:\src\DotSpatial\DotSpatial.Data\BufferedBinaryReader.cs:line 499
at DotSpatial.Data.ByteBlock.Read(Int32 numBytes, BufferedBinaryReader reader) in C:\src\DotSpatial\DotSpatial.Data\ByteBlock.cs:line 122
at DotSpatial.Data.PolygonShapefile.FillPolygons(String fileName, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\PolygonShapefile.cs:line 232
at DotSpatial.Data.PolygonShapefile.Open(String fileName, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\PolygonShapefile.cs:line 86
at DotSpatial.Data.Shapefile.OpenFile(String fileName, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\Shapefile.cs:line 321
at DotSpatial.Data.Shapefile.OpenFile(String fileName) in C:\src\DotSpatial\DotSpatial.Data\Shapefile.cs:line 269
at DotSpatial.Data.ShapefileDataProvider.Open(String fileName) in C:\src\DotSpatial\DotSpatial.Data\ShapefileDataProvider.cs:line 119
at DotSpatial.Data.ShapefileDataProvider.DotSpatial.Data.IDataProvider.Open(String fileName) in C:\src\DotSpatial\DotSpatial.Data\ShapefileDataProvider.cs:line 65
at DotSpatial.Data.DataManager.OpenFile(String fileName, Boolean inRam, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\DataManager.cs:line 375
at DotSpatial.Data.DataManager.OpenFile(String fileName) in C:\src\DotSpatial\DotSpatial.Data\DataManager.cs:line 312
at Entiat.Cartography.ShapefileMap.InitializeFromPath(String path) in C:\src\entiat\Entiat\Cartography\ShapefileMap.cs:line 80

Source code checked in, #73650

$
0
0
Fixed reading medium/large shapefiles issue. #22529

Closed Issue: PolygonShapefile throws ArgumentException on NOAA Medium Resolution Shoreline shapefile [22529]

$
0
0
Loading the standard NOAA medium resolution coastline shp file located at (downloaded from) http://coastalmap.marine.usgs.gov/GISdata/basemaps/coastlines/nos80k/nos80k.zip
 
via DataManager.DefaultDataManager.OpenFile(localPath)
 
Throws the following ArgumentException ("Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection."):
 
at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
at DotSpatial.Data.BufferedBinaryReader.Read(Byte[] buffer, Int32 index, Int32 count) in C:\src\DotSpatial\DotSpatial.Data\BufferedBinaryReader.cs:line 499
at DotSpatial.Data.ByteBlock.Read(Int32 numBytes, BufferedBinaryReader reader) in C:\src\DotSpatial\DotSpatial.Data\ByteBlock.cs:line 122
at DotSpatial.Data.PolygonShapefile.FillPolygons(String fileName, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\PolygonShapefile.cs:line 232
at DotSpatial.Data.PolygonShapefile.Open(String fileName, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\PolygonShapefile.cs:line 86
at DotSpatial.Data.Shapefile.OpenFile(String fileName, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\Shapefile.cs:line 321
at DotSpatial.Data.Shapefile.OpenFile(String fileName) in C:\src\DotSpatial\DotSpatial.Data\Shapefile.cs:line 269
at DotSpatial.Data.ShapefileDataProvider.Open(String fileName) in C:\src\DotSpatial\DotSpatial.Data\ShapefileDataProvider.cs:line 119
at DotSpatial.Data.ShapefileDataProvider.DotSpatial.Data.IDataProvider.Open(String fileName) in C:\src\DotSpatial\DotSpatial.Data\ShapefileDataProvider.cs:line 65
at DotSpatial.Data.DataManager.OpenFile(String fileName, Boolean inRam, IProgressHandler progressHandler) in C:\src\DotSpatial\DotSpatial.Data\DataManager.cs:line 375
at DotSpatial.Data.DataManager.OpenFile(String fileName) in C:\src\DotSpatial\DotSpatial.Data\DataManager.cs:line 312
at Entiat.Cartography.ShapefileMap.InitializeFromPath(String path) in C:\src\entiat\Entiat\Cartography\ShapefileMap.cs:line 80
Comments: Resolved with changeset 73650: Fixed reading medium/large shapefiles issue. #22529

Updated Release: DotSpatial 1.6

$
0
0
Changes since 1.5.1 Entire list of changes see in the issue tracker.

You can also get binaries as nuget packages at Nuget.org or at official Cuahsi feed.

Source code checked in, #73652

Source code checked in, #73653

Closed Unassigned: Can't find MapControl in Visual Studio 2012 [24217]

$
0
0
I create a Winform project in Visual Stduio 2012 with .Net framework 4. Then install DotSpatial.Control and its dependency by NuGet.
Every thing is OK. But when I choose DotSpatial.Control to add toolbox items, I found there's no MapControl!
![Image](http://pic.yupoo.com/sinaweibo1283765694_v/CP45QXU6/PaLCa.png)

Can you tell me how to resolve? Thanks!
Viewing all 3973 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>