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

From: Shawn Evans <shawnwevans_at_gmail.com>
Date: Wed, 29 Nov 2006 18:49:08 -0500

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.0488352E8minscale=
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=true&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


--
[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 - 18:53:04 EST

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