<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>DotSpatial</title><link>http://dotspatial.codeplex.com/project/feeds/rss</link><description>DotSpatial is an open source project focused on developing a core set of GIS and mapping libraries that live together harmoniously in the DotSpatial namespace working seamlessly with the .NET framework. </description><item><title>Created Unassigned: Label spatialite layer [24339]</title><link>http://dotspatial.codeplex.com/workitem/24339</link><description>The code for adding new layer from SQL Spatialite database in DotSpatial map works OK&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#9;  SpatiaLiteHelper slh &amp;#61; new SpatiaLiteHelper&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;          GeometryColumnInfo item &amp;#61; r.DataBoundItem as GeometryColumnInfo&amp;#59;                   &lt;br /&gt;          IFeatureSet fs &amp;#61; slh.ReadFeatureSet&amp;#40;connString, item&amp;#41;&amp;#59;&lt;br /&gt;          IMapFeatureLayer lay &amp;#61; mainMap.Layers.Add&amp;#40;fs&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Labelling this &amp;#34;spatialite&amp;#34; allways layer fails when use &amp;#34;Label Setup&amp;#34; from legend and fails also &amp;#34;Export Data All features&amp;#34; too &amp;#40;shape file from this action is corrupted&amp;#41;. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for considering my request, Vojko&lt;br /&gt;</description><author>vzavec</author><pubDate>Fri, 24 May 2013 13:08:15 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Label spatialite layer [24339] 20130524010815P</guid></item><item><title>New Post: Zonal Statistics</title><link>http://dotspatial.codeplex.com/discussions/444123</link><description>&lt;div style="line-height: normal;"&gt;According to the documentations Xllcenter and Yllcenter must be the center of 1st cell coord in grid which is bottom-left cell.&lt;br /&gt;
But as i said, i found: &lt;br /&gt;
  Xllcenter = Raster.Extent.MinX + Raster.CellWidth (should be Raster.Extent.MinX + Raster.CellWidth / 2) and &lt;br /&gt;
  Yllcenter = Raster.Extent.MinY (should be Yllcenter = Raster.Extent.MinY + Raster.CellHeight / 2)&lt;br /&gt;
