Re: [OpenMap Users] Trying to use Simple Server with RPF data

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 29 Nov 2006 19:20:57 -0500

Hi Shawn,

The problem is the scale of the request, which in the debugging code
seems to be 1. The scale needs to be set for the chart type you want
- for instance, a GNC chart would be 5,000,000, or something close to
that. A TLM-50 chart would need a scale of 50000, etc. You can run
the RpfProductInfo class to get a better idea of the scale for
different chart types:

> java -classpath lib/openmap.jar
com.bbn.openmap.layer.rpf.RpfProductInfo

Hope this helps,

Don


On Nov 29, 2006, at 6:49 PM, Shawn Evans wrote:

> When I point to the RPF data with the OpenMap application it
> works. When I try to put it into a SimpleServer I get back just a
> white image. Attached is what is being outputted and my properties
> file. Is there an example servlet available as well?
>
> Thanks,
>
> Shawn
>
> Here is the output:
>
> OpenMap.getLayers(): [jrpf]
> MRH starting with default projection = Mercator[ world(640,0)
> radius=6378137.0 ppm=3272 center(0.0,0.0) scale=2.0488352E8
> maxscale= 2.0488352E8 minscale=62.0 width=640 height=480]
> OpenMap SimpleHttpImageServer: listening on port: 9999 with
> properties in D:\openmapsrc\openmap-4.6.3\CADRGServer.properties
> SHIS: Handling request - "/openmap?
> REQUEST=map&PROJTYPE=CADRG&SCALE=1:1000000&LAT=
> 46.080143&LON=-109.6119&HEIGHT=887&WIDTH=1280&FORMAT=gif&TRANSPARENT=t
> rue&BGCOLOR=00000000"
> SHIS: GET Request received
> MRH: parsed request {LAT=46.080143, PROJTYPE=CADRG, FORMAT=gif,
> TRANSPARENT=true, HEIGHT=887, BGCOLOR=00000000, LON=- 109.6119,
> REQUEST=map, WIDTH=1280, SCALE=1}
> MRH: Map request...
> ImageServerUtils.createOMProjection: projection
> com.bbn.openmap.proj.CADRG, with HEIGHT = 887, WIDTH = 1280, lat =
> 46.080143, lon = -109.6119
> ImageServerUtils.createOMProjection : projection color: 0,
> transparent(true)
> Format requested gif
> MRH.handleMapRequest: requested layers >> [] out of jrpf
> ImageServer: using the new ProjectionPainter interface!
> createImage with layer string array.
> ImageServer.createGraphics: graphics is cool
> ImageServer: ready to create formatted image.
> ImageServer: using full scale image (unscaled).
> MRH: have completed image, size 1872
> MRH: have type = image/gif
>
> .properties file:
>
> formatters=gif jpeg
> gif.class =com.bbn.openmap.image.AcmeGifFormatter
> jpeg.class=com.bbn.openmap.image.SunJPEGFormatter
>
> layers=jrpf
>
> startUpLayers=jrpf
>
> ### Java RPF properties
> jrpf.class=com.bbn.openmap.layer.rpf.RpfLayer
> jrpf.prettyName=CADRG
> # This property should reflect the paths to the RPF directories
> jrpf.paths=M:\mapsnew\RPF
> # Number between 0-255: 0 is transparent, 255 is opaque
> jrpf.opaque=255
> # Number of colors to use on the maps - 16, 32, 216
> jrpf.number.colors=216
> # Display maps on startup
> jrpf.showmaps=true
> # Scale images to fit the map scale
> jrpf.scaleImages=true
> jrpf.coverage=true



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Nov 29 2006 - 19:21:31 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT