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

Source code checked in, #73673

$
0
0
MapWindowCompatibility: allow to load latest MapWindow project files ("projectfile.2"). #24715

Commented Issue: 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: Associated with changeset 73673: MapWindowCompatibility: allow to load latest MapWindow project files ("projectfile.2"). #24715

Edited Issue: 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 **

Thank you for providing detailed explanation. Now it's fixed.

New Post: georeference a map( jpg)

$
0
0
is there any way to georeference a map (jpg) in dotspatial???
Thanks

Edited Issue: SyntaxErrorException in DotSpatial.Simbology.DrawingFilter ApplyScheme [23377]

$
0
0
I have a polygon shapefile that I want to convert to a raster (.bgd file).
If I use an Integer Field I have no problem with it:
 
var rasterOut = DotSpatial.Analysis.VectorToRaster.ToRaster(fs, 0.0, "theField", "thePathTobgd");
rasterOut.Save();
 
But if I use a Double Field, then I get a SyntaxErrorException in DotSpatial.Simbology.DrawingFilter [ApplyScheme method]
 
I think it could be a 'parse format issue', because my app. has ES_es culture instead of EN and a previous .ToString( ) has not been properly considered (dot separator is expected for decimal numbers, instead of a comma).
 
Could you please have a look at it?
I am using dotspatial 1.3 binaries [68470]

Source code checked in, #73674

$
0
0
Fixed culture issue in DotSpatial.Simbology.DrawingFilter ApplyScheme. #23377

Closed Issue: SyntaxErrorException in DotSpatial.Simbology.DrawingFilter ApplyScheme [23377]

$
0
0
I have a polygon shapefile that I want to convert to a raster (.bgd file).
If I use an Integer Field I have no problem with it:
 
var rasterOut = DotSpatial.Analysis.VectorToRaster.ToRaster(fs, 0.0, "theField", "thePathTobgd");
rasterOut.Save();
 
But if I use a Double Field, then I get a SyntaxErrorException in DotSpatial.Simbology.DrawingFilter [ApplyScheme method]
 
I think it could be a 'parse format issue', because my app. has ES_es culture instead of EN and a previous .ToString( ) has not been properly considered (dot separator is expected for decimal numbers, instead of a comma).
 
Could you please have a look at it?
I am using dotspatial 1.3 binaries [68470]
Comments: Resolved with changeset 73674: Fixed culture issue in DotSpatial.Simbology.DrawingFilter ApplyScheme. #23377

Commented Issue: Loading large SID files failes due to pointer error [22838]

$
0
0
During the MWI creation process, trying to load a 358mb SID file it fails at 2.14GB with this message
 
Error: An attempt was made to move the file pointer before the beginning of the file.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
at DotSpatial.Data.PyramidImage.WriteWindow(Byte[] bytes, Int32 startRow, Int32 startColumn, Int32 numRows, Int32 numColumns, Int32 scale, ProgressMeter pm) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Data\PyramidImage.cs:line 530
at DotSpatial.Data.PyramidImage.WriteWindow(Byte[] bytes, Int32 startRow, Int32 startColumn, Int32 numRows, Int32 numColumns, Int32 scale) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Data\PyramidImage.cs:line 500
at DotSpatial.Data.Rasters.GdalExtension.GdalImageProvider.OpenFile(String fileName) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Data.Rasters.GdalExtension\GdalImageProvider.cs:line 291
at DotSpatial.Data.Rasters.GdalExtension.GdalImageProvider.DotSpatial.Data.IDataProvider.Open(String fileName) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Data.Rasters.GdalExtension\GdalImageProvider.cs:line 87
at DotSpatial.Data.DataManager.OpenFile(String fileName, Boolean inRam, IProgressHandler progressHandler) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Data\DataManager.cs:line 375
at DotSpatial.Data.DataManager.OpenFile(String fileName) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Data\DataManager.cs:line 312
at DotSpatial.Controls.MapLayerCollection.Add(String fileName) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Controls\MapLayerCollection.cs:line 153
at DotSpatial.Controls.Map.AddLayer(String fileName) in C:\Users\robbinj\Documents\Visual Studio 2010\Projects\Mobile\src\DotSpatial\DotSpatial.Controls\Map.cs:line 540
 
Trying to run it in debug mode causes it to fail due to out of memory exception after writing just the first chunk.
Comments: ** Comment from web user: mogikanin **

Hi, can you provide file to reproduce this issue?


Commented Issue: FID issue (0 or 1) [22980]

