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

New Post: VPN blocking mapwingis tiles

0
0
Hi yousuf14,

Have you got the Tiles working behind the proxy?

I have hit the same problem. It does not work even I have fiddler turned on.

thanks very much!
Yong

New Post: Obtaining map data through a proxy server with authentication (class "Tiles")

0
0
Hi All,

Just to give my update on this as I hit the same problem.

I have tried quite a few things in my C# clinet but cannot get the tiles work through my company`s proxy.
            axMap1.TileProvider = MapWinGIS.tkTileProvider.OpenStreetMap;
            axMap1.GrabProjectionFromData = true;
            axMap1.Tiles.ProxyAuthenticationScheme = MapWinGIS.tkProxyAuthentication.asNtlm;
            axMap1.Tiles.AutodetectProxy();
            Console.WriteLine(AxMap.Tiles.Proxy);
            axMap1.Tiles.SetProxy("http://PROXY.ABC.com", 8080);
            axMap1.Tiles.SetProxyAuthentication("XXXX", "******", "XXX");
            Console.WriteLine(AxMap.Tiles.Proxy);
I tuned on Fiddler, nothing happend. The same application works at my home.

If anyone has managed to get map tiles working through a proxy, could you please shed some lights?

thanks very much!
Yong

Updated Wiki: Home

0
0

Welcome to the MapWinGIS ActiveX Control Project

The latest changes

Recommended reading for those who were using previous versions of MapWinGIS: notes for version 4.9.3.

Newsletter
If you want to stay updated you can subscribe to our newsletter at http://www.mapwindow.org/documentation/mapwindow5/subscribe.php

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.

