Source code checked in, #74161
Source code checked in, #74162
Released: MapWinGIS v4.9.1 - Alpha (Apr 06, 2014)
We've also started over with a fresh project for InnoSetup.
So this installer is mostly to test if the install process is working as expected. It does include all files and a small test application which you can run and drop files (shapefile, grid, image) on.
Be aware that you can only have 1 mapwingis.ocx on each computer so don't install this on your production environment. But please test it with your current application since we want to know if we've broken anything. We tried to be as backwards compatible as possible ;)
Created Release: MapWinGIS v4.9.1 - Alpha (apr 06, 2014)
We've also started over with a fresh project for InnoSetup.
So this installer is mostly to test if the install process is working as expected. It does include all files and a small test application which you can run and drop files (shapefile, grid, image) on.
Be aware that you can only have 1 mapwingis.ocx on each computer so don't install this on your production environment. But please test it with your current application since we want to know if we've broken anything. We tried to be as backwards compatible as possible ;)
Updated Wiki: Home
Welcome to the MapWinGIS ActiveX Control Project
What is MapWinGIS?MapWinGIS.ocx is used to provide GIS and mapping functionality to any Windows Forms based application.
MapWinGIS.ocx is a FREE and OPEN SOURCE C++ based geographic information system programming ActiveX Control and application programmer interface (API) that can be added to a Windows Form in Visual Basic, C#, Delphi, or other languages that support ActiveX, providing your app with a map.
Who is Working on MapWinGIS?
The MapWinGIS Activex Control is a central product of the MapWindow GIS Open Source Project. The control is built entirely in C++ and is a robust and powerful GIS component that serves as the primary element of the MapWindow GIS Application and provides GIS functionality to many other software applications.
Can I Use MapWinGIS?
MapWinGIS.ocx is FREE and OPEN SOURCE under the MPL 1.1 license. This means that you can use it freely in your commercial and non-commercial applications.
Do You Need Any Help?
MapWinGIS is very robust and well established - with several thousand downloads from the MapWindow.org web site over the past several years. MapWinGIS still has potential for many new and interesting upgrades and improvements. So we are actively seeking developers who want to work on this project with us.
Updated Wiki: Home
Welcome to the MapWinGIS ActiveX Control Project
What is MapWinGIS?MapWinGIS.ocx is used to provide GIS and mapping functionality to any Windows Forms based application.
MapWinGIS.ocx is a FREE and OPEN SOURCE C++ based geographic information system programming ActiveX Control and application programmer interface (API) that can be added to a Windows Form in Visual Basic, C#, Delphi, or other languages that support ActiveX, providing your app with a map.
(binary grid rendered with custom color scheme and built-in hillshading algorithm)
Who is Working on MapWinGIS?
The MapWinGIS Activex Control is a central product of the MapWindow GIS Open Source Project. The control is built entirely in C++ and is a robust and powerful GIS component that serves as the primary element of the MapWindow GIS Application and provides GIS functionality to many other software applications.
Can I Use MapWinGIS?
MapWinGIS.ocx is FREE and OPEN SOURCE under the MPL 1.1 license. This means that you can use it freely in your commercial and non-commercial applications.
Do You Need Any Help?
MapWinGIS is very robust and well established - with several thousand downloads from the MapWindow.org web site over the past several years. MapWinGIS still has potential for many new and interesting upgrades and improvements. So we are actively seeking developers who want to work on this project with us.
New Post: StopEditingShapes - change field type from Date to Character
I've got problem with 4.8.8 version of ManWinGIS.
When i edit a shape file and then finish it with .StopEditingShapes. My DBF file fields type are changed. It happens to data type fields -> convert do character fields.
If someone's have the same problem please send me a solution.
thanks
Created Unassigned: Changing Date field type to Character type afer edit dbf [25370]
I've got problem with 4.8.8 version of ManWinGIS.
When i edit a shape file and then finish it with .StopEditingShapes. My DBF file fields type are changed. It happens to data type fields -> convert do character fields.
Please help me with this problem
Thanks
Commented Unassigned: Changing Date field type to Character type afer edit dbf [25370]
I've got problem with 4.8.8 version of ManWinGIS.
When i edit a shape file and then finish it with .StopEditingShapes. My DBF file fields type are changed. It happens to data type fields -> convert do character fields.
Please help me with this problem
Thanks
Comments: ** Comment from web user: shinoq **
... Ok I found information that MapWinGIS doesn't support date fileds type .... so i think that's it.
Created Unassigned: ProjToPixel Returning outrageous values [25373]
I have a Winforms C# app that loads a number of map layers in stateplane projection. It also has a GPS interface that requires:
-an on-the-fly projection from decimal degrees to the stateplane coordinate system
-display of the GPS position using .ProjToPixel() and .DrawCircleEx().
I am seeing that the call to ProjToPixel is returning screen coordinates that are sometimes negative, but often outside the screen extent of the map control.
Here is my code, perhaps someone can point out what I am doing wrong?
```
MapWinGIS.Shapefile fGPSLocation = new MapWinGIS.Shapefile();
if (!fGPSLocation.CreateNewWithShapeID("", MapWinGIS.ShpfileType.SHP_POINT))
return false;
MapWinGIS.Shape shpGPS = new MapWinGIS.Shape();
shpGPS.ShapeType = MapWinGIS.ShpfileType.SHP_POINT;
double dLat = lat;
double dLng = lng;
double dLatPrj = 0.0;
double dLngPrj = 0.0;
String err = String.Format("GPS: Lat={0}, Lng={1}", dLat, dLng);
Console.WriteLine(err);
try
{
shpGPS.AddPoint(dLng, dLat);
int nShape = -1;
nShape = fGPSLocation.EditAddShape(shpGPS);
MapWinGIS.GeoProjection projStart = new MapWinGIS.GeoProjection();
projStart.ImportFromEPSG(epsgCodeGeographic);
fGPSLocation.GeoProjection = projStart;
MapWinGIS.GeoProjection proj = new MapWinGIS.GeoProjection();
proj.ImportFromEPSG(epsgCodeStateplane);
int nReprojectedCount = 0;
fGPSLocation.ReprojectInPlace(proj, ref nReprojectedCount);
fGPSLocation.get_Shape(0).get_XY(0, ref dLngPrj, ref dLatPrj);
fGPSLocation.StopEditingShapes(true, true, null);
err = String.Format("SP: Y={0}, X={1}", dLatPrj, dLngPrj);
Console.WriteLine(err);
//Now draw the GPS position as a Drawing Layer (screen coordinates)
axMap1.ClearDrawings();
int hDrawing = axMap1.NewDrawing(MapWinGIS.tkDrawReferenceList.dlScreenReferencedList);
//Get the necessary items for the drawing object
double pxX = 0.0;
double pxY = 0.0;
double pxRadius = 0.0;
//Maybe do some math to scale the size of the circle with another CEP (circular error probability) circle
//pxRadius = (Math.Abs(extentCurrent.xMax - extentCurrent.xMin) / 100);
pxRadius = 5;
axMap1.ProjToPixel(dLngPrj, dLatPrj, ref pxX, ref pxY);
err = String.Format("Map: x={0}, y={1}", pxX, pxY);
Console.WriteLine(err);
axMap1.DrawCircleEx(hDrawing, pxX, pxY, pxRadius, Convert.ToUInt32(ColorTranslator.ToOle(Color.Red)), true);
}
```
New Post: mwsymbology imagecombo colorscheme
I want to use image combo component to select the graduated color scheme. I used following codes under form load event
ImageCombo1.ComboStyle = ImageComboStyle.ColorSchemeGraduated
But this doesn't work. Please help me.Thanks.
Source code checked in, #74173
Source code checked in, #74193
Source code checked in, #74211
Updated Wiki: Documentation
New documentation for the MapWinGIS ActiveX Control Version 4.9
Thanks to Sergei we have new documentation, updated to v4.9.1: http://www.mapwindow.org/documentation/mapwingis4.9/
Especially the Getting started (http://www.mapwindow.org/documentation/mapwingis4.9/getting_started.html) is very useful for beginners. On the main page are also numerous articles about general topics that are very interesting for experienced users as well.
Current Documentation for the MapWinGIS ActiveX Control Version 4.8
- The most complete documentation for the MapWinGIS ActiveX control is here: http://www.mapwindow.org/documentation/mapwingis4.8/
- A brief change history of of key changes from 4.7 to 4.8 (starting from 12 February 2011) is here: Version history.
Older Documentation
- Quick Start Guide to Programming with the MapWinGIS ActiveX Control in Visual Basic .NET -UsingMapWinGIS.pdf
- Functions, Methods, and Properties Reference Manual for the MapWinGIS ActiveX Control - MapWinGIS Reference Manual with TOC.pdf (thanks to user DerBeobachter for adding the Table of Contents)
- Class Diagram Poster for the MapWinGIS ActiveX Control - MapWinGIS_API_Poster.ppt
- Early CHM Compiled Help File for the MapWinGIS ActiveX Control (must be unzipped with 7zip) -MapWinGIS.7z
- Sample projects on various languages - http://www.mapwindow.org/pages/documentation.php
Updated Wiki: Documentation
New documentation for the MapWinGIS ActiveX Control Version 4.9
Thanks to Sergei we have new documentation, updated to v4.9.1:
http://www.mapwindow.org/documentation/mapwingis4.9/
Especially the Getting started (http://www.mapwindow.org/documentation/mapwingis4.9/getting_started.html) is very
useful for beginners. On the main page are also numerous articles about general topics that are very interesting for experienced users as well.
Current Documentation for the MapWinGIS ActiveX Control Version 4.8
- The most complete documentation for the MapWinGIS ActiveX control is here: http://www.mapwindow.org/documentation/mapwingis4.8/
- A brief change history of of key changes from 4.7 to 4.8 (starting from 12 February 2011) is here: Version history.
Older Documentation
- Quick Start Guide to Programming with the MapWinGIS ActiveX Control in Visual Basic .NET -UsingMapWinGIS.pdf
- Functions, Methods, and Properties Reference Manual for the MapWinGIS ActiveX Control - MapWinGIS Reference Manual with TOC.pdf (thanks to user DerBeobachter for adding the Table of Contents)
- Class Diagram Poster for the MapWinGIS ActiveX Control - MapWinGIS_API_Poster.ppt
- Early CHM Compiled Help File for the MapWinGIS ActiveX Control (must be unzipped with 7zip) -MapWinGIS.7z
- Sample projects on various languages - http://www.mapwindow.org/pages/documentation.php
New Post: GRID projection
So, i'm adding and removing the grid with layers.add and layers.remove.
My grids are created by my code, and I set in the header the grid's projection.
The problem is that every time that I add a grid layer, a MapWindow information window is shown saying that my grid file has no defined projection, despite the previous set in the header . This popup needs the user intervention, and this prevents the animation.
I also tried to create a prj file with the same name of my grid file, but without success.
So, is there a way to set the grid's projection or prevent the window?
That is the ASCII of my created grid file:
NCOLS 18
NROWS 11
XLLCENTER -52.550000
YLLCENTER -29.800000
DX 0.15
DY 0.15
NODATA_VALUE -9999
-9999 -9999 0 -9999 -9999 0 -9999 -9999 0 0 0 -9999 -9999 -9999 -9999 -9999 -9999 -9999
-9999 -9999 0 0 0 0 0 0 0 0 0 -9999 -9999 -9999 -9999 -9999 -9999 -9999
-9999 -9999 0 0 0 0 0 0 0 0 0 0 0 -9999 -9999 -9999 -9999 -9999
-9999 -9999 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9999
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-9999 0 0 0 0 0 0 0 0 -9999 -9999 -9999 -9999 -9999 0 0 -9999 -9999
-9999 -9999 0 0 0 0 0 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 0 -9999 -9999
-9999 0 0 0 0 0 0 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999
-9999 0 0 0 0 0 0 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999
-9999 -9999 -9999 0 0 0 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999
PROJECTION
NOTES