Hi all it seems like I am having difficulties in normalizing raw map files' resolutions to openlayer's use most probably in parameters mapext and imgext. I hope you can help me with this.
Using raw (.shp, .shx, .xml, .prj, .dbf) and associated raster files for landuse-related data included in an ArcGIS 10 project (.mxd) that I've obtained from a credible private source, I have used Mxd2Qgs to read .mxd project to .qgs. Then I used quantum GIS' Mapserver Export plugin to export selected layers to MAP FILE.
I can view the generated map on browser but cannot do so when I use it in openlayers. The generated map file has an extent: EXTENT 272813.696194 1546212.773835 340292.781152 1587773.606956 (its quite huge).
I have tried adding to openlayer's map initialization properties maxResolution, numZoomLevels, units, projection and displayProjection but there is no map rendered, although the map has been queried. Btw I have just guessed the maxResolution here, copying from other huge datasets online :) The map has never been queried when I added the map file's EXTENT to maxExtent: OpenLayers.Bounds(...). The same thing goes when I used the files included in the MS4W tutorial #1 data set.
My questions would be:
- How to know a given map's maxResolution parameter for openlayers? Can this be guessed?
- Are there any special processing needed for map/shapefiles before they can be used in openlayers?
- How should a map file be written so that it could be used in openlayers?
Thank you so much in advance for your tips.