$
0
0
FID starts with 0 if the attribute table is not manually opened through legend control, otherwise it starts with 1. This create alot of problems in keeping track of the features while doing analysis. Simple if condition check on first feature's FID resolves it but you have to check it in all your code.
Comments: ** Comment from web user: mogikanin **

Hi, can you provide sample how to reproduce this issue? I tried to open atttirbute table in both ways and it starts always from 0.

Commented Issue: .SID Image Layer not working when zoomed out [22507]

$
0
0
As discussed http://dotspatial.codeplex.com/discussions/352222
 
I tried it in the DemoMap application with the same result.
I thought it might be something to do with the pyramid files from previous versions so I deleted those but with no success.
I cannot attach the .SID file since it is around 5mb so if I could send it to someone direct to help resolve it then please ask.
This is a bit of a show stopper for me :( since this is happening with test client layers.
Comments: ** Comment from web user: mogikanin **

Please upload file again. At the moment this file not available.

Commented Issue: Reloading Project files fails [23004]

$
0
0
Have created several shapefiles with Dotspatial and save the project setting into a .dspx file. but can't reload the file into the environment.
with the follow error 'An incompatible feature type was supplied and was not of type Point.', line 361 of XmlDeserializer.cs, when the type is actually MapPolygonLayer?
If I save just preexisting layers, all is fine. Only have problems with layers created by DotSpatial.
All layers have been saved to disk using FeatureSet.SaveAs(Filename).
Comments: ** Comment from web user: mogikanin **

So the issue is solved and we can close it?

New Post: How change de project of WMS using class of BruTileLayer??

$
0
0
Thank very much FObermainer.

I have had many problems to compile it provided that it did not have the last dll and have them had unload and to compile them. After all that I have tried again and do not achieve the code makes work. My code is the following one:


this.map1.MapFrame.SuspendEvents();
        BruTileLayer bruTileLayer1 = BruTileLayer.CreateBingHybridLayer();
        bruTileLayer1.Projection = KnownCoordinateSystems.Projected.UtmOther.ETRS1989UTMZone30N;
        bruTileLayer1.Reproject(KnownCoordinateSystems.Projected.UtmOther.ETRS1989UTMZone30N);
        bruTileLayer1.LegendText = "Google Maps";
        bruTileLayer1.UseDynamicVisibility = true;


        this.map1.Layers.Add(bruTileLayer1);
        this.map1.Projection = KnownCoordinateSystems.Projected.UtmOther.ETRS1989UTMZone30N;
        this.map1.MapFrame.ResumeEvents();
        this.map1.ZoomToMaxExtent();
        this.map1.Refresh();
but not run. What's the problem? Exists a new code for use that library?

Thanks very much...

Source code checked in, #73677

$
0
0
Fixed memory leak in RasterLayer

Source code checked in, #73678

$
0
0
Use EventArgs.Empty instead "new EventArgs()"

Source code checked in, #73679


Created Unassigned: Print Layout bug [25095]

$
0
0
Hello:
The following figure shows the print layout view that I used for testing.

Closed Issue: No Projection recognition [23821]

$
0
0
Dear all,
I'm devoloping a little app using dotspatial toolbar. This is a screenshot

![Image](http://i.minus.com/igygzqLtqZPj3.png)

When I use the green Add button to add this file http://min.us/lLYAcxOOIKaLM - an EPSG:32633 geotiff file - it seems that dotspatial does not read the projection info of this file. It reads "Nothing".

Is it normal?

Thank you,

Andrea

![Image](http://i.minus.com/ibcVquFxIwDiD3.png)
Comments: Not reproduced with latest DS.

New Post: Project (dspx) serialization and GDAL Imagery

$
0
0
It appears that when I add a GDAL image to a DotSpatial Map and save the dspx file the serialization works, however if I go back and open that dspx file up again it always fails and says "Failed to read a portion of the specified map file: path_to_projectfile.dspx"

Do I have to run sort of custom serialization to save the imagery to the dspx file for later usage?

thanks
-j

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

$
0
0
I had setup my application to watch for these two events, so that on changes made the interface updates with the changes made to the map, I thought this was working fine but have come to discover that if a user moves a layer inside of the Legend both the layer Remove and Add events fire. The Add event always has a null layer value and the actual count of the layers on the map doesn't seem to change but it messes up my interface changes. Is this normal? SHould I be halting these events somehow? Should I be using events from another object? Ideas here would be wonderful.

thanks
-j

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

$
0
0
Hi, i think it is a bug that Add event always has a null layer in this case. It should contains a reference to moved layer.
Viewing all 3973 articles
Browse latest View live


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