I create web application with data WGS84 , and i load raster map ( more 1 GB ) as jpeg format.
when run the application the speed on page it's very slow .
my question : how can loaded any raster map in web application quickly ?
I have same problem too. I tried to use Tilemaplayer and also Addlayer(), the situation was the same, very long to load webmap. eventhough I increased the spec of server computer.
I tried another solution but it is ok now. You can try to use WMSservice mode to load Satellite Image more than 1 GB. and for me it was good solution.
thanks arpt_s for your answer , can you give more info about this solution.......
you can see and follow sample aspmap Wmsservice.
If a 1 GB jpeg image is loaded on each request, the processing will be relatively slow (decoding takes time).
You have to use the ECW or JPEG2000 format for large images.
i try to use JPEG2000 but the performance still very slow ...,,,
how i can manage this ...this is big problem ...
i don't have ability to deploy my Satellite image as WMS service ...
how i can control that ...
this is very important point ...i hope to give me your suggestion about this issue ...
see wmsservice sample, and try to add part like this in wmsservice.ashx *(use your own data) :
Protected Sub AddMapLayers(ByVal map As AspMap.Web.Map)Dim LayerFolder As String = HttpContext.Current.Server.MapPath("MAPS/ATB/ASSET/MI/")Dim LayerFolderBased As String = HttpContext.Current.Server.MapPath("MAPS/ATB/Based/MI/")Dim layerImageFolder2010 As String = HttpContext.Current.Server.MapPath("MAPS/Images/2010/")
map.AddLayer(layerImageFolder2010 & "QB_2010_LL.ecw")map.AddLayer(LayerFolder & "DMZ.Tab")map.AddLayer(LayerFolder & "DAM.Tab")map.AddLayer(LayerFolder & "PL_Boundary.Tab")map.AddLayer(LayerFolder & "Route Area.Tab")map.AddLayer(LayerFolder & "Pipeline.Tab")map.AddLayer(LayerFolderBased & "POI.Tab")map.AddLayer(LayerFolderBased & "POI_Junction.Tab")
Then you can addlayer in default.aspx like this :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load' add the WmsService.ashx HTTP handler as a Web Map ServiceDim wms As WmsLayer = New WmsLayer("wmsService.ashx", New AspMap.Rectangle(103.881597, 1.21427, 104.177737, 0.966681))wms.BackColor = Color.White
' add the WMS layer to the mapDim wmsLayer As AspMap.Layer = map.AddLayer(wms)
' set the map unitsmap.MapUnit = AspMap.MeasureUnit.Degree
' initialize the ScaleBarmap.ScaleBar.Visible = Truemap.ScaleBar.BarUnit = UnitSystem.Metricmap.ScaleBar.KilometersString = "km"map.ScaleBar.MilesString = "Miles"map.ScaleBar.FeetString = "Feet"map.ScaleBar.MetersString = "meter"
' initialize the ZoomLevels collectionmap.ZoomLevels.Add(180000)map.ZoomLevels.Add(150000)map.ZoomLevels.Add(100000)map.ZoomLevels.Add(55000)map.ZoomLevels.Add(50000)map.ZoomLevels.Add(45000)map.ZoomLevels.Add(35000)map.ZoomLevels.Add(30000)map.ZoomLevels.Add(25500)map.ZoomLevels.Add(20500)map.ZoomLevels.Add(14250)map.ZoomLevels.Add(10250)map.ZoomLevels.Add(7250)map.ZoomLevels.Add(5125)map.ZoomLevels.Add(3562)map.ZoomLevels.Add(250)map.ZoomLevels.Add(25)map.ZoomLevels.Add(5)
' make the map image transparent to display background WMS layersmap.ImageOpacity = 0map.BackColor = Color.Whitemap.ZoomLevel = 4map.ImageFormat = ImageFormat.Gif
Don't forget to convert your image JP2000 to ECW format. this better size
I already tried to compare the different between Tilemaplayer or ussual format(map.addlayer) with my customer data total 150.000 points and Image satellite 1 GB. I have the same problem on speed loading on web.
We better create Wmsservices web map server method to increase loading speed on web.
I hope this will helpfull for you.
Sorry, Support : if I was wrong with this method. can you correct me?
thanks arpat_s for your feedback and your clarification, i have image JP2000 how i can convert it to ECW , and what the tools will be used to WMS Service , i don't have in the site internet access , how i can do this (WMS) offline that means the satellite image is in my storage system ...
i need to protect my satellite image ...
Thank you very much for cooperation