MapWindow GIS - Latest topics https://mapwindow.discourse.group/latest Latest topics Sun, 14 Dec 2025 17:48:16 +0000 Crashes in Microsoft Access Uncategorized Hi there,

I use MapWinGIS in Microsoft Access with VB6. Display of Map and interacting works great, but after some zooming and panning the application (and Microsoft Access) always crash totally.

Does anyone know how to avoid this?

5 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/crashes-in-microsoft-access/1875 Sun, 14 Dec 2025 17:48:16 +0000 No No No mapwindow.discourse.group-topic-1875 Crashes in Microsoft Access
How to set arcgis custom provider MapWinGIS Hi, in a simple project I’m trying to use arcgis as a basemap, but I can’t display the map. Here’s my code: (https://mapwindow.discourse.group/t/use-arcgis-custom-provider/164/2)

        private void btnLoadBasemap_Click(object sender, EventArgs e)
        {
            axMap1.CursorMode = MapWinGIS.tkCursorMode.cmPan;

            // add definition of custom provider
            int newID = (int)tkTileProvider.ProviderCustom;
            axMap1.Tiles.Providers.Add(newID, "Custom Provider",
                "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{0}/{2}/{1}.jpg",
                tkTileProjection.SphericalMercator, 0, 18);
            // set custom provider as the current provider
            axMap1.Tiles.ProviderId = newID;
            axMap1.Redraw3(tkRedrawType.RedrawSkipAllLayers, true);
        }

I’m trying to use the same basemap called “NASA Satellite imagery via ESRI” available in Easy GIS .NET.

Can anyone help me?

Thank you.

5 posts - 3 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/how-to-set-arcgis-custom-provider/1874 Sun, 16 Nov 2025 16:40:23 +0000 No No No mapwindow.discourse.group-topic-1874 How to set arcgis custom provider
Shape Highliting with codebehind MapWinGIS Consider a form in C# with a list on the left and a MapWinGIS map on the right. The list on the left contains the shapes of a ShapeFile object that is displayed on the map on the right. I want the shapes on the map to be highlighted when I hover over them with the mouse in the list (note: this is not selection — so sf.set_ShapeSelected should not be used!). The effect should be exactly like what happens in the AxMap_ShapeIdentified event.

Thank you very much in advance for any solution!

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/shape-highliting-with-codebehind/1872 Wed, 15 Oct 2025 10:08:30 +0000 No No No mapwindow.discourse.group-topic-1872 Shape Highliting with codebehind
Tiles not downloading from vb.net program MapWinGIS I have a vb.net project which has been running for 10+ years. Recently users have been reporting that new tiles are no longer being downloaded. Saved tiles work fine. We experienced a similar issue in about 2020 and that was caused by a ‘new’ requirement that a user_agent needs to be set. Since we changed that the program has worked without any problems. Are there any new requirements for downloading tiles?

fyi We are using v4.8.6 .

Any assistance will be appreciated.

Thanks

Mike

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/tiles-not-downloading-from-vb-net-program/1871 Wed, 15 Oct 2025 08:55:04 +0000 No No No mapwindow.discourse.group-topic-1871 Tiles not downloading from vb.net program
MapwinGIS x64 ocx crashes Uncategorized I have seen a few posts on the subject mentioning libeay.dll and I tried some of the fixes such as updating the dll file or changing the TileThreadPoolSize setting to 1 but that does not seem to work.

Any idea how to fix that?

Many thanks

Marc

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/mapwingis-x64-ocx-crashes/1868 Thu, 18 Sep 2025 21:51:28 +0000 No No No mapwindow.discourse.group-topic-1868 MapwinGIS x64 ocx crashes
IdentifiedShapes ShapeHighlighted Uncategorized Is it possible to get IdentifiedShapes with ShapeHighlighted?

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/identifiedshapes-shapehighlighted/1867 Thu, 18 Sep 2025 15:19:11 +0000 No No No mapwindow.discourse.group-topic-1867 IdentifiedShapes ShapeHighlighted
Select single Shape when click on map MapWinGIS I placed 10,000 points on the Map object. There is no problem with that, and I can also perform rectangle selection. However, when I zoom out, the number of visible points decreases.

My first question is:

  • Is there some kind of clustering happening automatically?

Also, while in cmSelection mode, I noticed that when I click on a point with the mouse, it gets selected. My question about this is:

  • Which event can I use to get the selected point (or points) on a single mouse click, since there seems to be no Click event?

Thank you very much in advance.

2 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/select-single-shape-when-click-on-map/1865 Wed, 17 Sep 2025 16:06:48 +0000 No No No mapwindow.discourse.group-topic-1865 Select single Shape when click on map
Problem GdalRasterWarp() MapWinGIS Hi Jerrry,

I using the GdalRasterWarp() to creat a new DEM grid with a new cell size (from 30 to 10 meters) and I got strange results.

In the picture the gray area is the input grid and the colored area is the area added with strange values. In the top figure is the output grid from QGIS and the bottom is tha result from MW.

Looking the results we can see the map resulting after call this function create a new area where must have NODATA value, but it create a area interpolated (colored area).

I called the function with a input grid with WGS84 projection and using 3 tests parameters to compare:
-of GTiff -tr 0.00009 0.00009 -r cubic
and
-of GTiff -tr 0.00009 0.00009 -r cubicspline
and
-of GTiff -tr 0.00009 0.00009 -r cubicspline -srcnodata -32768

All the resulting maps have the same area strange if comparared with QGIS usinga the same GDAL WARP function.

I looked the MW source code and I can’t explain what is happening.

Plense, can anyone help me.

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/problem-gdalrasterwarp/1861 Fri, 25 Jul 2025 19:01:29 +0000 No No No mapwindow.discourse.group-topic-1861 Problem GdalRasterWarp()
Grid change color scheme not working MapWinGIS Hello,
I have a DEM with TIFF format and a color scheme. I’m trying to change the color scheme to other color scheme but after it`s not work. I note that property ImageColorScheme of Image is not changed after I set the new value.
Here is my code in pascal, where IMG is created from a DEM file:

  img.TransparencyColor := 0;
  IMG.ImageColorScheme := FallLeaves;   <--- this line not work is read only?
  img.UseTransparencyColor := true;
  Map.Redraw;

I observed the IMG.ImageColorScheme := FallLeaves not change. Does someone could help me please or give a idea how do it in C?

Thanks

2 posts - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/grid-change-color-scheme-not-working/1858 Sun, 15 Jun 2025 18:37:23 +0000 No No No mapwindow.discourse.group-topic-1858 Grid change color scheme not working
GDAL OGRSurface MapWinGIS Hi,

I’m trying to create a surface from a terrain GRID using MW and GDAL.
I found the TIN class in NW but there’s no example code that I can start from, and also I found that exists GDALSurface class in GDAL that have a lot of class that I could use.
Does anyone knows if MW have implemented the class GDALSurface or can I use that calling OGR2OGR ou similar?

Thanks,

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/gdal-ogrsurface/1855 Thu, 29 May 2025 19:19:19 +0000 No No No mapwindow.discourse.group-topic-1855 GDAL OGRSurface
Working with MapWingIS when scaling in Windows MapWinGIS Hello.
I bought myself a new monitor, 27 inches 2K, for normal work with programs and fonts, set the scaling to 125%. And MapWinGIS began not just to slow down, it began to freeze, Redraw Time 5-6 seconds. Is it possible to do something in this situation or is there nothing to be done here?

4 posts - 3 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/working-with-mapwingis-when-scaling-in-windows/1849 Thu, 22 May 2025 14:23:48 +0000 No No No mapwindow.discourse.group-topic-1849 Working with MapWingIS when scaling in Windows
After installing MapWinGISv5.3 Uncategorized I can’t run the program after installing please, someone help I have to start my master thesis and I cant even run it. Do I need any program to run it ?

2 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/after-installing-mapwingisv5-3/1838 Sat, 29 Mar 2025 20:35:11 +0000 No No No mapwindow.discourse.group-topic-1838 After installing MapWinGISv5.3
ShapeEditor.AddPoint MapWinGIS The ShapeEditor.AddPoint function does work as expected.

When calling the AddPoint function it appears a new part is being added to the shape. I asked about this several years ago and I believe it has to do with Digitizing but there is very little documentation on that. Is there a reason this can’t simply add a new point to the shape?

Thanks
ToddH

4 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/shapeeditor-addpoint/1821 Sat, 01 Mar 2025 14:41:03 +0000 No No No mapwindow.discourse.group-topic-1821 ShapeEditor.AddPoint
Here.com maps are blank with Zoom 8 and above MapWinGIS I am using MapwinGis in Visual Foxpro 9 and am looking to switch to Here.com tile provider 10 since Microsoft is being deprecated. When I use Here.com, all works well if I’m zoomed out 7 or below. However, as I zoom in to 8 or above, the screen either freezes or eventually goes blank as it isn’t loading any tile updates. Am I missing a setting to allow this?

2 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/here-com-maps-are-blank-with-zoom-8-and-above/1816 Sun, 09 Feb 2025 20:38:43 +0000 No No No mapwindow.discourse.group-topic-1816 Here.com maps are blank with Zoom 8 and above
MouseDown Event not firing in Class Library MapWinGIS Hi ! I have a vb.net class library with mapwin ocx inside a splitcontainer panel . When using the library in an application the mousedown, mouseup and mousemove events do no fire. After adding the layers we add:
AxMap1.SendMouseDown = True
AxMap1.SendMouseUp = True
AxMap1.SendMouseMove = True
This is all done in the class library.

Any ideas on how to solve this ?
George

4 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/mousedown-event-not-firing-in-class-library/1814 Sun, 02 Feb 2025 04:16:36 +0000 No No No mapwindow.discourse.group-topic-1814 MouseDown Event not firing in Class Library
EOX Sentinel-2 as custom tile provider MapWinGIS Hi All

I was wondering if anyone has managed to successfully use Sentinel 2 images (from EOX – see https://s2maps.eu/ or any other source) as a custom tile provider in mapwingis? I have been successful in displaying them in a web browser, but unable to add them as a tile provider for mapwingis, either as WMS and WMST. The getcapabilities xml is available for these services here:

And the corresponding URLs (that work in a browser) are:

The code I am using (Visual Basic in Visual Studio 2010) is:

WMS:

Dim copurl As String

copurl = “https://tiles.maps.eox.at/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=s2cloudless-2023_3857&STYLES=&SRS=EPSG:900913&BBOX=-20037508.342789,-20037508.342789,20037508.342789,20037508.342789&WIDTH=256&HEIGHT=256&FORMAT=image/jpeg

AxMap1.Tiles.Providers.Add(tkTileProvider.ProviderCustom, “EOX Sentinel-2 WMS”, copurl, tkTileProjection.SphericalMercator, , , “Copernicus Sentinel-2 imagery, EOX”)

AxMap1.Tiles.ProviderId = tkTileProvider.ProviderCustom

AxMap1.Redraw3(tkRedrawType.RedrawSkipAllLayers, True)

WMST:

Dim copurl As String

copurl = “http://tiles.maps.eox.at/wmts/1.0.0/s2cloudless-2023_3857/default/GoogleMapsCompatible/0/0/0.jpg

AxMap1.Tiles.Providers.Add(tkTileProvider.ProviderCustom, “EOX Sentinel-2 WMST”, copurl, tkTileProjection.SphericalMercator, , , “Copernicus Sentinel-2 imagery, EOX”)

AxMap1.Tiles.ProviderId = tkTileProvider.ProviderCustom

AxMap1.Redraw3(tkRedrawType.RedrawSkipAllLayers, True)

In both instances, the code fails to add the provider.

Please let me know if you have successfully achieved this, if so how, and/or if my code needs adjusting; and/or whether this is possible or not.

Thanks in advance.

John

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/eox-sentinel-2-as-custom-tile-provider/1813 Tue, 28 Jan 2025 13:31:46 +0000 No No No mapwindow.discourse.group-topic-1813 EOX Sentinel-2 as custom tile provider
Merge Two Geotiff Grids MapWinGIS Does anyone know how I can merge two geotiff GRIDs using MW OCX?
I’m trying to do this in Pascal/Delphi, but have had no success using it with the GRIDMERGE function.
Is there another way to do this, using GDAL?
I would appreciate it if anyone can help me.

5 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810 Sat, 28 Dec 2024 22:30:50 +0000 No No No mapwindow.discourse.group-topic-1810 Merge Two Geotiff Grids
Need help with MapWinGIS (5.3) in vb.NET (VS2017) MapWinGIS Hi there,
I have basics of my wanted functionality running but now I am stuck with following problems:

  1. there is some “autoZoom” when adding a new layer that I want to get rid as there is .ZoomToLayer() if needed
  2. somehow I get “0” as layerHandle for every layer I add. At the moment I first load a .shp from file, then some polygons from database, followed by a point from given coordinates; all returning with 0 for layerHandle on addLayer().

please advise

2 posts - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/need-help-with-mapwingis-5-3-in-vb-net-vs2017/1806 Thu, 12 Dec 2024 20:26:49 +0000 No No No mapwindow.discourse.group-topic-1806 Need help with MapWinGIS (5.3) in vb.NET (VS2017)
MapWindGIS Installation in Delphi MapWinGIS Hi All

I kinldy request assistance, The TileProvider is 0 in Delphi 12 CE with no hosting servcies. I installed the 32 exe as my current delphi project will run on 32 bit. my pc is 64 bit though. I tried the 64 bit, bu i got a 1% error when loading the component from Tool pallete.

Can someone please do an installation video or write up a “how to install on delphi”. I installed the latest version which comes with the fixed MapWinGIS_TLB.pas file, i even replaced with the fixed one manually. At first I got the “Results” undeclared, but managed to add the Aresult.

This is a long topic but please assiss. I already have a programm in delphi that only needs the Map service.

Please also do a step-by-step on how to get it into delphi.

Thank you in advance

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/mapwindgis-installation-in-delphi/1804 Thu, 12 Dec 2024 15:42:57 +0000 No No No mapwindow.discourse.group-topic-1804 MapWindGIS Installation in Delphi
GDAL gdallocationinfo MapWinGIS Hi,

I’m lookink for a GDAL function “gdallocationinfo” in MW and I didn’t find it.
(gdallocationinfo — GDAL documentation )

Does anyone know if it’s implemented in MW?
Thanks.

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/gdal-gdallocationinfo/1801 Tue, 10 Dec 2024 16:36:22 +0000 No No No mapwindow.discourse.group-topic-1801 GDAL gdallocationinfo
How to solve: System.Windows.Forms.AxHost.InvalidActiveXStateException MapWinGIS Hello
In the past, I developped a MapWinGIS program using C# under 32 bit. I use “axMap…”. It works perfectly.
Now I am using 64 bit (Visual Studio 2022 & MapWinGIS 5.3.0.0). I succeed to create the rebuild solution without generating error.
But when I run my program, now I get this error and I absolutely do not know how to solve it:

System.Windows.Forms.AxHost.InvalidActiveXStateException: ‘Une exception de type ‘System.Windows.Forms.AxHost+InvalidActiveXStateException’ a été levée.’

The line code n°133 where the error occurs is : axMap1.LockWindow(tkLockMode.lmLock);
It is within a procedure to “AddALayer”

Here are the details:
System.Windows.Forms.AxHost.InvalidActiveXStateException
HResult=0x80131500
Message=Une exception de type ‘System.Windows.Forms.AxHost+InvalidActiveXStateException’ a été levée.
Source=AxInterop.MapWinGIS
StackTrace:
at AxMapWinGIS.AxMap.LockWindow(tkLockMode lockMode)
at MyLib_SIG.Layer_AddOneFromPath(AxMap axMap1, ListView listLayer, String myFilePath, Boolean PathRel, Boolean Exit_OK, Boolean Exit_Msg) in C:\Users\cdela\Inexis\001 Logiciel\05 CSharp\04 MyLibrary\MyLibrary\MyLib_SIG.cs:line 133

Thank you in advance for your help.
Best regards,

16 posts - 3 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/how-to-solve-system-windows-forms-axhost-invalidactivexstateexception/1799 Sun, 08 Dec 2024 00:05:17 +0000 No No No mapwindow.discourse.group-topic-1799 How to solve: System.Windows.Forms.AxHost.InvalidActiveXStateException
Add WMS Service failed MapWinGIS Hello,
I can’t reach my goal with your insertion of WMS services in my vb.net Application. Since Bing will soon be shut down, I need another aerial image source. I would like to use this one: LGLN-Bestand
or Google, if this cannot be integrated.
Who can help me? I would also be willing to pay some money for one that works for me!
Kind regards,
Andreas

12 posts - 3 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/add-wms-service-failed/1790 Mon, 04 Nov 2024 06:18:43 +0000 No No No mapwindow.discourse.group-topic-1790 Add WMS Service failed
Using Tile Databases created with MOBAC MapWinGIS I’ve used Mobile Atlas Creator many times with other apps to create an SQLite DB containing tile data. All the formats it supports are a little different from the .DB3 format that MapWinGIS is creating when caching tiles. Has anyone here tried doing this? I could probably convert one of them myself (e.g. OSMDroid SQLIte) to the current database format, but I wasn’t sure how Tiles.Type (integer) in the cache .db3 file is assigned (for a section I’m looking at in the US it’s value is either 0, 1025, or 1026). I’m not seeing that data column saved in any of the formats that MOBAC produces. I could fake it, but would prefer to know what MapWinGIS is expecting in that data column. Thanks!

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/using-tile-databases-created-with-mobac/1788 Fri, 01 Nov 2024 18:47:09 +0000 No No No mapwindow.discourse.group-topic-1788 Using Tile Databases created with MOBAC
Create KML, KMZ files Uncategorized hello everyone
I use this tool in Delphi
I wanted to know if there is a solution to create KML, KMZ files or if there is a way to convert the shapefile to these formats?
thanks

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/create-kml-kmz-files/1786 Sun, 27 Oct 2024 10:18:15 +0000 No No No mapwindow.discourse.group-topic-1786 Create KML, KMZ files
Rosreestr doesn't work MapWinGIS Hello, I’m new in MapWinGIS, I wanted to choose a tkTileprovider.Rosreestr, but it doesn’t work, can I fix it, or is it a problem on the Rosreestr side?
Another tkTileproviders work.

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/rosreestr-doesnt-work/1785 Thu, 24 Oct 2024 12:04:18 +0000 No No No mapwindow.discourse.group-topic-1785 Rosreestr doesn't work
MapWinGIS 5.3 and stdole.dll version Uncategorized Hi,

Is the MapWinGIS 5.3 reference to stdole.dll hard coded to a particular version ? It seems to be 7.033 and is causing issues for us with other things that need a newer version, so I was just hoping you could confirm.

Thanks,

Rob

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/mapwingis-5-3-and-stdole-dll-version/1779 Fri, 13 Sep 2024 09:17:55 +0000 No No No mapwindow.discourse.group-topic-1779 MapWinGIS 5.3 and stdole.dll version
Error in creating line shapefile in Delphi Uncategorized hello everyone
I use the MapWinGis tool in Delphi, and I have no problem creating point shapefiles from database data, but unfortunately, I encountered problems creating Polyline shapefiles.
I used the following code for this purpose, but unfortunately, no results were obtained

procedure CreateLineShapeFile;
var
Shapefile: IShapefile;
Line: IShape;
LinePart: IShape;
Point: IPoint;
ErrorCode: Integer;
FilePath: String;
begin
ErrorCode := 0;
Shapefile := CoShapefile.Create;
Shapefile.CreateNew(‘D:\LineShapeFile.shp’, SHP_POLYLINE);
if ErrorCode <> 0 then
begin
ShowMessage('Error creating shapefile: ’ + IntToStr(ErrorCode));
Exit;
end;
Line := CoShape.Create;
Point := CoPoint.Create;
Point.x := 10; // X coordinate
Point.y := 20; // Y coordinate
Line.AddPoint(Point.x,Point.y);
Point.x := 15; // Adjust for more points
Point.y := 29;
Line.AddPoint(Point.x,Point.y);
Point.x := 18;
Point.y := 25;
Line.AddPoint(Point.x,Point.y);
Shapefile.EditAddShape(Line);
if ErrorCode <> 0 then
begin
ShowMessage('Error adding shape: ’ + IntToStr(ErrorCode));
Exit;
end;
Shapefile.SaveAs(‘D:\LineShapeFile.shp’,Nil);
ShowMessage(‘Line shapefile created successfully.’);
end;

Please guide me to do this
thanks

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/error-in-creating-line-shapefile-in-delphi/1778 Tue, 10 Sep 2024 18:24:45 +0000 No No No mapwindow.discourse.group-topic-1778 Error in creating line shapefile in Delphi
Issuse with MouseDown and MouseUp MapWinGIS I am experiencing some rather strange behavior with the AxMap OCX control. I am using version 5.2.4. I am not using version 5.3 as it constantly crashes.

I am attempting to set up and use the drag feature. At the start, I have configured the control as follows:

CursorMode = tkCursorMode_cmIdentify
SendMouseDown = .T.
SendMouseUp = .T.

The code to set up and initiate the drag function is in the MouseDown method. Once I have the data set up, I issue a This.Drag(1) command to start the drag function by clicking and holding the right mouse button over the source object. (More on that in a moment) I then drag the mouse over to a target object on another form and then drop on it. The function works and the data is processed as expected. Here are my issues.

The first issue is, for some reason, the mousedown funtion will not recognize a left mouse click. After scrathcing my head for an hour, I placed some code in the event to capture and report the “button” parameter value. When I use a right click, I get a report that the value is “2” which is what I expected. When I use a left click, nothing! Not even a report. The left click doesn’t even fire the event. I swapped out my mouse with another mouse and still nothing on the left click. I tested both devices in another application and the left clicks did fire the mousedown event. So the devices aren’t the problem.

The second problem is that the MouseUp event never fires. I placed “This.Drag(0)” in this event to terminate the drag once I’ve reached the target object and released the mouse button. I’ve tested this with both left and right mouse clicks and the MouseUp event never fires. I doubled checked the SendMouseUp to make sure that it was set to true and it was. As a result, once I reach the target object and release the mouse button, nothing happens and the drag icon remains. If I then click either mouse buttong, the task completes and processes the data as I want it to do.

What am I not doing correctly? Or is there an issue with the OCX?

Thanks!

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/issuse-with-mousedown-and-mouseup/1772 Mon, 02 Sep 2024 18:13:46 +0000 No No No mapwindow.discourse.group-topic-1772 Issuse with MouseDown and MouseUp
AxInterop.MapWinGIS.dll is not generated Uncategorized I’m encountering an issue while upgrading from MapWinGIS v4.8 to v5.3 (64-bit) in my Visual Studio project. After adding MapWinGIS.ocx, I noticed that only Interop.MapWinGIS.dll is generated, but AxInterop.MapWinGIS.dll is missing. Could you assist me in resolving this issue?

1 post - 1 participant

Read full topic

]]>
https://mapwindow.discourse.group/t/axinterop-mapwingis-dll-is-not-generated/1766 Tue, 23 Jul 2024 17:13:19 +0000 No No No mapwindow.discourse.group-topic-1766 AxInterop.MapWinGIS.dll is not generated
LineInterpolatePoint function do not work properly MapWinGIS Hello.

The LineInterpolatePoint return a point at the specified distance (or percentage) along the specified line. The parameters are:

  • sourceLine: Polyline shape to traverse
  • startPoint: Starting point along ‘sourceLine’ (specify Point[0] for beginning of line)
  • distance Distance along line (or percentage of line length; if a percentage, specify a number between 0.0 and 1.0)
  • normalized: Optional value; if FALSE, ‘distance’ is actual distance; if TRUE, distance is percentage of length; defaults to FALSE

When I try to get a point at 50% of the total length of sourceLine (MyShapeIN), I call the function like this:

  • LineInterpolatePoint (MyShapeIN, MyShapeIN.point[0], 0.50, TRUE);

As result, I got the same result point using the last parameter(normalized) as TRUE or FALSE. So I think there is some error in the code or the parameter(normalized) doesn’t affect the result.

Regards.

3 posts - 2 participants

Read full topic

]]>
https://mapwindow.discourse.group/t/lineinterpolatepoint-function-do-not-work-properly/1764 Mon, 22 Jul 2024 16:30:09 +0000 No No No mapwindow.discourse.group-topic-1764 LineInterpolatePoint function do not work properly