Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all 2341 articles
Browse latest View live

Source code checked in, #74161

$
0
0
First test. Hopefully this works.

Source code checked in, #74162

$
0
0
Updated release notes until 74161. These will be used in the installer for v4.9.1

Released: MapWinGIS v4.9.1 - Alpha (Apr 06, 2014)

$
0
0
This is the first installer since we moved to using the pre-build GDAL binaries fromGisInternals.com.
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)

$
0
0
This is the first installer since we moved to using the pre-build GDAL binaries from GisInternals.com.
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

$
0
0

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.

grid.png

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.

mapwindow_small.png

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

$
0
0

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.

grid.jpg
(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.

mapwindow_small.png

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

$
0
0
Hi

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]

$
0
0
Hi

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]

$
0
0
Hi

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]

$
0
0
Hi,

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

$
0
0
Hi,
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

$
0
0
New API members: Image.GridProxyColorScheme, Measuring.IsUsingEllipsoid, Tiles.ServerProjection, Tiles.ProjectionStatus, Utils.ErrorMsgFromObject, Map.ProjToDegrees, Map.DegreesToProj, Map.PixelToDegrees, Map.DegreesToPixel, Utils.TileProjectionToGeoProjection. Fixes: couple of leaks and problems with shapefile validation. API members affected Shape.ReversePointsOrder, Extents.ToShape, Shapefile.HasInvalidShapes.

Source code checked in, #74193

$
0
0
Updated the TestGrids project to reference the OCX as a COM Reference. Updated function calls in TestApplication to work with latest OCX code.

Source code checked in, #74211

$
0
0
1. Support of GDAL overviews for grids: - if overviews exists direct rendering will be chosen rather than usage of proxy; - if neither overview no proxy exist, overviews will be created (if grid is large enough - GlobalSettings.MinOverviewWidth; if driver supports that; external .ovr format is used); - if proxy exists but overviews doesn't, proxy will be used; - proxy will be created if overviews can't be created (I haven't identified formats so far where this logic takes place). 2. GTiff proxy will used compression set in GlobalSettings.TiffCompression. Also built-in overviews will be automatically created for it. 3. Some thread-safe locking for tiles screen buffer. 4. Testing script for overviews/proxy issues. New API members: GlobalSettings class: RasterOverviewCreation, RasterOverviewResampling, MinOverviewWidth, TiffCompression. FileManager class: HasGdalOverviews, ClearGdalOverviews, BuildGdalOverviews, NeedsGdalOverviews, RemoveProxyForGrid, HasValidProxyForGrid.

Updated Wiki: Documentation

$
0
0

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

Older Documentation


Updated Wiki: Documentation

$
0
0

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

Older Documentation

New Post: GRID projection

$
0
0
I'm building a MapWindow 4.8 plugin and want to create a animation with several grids and a timer. My grids are in ASCII format.
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

Source code checked in, #74221

$
0
0
Added a simple test to the TestApplication for the new AxMap.Clear() method.

Source code checked in, #74224

$
0
0
Added a status bar to the TestApplication which currently only shows the coordinates of the mouse cursor.

Source code checked in, #74228

$
0
0
Google Mercator projection is initialized using WKT string instead of Proj.4 string.
Viewing all 2341 articles
Browse latest View live


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