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

New Post: Project (dspx) serialization and GDAL Imagery

$
0
0
Could you attach your GDAL image file? And describe full steps how to reproduce this? It seems it is a bug...

Commented Unassigned: Print Layout scale bar bug [25095]

$
0
0
Hello:
In the print layout view when I change the units on the scale bar's properties window, the measurement units are being changed on the map scale bar. That's correct. However, still it shows "km" on the scale bar. It has to be as same as the unit text from properties window.
Comments: You need to change property "UnitText" to change text at Scale bar.

Source code checked in, #73681

$
0
0
- Fixed some possible InvlidCast exceptions - Use int64 for Scale in LayoutMap

Source code checked in, #73682

$
0
0
Actualized solution for VS2010, added separate solution for WebControls project

New Post: add attribute

$
0
0
Hi
is there any way to add attribute to jpg map or shp in dotspatial with C#??
how can do it??
thanks

New Post: Project (dspx) serialization and GDAL Imagery

$
0
0
This seems to happen even when using the DemoMap.exe.

1.) Start up DemoMap.exe
2.) Add a gdal imagery layer to the application
3.) Save the project file
4.) Close DemoMap.exe
5.) Reopen DemoMap.exe
6.) Open the saved project file
7.) -- Error Here --

Link to a relatively small sid file I was using for this test:
https://dl.dropboxusercontent.com/u/16831965/gdal_sid.zip

New Post: Map.Layers.LayerAdded and Map.Layers.LayerRemoved Events

$
0
0
Ok, I have a temporary workaround, but I'll see if I can spend some time tracking through the event and find the bug.
thanks
-justin

New Post: Projections for Hawaii

$
0
0
I'm currently using DotSpatial in a program that converts GPS Lon/Lat to UTM. My code is now working on a site in Hawaii and tha UTM coordinates I am computing using DotSpatial, are roughly 0.5m N-S and 0.5m E-W from the coordinates compted by a Trimble GPS receiver. I can't find and projections available in DotSpatial to make my conversions from Lon/Lat match the computation from the Trimble. Nothing I can find has the kinds of differences I need to resolve. I am not worried about a couple to few cm of discrepancy, I am worried about a 50cm discrepancy. Another application I use (Geosoft/montaj) computes correct UTM.

Am I missing the appropriate choices of projections within DotSpatial, or is the appropriate choice not available?

Regards,
dgeorge@ggsciences.com 970 263 9714

Commented Unassigned: MapLabelLayer : Index was outside the bounds of the array [25072]

$
0
0
When I try to add Labels to a Feature Layer I get this problem.



System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs e, IEnumerable`1 features) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 381
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs args, List`1 features, List`1 clipRectangles, Boolean useChunks) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 201
at DotSpatial.Controls.MapLabelLayer.DrawRegions(MapArgs args, List`1 regions) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 154
at DotSpatial.Controls.MapFrame.InitializeLabels(List`1 regions, MapArgs args, IRenderable layer) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 529
at DotSpatial.Controls.MapFrame.Initialize(List`1 regions) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 332
at DotSpatial.Controls.MapFrame.Initialize() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 360
at DotSpatial.Controls.MapFrame.ResetBuffer() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 289
at DotSpatial.Controls.Map.ResetBuffer() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\Map.cs:line 601
at TestDotSpatial.Kaart.Map1_MouseDown(Object sender, MouseEventArgs e) in c:\Projekte\TestDotSpatial\Kaart.cs:line 172

It also happen when you use the Demomap and add more than one point.
Comments: ** Comment from web user: CecilManley **

mogikanin

Could you get to the problem as I described in the screen captures.

Regards.

Commented Unassigned: MapLabelLayer : Index was outside the bounds of the array [25072]

$
0
0
When I try to add Labels to a Feature Layer I get this problem.



System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs e, IEnumerable`1 features) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 381
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs args, List`1 features, List`1 clipRectangles, Boolean useChunks) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 201
at DotSpatial.Controls.MapLabelLayer.DrawRegions(MapArgs args, List`1 regions) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 154
at DotSpatial.Controls.MapFrame.InitializeLabels(List`1 regions, MapArgs args, IRenderable layer) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 529
at DotSpatial.Controls.MapFrame.Initialize(List`1 regions) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 332
at DotSpatial.Controls.MapFrame.Initialize() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 360
at DotSpatial.Controls.MapFrame.ResetBuffer() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 289
at DotSpatial.Controls.Map.ResetBuffer() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\Map.cs:line 601
at TestDotSpatial.Kaart.Map1_MouseDown(Object sender, MouseEventArgs e) in c:\Projekte\TestDotSpatial\Kaart.cs:line 172

