Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need show a map as image(gif) in my windows mobile. Only i will get center latlon value , zoom level and width-height mobile screen. Please help me to solve this.

Thanks & Regards Shafeek

share|improve this question
    
in what language? with which toolkit? show us the code you've tried so far please –  iant Jul 2 '13 at 11:06
    
this is the sample request to get map in image localhost:8080/geoserver/… but i need like this localhost:8080/geoserver/… –  Mohammed shafeek Jul 2 '13 at 11:35
    
seems like you are out of luck then –  iant Jul 2 '13 at 12:07
add comment

1 Answer

You need to set up GeoServer to serve out a WMS (Web Map Service) and your client to consume the WMS (which can be as simple as requesting the image via URL).

share|improve this answer
    
ya,But, I have only lat,lon value instead of bounding box. So, i need a request like this suite.opengeo.org/geoserver/wms? service=WMS& version=1.3.0& request=GetMap& layers=usa:states& srs=EPSG:4326& lat=24.956&lon=49.372&zoomlevel=5& format=image/png& width=780& height=330 –  Mohammed shafeek Jul 2 '13 at 11:39
    
I see. Then use your mapping API to calculate the width & height (in lonlat coords) of your screen. In OpenLayers you'd use map.getExtent() and then map.getpixelfromlonlat() –  mtn.biker Jul 2 '13 at 11:48
    
There is one more problem, I can't use OpenLayers ... :) only , i can use geoserver. –  Mohammed shafeek Jul 2 '13 at 12:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.