I think this is a bug.&lt;br /&gt;
&lt;/div&gt;</description><author>mese79</author><pubDate>Fri, 24 May 2013 07:23:04 GMT</pubDate><guid isPermaLink="false">New Post: Zonal Statistics 20130524072304A</guid></item><item><title>New Post: how to centre mapwindow around a certain coordinate?</title><link>http://dotspatial.codeplex.com/discussions/444837</link><description>&lt;div style="line-height: normal;"&gt;I have a working application which primarly now converts database data to shapes and projects them in the dutch coordinate system on the mapwindow.&lt;br /&gt;
&lt;br /&gt;
Now i made a button which looks up a certain ID-point in de database and I would like to jump to this point on the mapwindow where this point is in the centre....&lt;br /&gt;
&lt;br /&gt;
Below u see the part of the code where here&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;            Dim XRekenpunt As Object = dtSwungRekenpunt.Rows.Item(0).Item(&amp;quot;X&amp;quot;)
            Dim YRekenpunt As Object = dtSwungRekenpunt.Rows.Item(0).Item(&amp;quot;Y&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

I succesfully managed to retrieve the coordinates....   so how to centre the window on this point...? Can anyone give me ideas?&lt;br /&gt;
&lt;br /&gt;
Thx  Joska&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;    Private Sub btnZoekMachine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnZoekMachine.Click
        Dim strPadFile As String
        Dim ZoekRekenpunt As Long

        strPadFile = &amp;quot;&amp;quot;
        Try
            If DMC_DatabaseType = &amp;quot;SWUNG&amp;quot; Then
                strPadFile = lblPadFileSwung.Text
            ElseIf DMC_DatabaseType = &amp;quot;BOOGIE&amp;quot; Then
                strPadFile = lblPadFileBoogie.Text
            End If
            ZoekRekenpunt = Val(txtRekenpunt.Text)
            '--------------------------------------------------------------------------------------------
            'ZOEK DE SWUNG REKENPUNT in de database
            If DMC_DatabaseType = &amp;quot;SWUNG&amp;quot; And rbtZoekrekenpunt.Checked = True Then
                'Maak een nieuwe datatabel voor eventueel gevonden rekenpunten
                Dim dtSwungRekenpunt As New DataTable()
                'Maak een connectie met de database en vul de tabel
                Dim conSwungDatabase As New System.Data.OleDb.OleDbConnection(&amp;quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=&amp;quot; &amp;amp; strPadFile &amp;amp; &amp;quot;;Persist Security Info=False;User Id=admin;Password=;&amp;quot;)
                conSwungDatabase.Open()
                Using cmd As New System.Data.OleDb.OleDbCommand()
                    cmd.Connection = conSwungDatabase
                    cmd.CommandText = &amp;quot;SELECT tblWaarneempunten.ID, tblWaarneempunten.X, tblWaarneempunten.Y &amp;quot; _
                    &amp;amp; &amp;quot;FROM tblWaarneempunten &amp;quot; _
                    &amp;amp; &amp;quot;WHERE (((tblWaarneempunten.ID)= &amp;quot; &amp;amp; ZoekRekenpunt &amp;amp; &amp;quot;));&amp;quot;
                    Dim rdrR As System.Data.OleDb.OleDbDataReader = cmd.ExecuteReader()
                    dtSwungRekenpunt.Load(rdrR)
                End Using
                'Sluit de connectie
                conSwungDatabase.Close()
                Dim XRekenpunt As Object = dtSwungRekenpunt.Rows.Item(0).Item(&amp;quot;X&amp;quot;)
                Dim YRekenpunt As Object = dtSwungRekenpunt.Rows.Item(0).Item(&amp;quot;Y&amp;quot;)

              SO WHAT MUST GET HERE TO MAKE THE WINDOW CENTRE AROUND THIS POINT POSSIBLE?

            End If

        Catch ex As Exception
            MsgBox(ex.ToString, MsgBoxStyle.Critical, &amp;quot;Fout in btnZoekMachine_Click&amp;quot;)
            Return
        End Try
    End Sub&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>Joska</author><pubDate>Fri, 24 May 2013 04:56:29 GMT</pubDate><guid isPermaLink="false">New Post: how to centre mapwindow around a certain coordinate? 20130524045629A</guid></item><item><title>New Post: Problem when loading other .dll from my plugin dll</title><link>http://dotspatial.codeplex.com/discussions/444085</link><description>&lt;div style="line-height: normal;"&gt;atcUtility  depends on MapWinUtility.dll, so be sure to get the version of MapWinUtility.dll that was in the same package with it.&lt;br /&gt;
If this is the version from BASINS, then it is compiled for x86 and .Net 3.5. If it is from D4EM, then it is compiled for x86 and .Net 4.0.&lt;br /&gt;
&lt;/div&gt;</description><author>vatavian</author><pubDate>Thu, 23 May 2013 17:27:42 GMT</pubDate><guid isPermaLink="false">New Post: Problem when loading other .dll from my plugin dll 20130523052742P</guid></item><item><title>New Post: Dotspatial.Plugins.MapwindowProjectFileCompatibility</title><link>http://dotspatial.codeplex.com/discussions/444647</link><description>&lt;div style="line-height: normal;"&gt;I think it will be very difficult, beacause when I wrote the code below :&lt;br /&gt;
&lt;br /&gt;
OpenProjectMwprj mwprjOpener = new OpenProjectMwprj();&lt;br /&gt;
 mwprjOpener.App = appManager1;               &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;            try
            {
               mwprjOpener.Open(ProjectName);
            }
            catch (IOException exIO)
            {
                MessageBox.Show(this, &amp;quot;Could not open the specified map file &amp;quot; + ProjectName + Environment.NewLine + Environment.NewLine + exIO.Message, &amp;quot;Error&amp;quot;,
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
&lt;/code&gt;&lt;/pre&gt;

I always got this error : RuntimeBinderException: Cannot apply indexing with [] to an expression of type 'DotSpatial.Plugins.MapWindowProjectFileCompatibility.DynamicXMLNode'&lt;br /&gt;
&lt;br /&gt;
Which I didn't find the solution . &lt;br /&gt;
&lt;br /&gt;
Anyway Thanks for your explanation vatavian.&lt;br /&gt;
&lt;/div&gt;</description><author>Luffy16</author><pubDate>Thu, 23 May 2013 08:40:31 GMT</pubDate><guid isPermaLink="false">New Post: Dotspatial.Plugins.MapwindowProjectFileCompatibility 20130523084031A</guid></item><item><title>New Post: Zonal Statistics</title><link>http://dotspatial.codeplex.com/discussions/444123</link><description>&lt;div style="line-height: normal;"&gt;ops... yes you are right! sorry for the wrong info,&lt;br /&gt;
&lt;br /&gt;
So you are basically saying that the xllcenter and yllcenter are pointing to the bottom right corner of cell (0,0)?&lt;br /&gt;
&lt;br /&gt;
Oscar&lt;br /&gt;
&lt;/div&gt;</description><author>Oscarafone77</author><pubDate>Thu, 23 May 2013 08:27:20 GMT</pubDate><guid isPermaLink="false">New Post: Zonal Statistics 20130523082720A</guid></item><item><title>New Post: Dotspatial.Plugins.MapwindowProjectFileCompatibility</title><link>http://dotspatial.codeplex.com/discussions/444647</link><description>&lt;div style="line-height: normal;"&gt;Dotspatial.Plugins.MapwindowProjectFileCompatibility was created based on an earlier version of MapWindow 4. The MapWindow 4 project file has evolved in a non-backward-compatible way since then. It should be possible for someone to update MapwindowProjectFileCompatibility to also be able to read newer project files, but it would take some effort.&lt;br /&gt;
&lt;/div&gt;</description><author>vatavian</author><pubDate>Wed, 22 May 2013 21:38:44 GMT</pubDate><guid isPermaLink="false">New Post: Dotspatial.Plugins.MapwindowProjectFileCompatibility 20130522093844P</guid></item><item><title>New Post: Dotspatial.Plugins.MapwindowProjectFileCompatibility</title><link>http://dotspatial.codeplex.com/discussions/444647</link><description>&lt;div style="line-height: normal;"&gt;Hi everybody.&lt;br /&gt;
&lt;br /&gt;
I have built a GIS application using Dotspatial. I am able to open Dotspatial projects (*.dspx),Images maps, PDF maps, but I can't open a mapwindow project. I tried to use the plugin Dotspatial.Plugins.MapwindowProjectFileCompatibility to open the mapwindow project but I failed.&lt;br /&gt;
&lt;br /&gt;
Is there any possibility to do it please ?&lt;br /&gt;
&lt;/div&gt;</description><author>Luffy16</author><pubDate>Wed, 22 May 2013 19:35:38 GMT</pubDate><guid isPermaLink="false">New Post: Dotspatial.Plugins.MapwindowProjectFileCompatibility 20130522073538P</guid></item><item><title>New Post: Saving points, lines or polygons with project and reload them</title><link>http://dotspatial.codeplex.com/discussions/444563</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
&lt;br /&gt;
When I draw a point on a layer, I save the project for example (test1.dspx), but when I want to open it again , either I can't find the points which I drew or the project does not want to open&lt;br /&gt;
can you help me please to solve this&lt;br /&gt;
&lt;/div&gt;</description><author>Luffy16</author><pubDate>Wed, 22 May 2013 10:04:47 GMT</pubDate><guid isPermaLink="false">New Post: Saving points, lines or polygons with project and reload them 20130522100447A</guid></item><item><title>Source code checked in, #72156</title><link>http://dotspatial.codeplex.com/SourceControl/changeset/changes/72156</link><description>Synchronized the Legend with the Identify tool so that when one is clicked, the other is selected accordingly.  Additionally,  information in the Identify form is now open to view so as to make it less burdensome to constantly click to open the information.  Also, clicking on parent layers in the identify form will now change layers, not just clicking on children.</description><author>ericch</author><pubDate>Tue, 21 May 2013 21:19:17 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72156 20130521091917P</guid></item><item><title>Source code checked in, #72155</title><link>http://dotspatial.codeplex.com/SourceControl/changeset/changes/72155</link><description>Small change to controls description.</description><author>danames</author><pubDate>Tue, 21 May 2013 20:40:56 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72155 20130521084056P</guid></item><item><title>Source code checked in, #72152</title><link>http://dotspatial.codeplex.com/SourceControl/changeset/changes/72152</link><description>Should now display reverse order</description><author>ericch</author><pubDate>Mon, 20 May 2013 21:49:14 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72152 20130520094914P</guid></item><item><title>Source code checked in, #72151</title><link>http://dotspatial.codeplex.com/SourceControl/changeset/changes/72151</link><description>Reversed the order of ithe items in the FeatureIdentifier so that they are in the same order as the&amp;#13;&amp;#10;Legend Items.</description><author>ericch</author><pubDate>Mon, 20 May 2013 21:30:51 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72151 20130520093051P</guid></item><item><title>Source code checked in, #72150</title><link>http://dotspatial.codeplex.com/SourceControl/changeset/changes/72150</link><description>Changed references to DotSpatial.Controls in the Header&amp;#47;DockManager plugins.</description><author>shieldst</author><pubDate>Mon, 20 May 2013 20:13:52 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72150 20130520081352P</guid></item><item><title>New Post: Zonal Statistics</title><link>http://dotspatial.codeplex.com/discussions/444123</link><description>&lt;div style="line-height: normal;"&gt;Well actually it is bottom-left cell!&lt;br /&gt;
I figure out my problem. in raster grid first cell is bottom-left one so value[0,0] contains value for that cell.&lt;br /&gt;
But i think i found a bug: &lt;br /&gt;
the Xllcenter and Yllcenter supposed to be center of first cell coordinate, but i found Xllcenter equal to Raster.Extent.MinX + Raster.CellWidth and Yllcenter equal to Raster.Extent.MinY. &lt;br /&gt;
Isn't this a bug?&lt;br /&gt;
&lt;/div&gt;</description><author>mese79</author><pubDate>Mon, 20 May 2013 16:50:29 GMT</pubDate><guid isPermaLink="false">New Post: Zonal Statistics 20130520045029P</guid></item><item><title>New Post: Zonal Statistics</title><link>http://dotspatial.codeplex.com/discussions/444123</link><description>&lt;div style="line-height: normal;"&gt;I think it is the top-left cell&lt;br /&gt;
&lt;br /&gt;
Oscar&lt;br /&gt;
&lt;/div&gt;</description><author>Oscarafone77</author><pubDate>Mon, 20 May 2013 12:58:08 GMT</pubDate><guid isPermaLink="false">New Post: Zonal Statistics 20130520125808P</guid></item><item><title>New Post: Zonal Statistics</title><link>http://dotspatial.codeplex.com/discussions/444123</link><description>&lt;div style="line-height: normal;"&gt;Ok, i think i found the problem but i'm confused.&lt;br /&gt;
The Y axis of the map increases upward (just opposite of computer graphic). right?&lt;br /&gt;
If so in raster grid the raster.Value[0,0] refers to which cell coordinate? the top-left cell or bottom-left one?&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;/div&gt;</description><author>mese79</author><pubDate>Sat, 18 May 2013 19:07:05 GMT</pubDate><guid isPermaLink="false">New Post: Zonal Statistics 20130518070705P</guid></item><item><title>New Post: Zonal Statistics</title><link>http://dotspatial.codeplex.com/discussions/444123</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
I have a raster grid and a polygon layer. I want to calculate Mean value for each polygon from the raster grid.&lt;br /&gt;
Simply i create a loop through each raster cell and check if polygon intersect that cell. if so add cell value to sum and finally calculate mean by sum/cells in polygon.&lt;br /&gt;
But i think there is something wrong, because the results i get by this way is much different from result of ArcGIS 'Zonal Statistics' method. also DS clip raster by polygon gives me a new raster which has statistics very close to ArcGIS.&lt;br /&gt;
So is there problem with polygon.intersects? or my implementation is wrong?&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;...
var cell = new Point(raster.Xllcenter + (raster.CellWidth*col), raster.Yllcenter + raster.CellHeight*row));
if (polygon.Intersects(cell))
{
    count++;
    sum += raster.Value[row, col];
}&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>mese79</author><pubDate>Sat, 18 May 2013 09:39:27 GMT</pubDate><guid isPermaLink="false">New Post: Zonal Statistics 20130518093927A</guid></item><item><title>New Post: Problem when loading other .dll from my plugin dll</title><link>http://dotspatial.codeplex.com/discussions/444085</link><description>&lt;div style="line-height: normal;"&gt;Try to check the platform target  of your project. It has to be the same of your  arcUtility.dll..&lt;br /&gt;
&lt;/div&gt;</description><author>carosoisu</author><pubDate>Fri, 17 May 2013 20:39:01 GMT</pubDate><guid isPermaLink="false">New Post: Problem when loading other .dll from my plugin dll 20130517083901P</guid></item><item><title>New Post: Problem when loading other .dll from my plugin dll</title><link>http://dotspatial.codeplex.com/discussions/444085</link><description>&lt;div style="line-height: normal;"&gt;By the way I am writing plugin for Hydrodesktop...  Cause my Mapwindow 4 can not load the plugin dll I have wrote. Are there anyone have this problem before?&lt;br /&gt;
&lt;br /&gt;
Thank you very much!&lt;br /&gt;
&lt;/div&gt;</description><author>kuaifang</author><pubDate>Fri, 17 May 2013 19:50:38 GMT</pubDate><guid isPermaLink="false">New Post: Problem when loading other .dll from my plugin dll 20130517075038P</guid></item></channel></rss>