It also happen when you use the Demomap and add more than one point.
Comments: ** Comment from web user: mogikanin **

Yes, i reproduced it. Thank you. We might include fix for it into next DS release.

Commented Unassigned: MapLabelLayer : Index was outside the bounds of the array [25072]

$
0
0
When I try to add Labels to a Feature Layer I get this problem.



System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs e, IEnumerable`1 features) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 381
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs args, List`1 features, List`1 clipRectangles, Boolean useChunks) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 201
at DotSpatial.Controls.MapLabelLayer.DrawRegions(MapArgs args, List`1 regions) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapLabelLayer.cs:line 154
at DotSpatial.Controls.MapFrame.InitializeLabels(List`1 regions, MapArgs args, IRenderable layer) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 529
at DotSpatial.Controls.MapFrame.Initialize(List`1 regions) in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 332
at DotSpatial.Controls.MapFrame.Initialize() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 360
at DotSpatial.Controls.MapFrame.ResetBuffer() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\MapFrame.cs:line 289
at DotSpatial.Controls.Map.ResetBuffer() in g:\MaxDocs\Projects\ISU_GSL\dotSpatial\Trunk\DotSpatial.Controls\Map.cs:line 601
at TestDotSpatial.Kaart.Map1_MouseDown(Object sender, MouseEventArgs e) in c:\Projekte\TestDotSpatial\Kaart.cs:line 172

It also happen when you use the Demomap and add more than one point.
Comments: ** Comment from web user: CecilManley **

Thanks that will be helpful.

Regards

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: gennadiy_d **

+1 to use the latest versions of both NTS and GeoAPI in DotSpatial.

New Post: Loading layers using WMS...... confused on if DotSpatial can do this

$
0
0
I am looking at DotSpatial (v1.6) as a possible GIS tool within one of our applications and am wondering if it currently supports adding layers using WMS (ie, I give it a WMS URL). I have seen references to the need for this but am unsure if it actually exists yet, and if so, is it in the default APIs or do I need to get a plugin?

Any thoughts would be appreciated - Peter

New Post: Cannot see .ecw file type in GDAL rasters with v1.6.0

$
0
0
One more question... although this is not strictly a DotSpatial issue but a basic lack of knowledge of Visual Studio ...

By putting the Windows Extensions directory and subordinate GDAL folders into the Debug folder (as per
Mudnug's tutorial
I can see all the GDAL types when I run in Visual Studio. But these are not visible when I publish the solution because they are not in the project only in the file manager.

How do I include the Windows Extensions folder and contents in the project when I build and publish?

New Post: Cannot see .ecw file type in GDAL rasters with v1.6.0

$
0
0
Please note, that Mudnug's tutorial regarding GDAL extension a bit is out of date: from 1.6 version you not need to compile DotSpatial.Data.Rasters.GdalExtension into x86 or x64 - enougth AnyCPU mode. If you want to have all GDALs dlls in your output folder you could to create postbuild event which copies all dlls into that output folder.

New Post: Projections for Hawaii

$
0
0
Hi, there are a lot of projections available in DotSpatial.Projections project. You can get it from nuget, or directly from downloads on this site. The most of them available from inside DotSpatial.Projections.KnownCoordinateSystems class.

New Post: Cannot see .ecw file type in GDAL rasters with v1.6.0

$
0
0
Thank you for the response, mogikanin. However, my problem is that I am a Visual Studio dummy. :(
I will look up how to do postbuild events and have the output folder packaged into the setup.exe.

New Post: Loading layers using WMS...... confused on if DotSpatial can do this

$
0
0
Yes, in v1.6 there is a way to see data from WMS servers on DotSpatial map. How it works you can see using DemoMap application.
Here is a little explanation:
  1. Start DemoMap.exe and select WMS inside basemap combobox.
    Image
  2. Enter server url, select layer, style.
    Image
  3. If you want to re-configure wms server, select Map->Configure in top menu.
    Image

New Post: Map.Layers.LayerAdded and Map.Layers.LayerRemoved Events

$
0
0
Anyway, in case when layer is moving inside legend OnLayerAdded event should have a link to layer. Please let me know, if this change will do usage of these events a bit clear in your application.

Created Issue: Project (dspx) serialization and GDAL Imagery [25121]

$
0
0
This seems to happen even when using the DemoMap.exe.

1.) Start up DemoMap.exe
2.) Add a gdal imagery layer to the application
3.) Save the project file
4.) Close DemoMap.exe
5.) Reopen DemoMap.exe
6.) Open the saved project file
7.) -- Error Here --

Link to a relatively small sid file I was using for this test:
https://dl.dropboxusercontent.com/u/16831965/gdal_sid.zip
Viewing all 3973 articles
Browse latest View live


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