mapwindow_screenshot.jpg
(ECW image with a vector overlays and labels displayed in the Demo .NET/C# app)

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.

How can I 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.

Sponsors

E-iceblue is a community sponsor of MapWinGIS. E-iceblue components enable developers to Open, Create, Modify, Convert, Print, View MS Word, Excel, PowerPoint and PDF documents.
E-iceblue offers Excel(xls,xlsx), Word(doc,docx), PowerPoint, PDF .NET components for converting, reading, creating, editing and printing in C#, VB.NET, ASP.NET, etc.

Updated Wiki: Home

0
0

Welcome to the MapWinGIS ActiveX Control Project

The latest changes

Recommended reading for those who were using previous versions of MapWinGIS: notes for version 4.9.3.

Newsletter
If you want to stay updated you can subscribe to our newsletter at http://www.mapwindow.org/documentation/mapwindow5/subscribe.php

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.

mapwindow_screenshot.jpg
(ECW image with a vector overlays and labels displayed in the Demo .NET/C# app)

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.

How can I 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.

Sponsors

E-iceblue is a community sponsor of MapWinGIS. E-iceblue components enable developers to Open, Create, Modify, Convert, Print, View MS Word, Excel, PowerPoint and PDF documents.
E-iceblue offers Excel(xls,xlsx), Word(doc,docx), PowerPoint, PDF .NET components for converting, reading, creating, editing and printing in C#, VB.NET, ASP.NET, etc.

New Post: VPN blocking mapwingis tiles

0
0
Hi Yong,

My company was using a proxy script. I had to figure that out and add the openstreetmap web link to the exception list. Talk to your companies network admin. He will know this better.

New Post: Tile Display Issue

0
0
After looking at the log request file generated by AxMap1.Tiles.StartLogRequests I see that the tile request

http://khms0.google.com/kh/v=164&hl=en&x=3740&y=6514&z=14&s=Galile - Results in a 404 error.

If I manually enter this address in a browser I receive the same error. If I change the "v=" parameter, which Google appears to change periodically, to 171 it renders the tile image correctly.

http://khms0.google.com/kh/v=171&hl=en&x=3740&y=6514&z=14&s=Galile - Renders a tile

Is there a way to change the "v=" parameter by a setting or does it require a code change?

New Post: offline openstreetmap?

0
0
I've developed an application that uses OpenStreetMap tiles for background display. Works fine, when the computer is connected to the Internet, but when offline, a blank background is displayed.

However, I have also used a completely separate application on both Windows and Android that also uses OpenStreetMap tiles, but in an offline mode. The desired maps are downloaded when the computer is connected to the Internet, and they are completely usable when disconnected. Is something like this available in the MapWindow OCX, and if not, is it on the roadmap for future development?

FWIW, the other application is called MapFactor Navigator, and is available in Google Play.

Created Unassigned: Raster layer classification Problem in legend window (Mapwindow Lite, MapwinGIS 4.9) [26010]

0
0
Hi,
I’m YJ, a Mapwindow user.
I have a few questions while using the amazing MapWindow 4.8, MapWindow Lite and MapWinGIS 4.9. :)

When I add a Raster layer like ASC, the Mapwindow 4.8 displays the classification automatically in legend window like the following figure.
![Image](http://www.hermesys.co.kr/hosting/ice/img/mw_4.8_legend.bmp)

However, when I add the same Raster layer in Mapwindow Lite(Mapwindow 4.9), I cannot see the classification in legend window like the following figure.
![Image](http://www.hermesys.co.kr/hosting/ice/img/mw_lite_legend.bmp)

I think that Mapwindow 4.9 cannot support this function yet. right?
If it is, do you have a plan to support the function?

I’m looking forward your answer.
Thank you.

Best Regards,
YJ,Won




New Post: offline openstreetmap?

New Post: Shapefile loading from database and indexing

0
0
Bump

Loading time is a big problem for me, as I have a layer with 1.2 million features and MapWinGIS simply chokes on it.

Any advice at all would be appreciated.
Thanks

New Post: SelectShapes In PowerBuilder is return true, but no array

0
0
Hi, I develop MapWinGis with Powerbuilder 12.5. I try to select shape with click in map project and show the attribute and edit it. And so save it. But i stuck with this code. Because this code was return true, but no array value.
Contstant Int INCLUSION = 1

Int     li_postX, li_postY, li_stsConnect, li_stslayer
Long    ll_result[], ll_shapes[]
Double  ldb_projX1 = 0.0, ldb_projY1 = 0.0, ldb_projX2 = 0.0, ldb_projY2 = 0.0, ldb_postX, ldb_postY
Boolean lb_stsSelectshp
String  ls_selected[]
Object  result

// This script is mousedownevent. After shapefile open and shapeedittable attribute script.
SetNull(result)
IF ii_adaextent < 0 Then
Else
    
    li_stslayer     = ole_map.object.LayerHandle(0)
    io_shapeObj = ole_map.object.ShapeFile(li_stslayer)
    
    IF IsNull(io_shapeObj) Then
    Else
        li_postX            = This.PointerX()
        li_postY            = This.PointerY()
        li_postX            = UnitsToPixels(li_postX, XUnitsToPixels!)
        li_postY            = UnitsToPixels(li_postY, YUnitsToPixels!)
        ldb_postX       = Double(li_postX)
        ldb_postY       = Double(li_postY)
        
        io_selectmode   = Create OleObject
        
        io_extents      = Create OleObject
        
        ii_adaextent    = io_extents.ConnectToNewObject("MapwinGIS.Extents")
        IF ii_adaextent < 0 THEN
            DESTROY io_extents
            MessageBox("Connecting to COM Extents Failed", "Error: " + String(li_stsConnect))
            Return
        END IF
        
        
        ole_map.Object.PixelToProj(ocx_x - 10, ocx_y + 10, ref ldb_projX1, ref ldb_projY1)
        ole_map.Object.PixelToProj(ocx_x + 10, ocx_x - 10, ref ldb_projX2, ref ldb_projY2)
        
        io_extents      = Create OleObject

        ii_adaextent    = io_extents.ConnectToNewObject("MapwinGIS.Extents")
        IF ii_adaextent < 0 THEN
            DESTROY io_extents
            MessageBox("Connecting to COM Extents Failed", "Error: " + String(li_stsConnect))
            Return
        END IF
        
        io_extents.SetBounds(ldb_projX1, ldb_projY1, 0.0, ldb_projX1, ldb_projY1, 0.0)
        
// ====== This script was return true, but ll_result[] is empty. Just return ll_result[0]. No fill. Why ?
        lb_stsSelectshp = io_shapeObj.SelectShapes( io_extents, 0.0, INCLUSION, ref  ll_result[] )
        IF lb_stsSelectshp Then
            // ll_shapes[]  = io_selectmode
            IF IsNull(ll_shapes[]) Then
                Return
            End IF
            
            IF upperBound(ll_shapes[]) > 1 Then
                MB('More than one shapes were selected. Shape indices:')
            Else
                
                MB("Liat errornya : " + io_shapeObj.ErrorMsg[io_shapeObj.LastErrorCode])
                io_shapeObj.ShapeSelected(ll_shapes[0], true)
                
                MB(string(il_shapeindex))
                
            End IF
        Else
            
            MB("Liat errornya : " + io_shapeObj.ErrorMsg[io_shapeObj.LastErrorCode])
        
        End IF
        
    End IF
    
End IF
I don't know why the ll_result[] is empty. The SelectShapes script is success with return true. Please help me an thank you for your best answer.

Edited Unassigned: Google Hybrid Tiles [26008]

0
0
I am trying to use the Google Hybrid tiles in a VB .Net VS2013 application. I find there are areas that do not display the tiles, Open Streets and Google Maps seem to work fine. Using this code, half of the map displays the tiles and the other does not. Any input would be greatly appreciated.

Dim eExt As New MapWinGIS.Extents()

AxMap1.Projection = tkMapProjection.PROJECTION_GOOGLE_MERCATOR
AxMap1.TileProvider = tkTileProvider.GoogleHybrid

eExt.SetBounds(-10880183.78743764, 4108346.5470206295, 0, -10888802.062376793, 4101323.8950469294, 0)
AxMap1.Extents = eExt
AxMap1.CurrentScale = 30000
AxMap1.Refresh()

After looking at the log request file generated by AxMap1.Tiles.StartLogRequests I see that the tile request

http://khms0.google.com/kh/v=164&hl=en&x=3740&y=6514&z=14&s=Galile - Results in a 404 error.

If I manually enter this address in a browser I receive the same error. If I change the "v=" parameter, which Google appears to change periodically, to 171 it renders the tile image correctly.

http://khms0.google.com/kh/v=171&hl=en&x=3740&y=6514&z=14&s=Galile - Renders a tile

Is it possible to add GlobalSetting for the server setting which I believe is what the v= value is.

New Post: Projection or Geoprojection ?

0
0
Hi,

With 9.3.5, I noticed that shapefile.projection is empty when geoprojection.projectionName is filed with .proj parameters. Is there a reason for that ?

This has a side effect in the demo, layer.property.projection is empty, because projection is used to fill the form.

Olivier

New Post: 9.3.5 demo software change projection

0
0
Hi,

I'm trying to set another projection in the 9.3.5 demo software (very nice by the way). I can set a new srid (EPSG:27582:) but each time I add an shp which is set to this projection, I get the message "Failed to reproject the layer:" I tried to look at the code and it seems to me that reprojection method is not set. Am I right ?

Olivier

New Post: 9.3.5 demo software change projection

0
0
I had the same issue, I had to add the follow sub to get the reprojection to work. I am using VB in VS 2013.
Private Sub AxMap1_ProjectionMismatch(sender As Object, e As AxMapWinGIS._DMapEvents_ProjectionMismatchEvent) Handles AxMap1.ProjectionMismatch
    e.reproject = tkMwBoolean.blnTrue
    e.cancelAdding = tkMwBoolean.blnFalse
End Sub

New Post: PolygonZ/Polygon and z property for point class

0
0
Hi,

Has the ability to add a z coordinate to a polygon been addressed with an updated shapefile editor?

I am trying to update the z component value using
 For PointIndex = 0 To sfbuildingsave.Shape(BuildingShapeId).numPoints - 1
                    sfbuildingsave.Shape(BuildingShapeId).Point(PointIndex).Z = CoordZ.Text
                Next
however a new value defined by the textbox CoordZ.text is never saved back to the polygon shapefile. When i read the individual points from the shapefile it displays the z property, however when trying to save a new value back it does not work.

Anyone else had the same issue?

BTW the Shapetype i am working with is a PolygonZ

Mike

New Post: PostGIS Data load uncomplete in 4.9.3.5

0
0
I try to use the 4.9.3.5 version to load postgis(postgresql-9.4.4-3-windows-x64+postgis-bundle-pg94x64-setup-2.1.8-1.exe) data but it not load all data .

I put the images at :
IMAGES OF THE LOAD ERROR

New Post: 9.3.5 demo software change projection

0
0
Hi,

That's strange, because those lines are in the C# project, and do not apply any reprojection. I think that there should be here the reproject code and set _DMapEvents_LayerReprojectedEvent .success to true because it's checked in axmap1_LayerReprojected called after. But tha't just a guess. So far, I didn't understand well those events.

Olivier

Created Unassigned: RAM is growing... [26011]

0
0
IDE - Delphi XE7.
MapWinGis 4.9.3
----------------------------
After I added component on a Delphi form, I changed property Align of component MapWinGis - Align := alClient.
When I minimize and maximize Delphi form, my RAM is very growing... WHY?

New Post: MapWinGis.ocx with missing dependency

0
0
I am very interested to us the activex-control with VB6.
Until now it is not possible for me to use it.
When I install the latest 64-Bit installer as Administrator
I can register the OCX but when I want to use it
a message with missing dependency is shown.

I tried it on Win7 (64 Bit) and Win10 (32 Bit)

Is there anyone who has install the OCX it without this error
or someone who knows the missing files?

Thank you very much
Michael
Viewing all 2341 articles
Browse latest View live




Latest Images