[OpenMap Users] RE: [Fwd: Re: Merging with OpenMap]

From: oz <ozba1_at_zahav.net.il>
Date: Tue, 9 May 2006 16:27:23 +0200

Hi, first of all thank you very much!!! :)
Now what I have is the zip file "openmap.zip" that you sent to don, and the
"wmsservlet.zip" that you send before.

I think I managed to compile, what I did is to take the CVS version of
openmap, and open wmsservlet.zip.
I put WMS package at openmap\src\openmap\com\bbn\openmap, put image package
also there (with overriding some files) and put HTTP in
com/bbn/openmap/layer/util/.

The wmsservlet package I put at openmap/src as you said in the email.

Now I opened openmap.zip, and override all the packages and files in openmap
beta.

When I tried to compile it there was a compilation error in
SimpleHttpImageServer so I override it with openmap 4.6.3 one and it
compiles.

So in the build I got openmap.jar that I included in my project instead of
openmap.jar of 4.6.3 .

First of all: is what I did is OK? Should I use a different version? Or a
different overridden of files?

Next I tried to see if my code still worked. Well it's not.
Now when I'm trying to print to the browser a map image all I get is a frame
with red X on it instead of an image. Bummer.

When I include again the previous openmap.jar it's a-ok.
 
The code in the map.jsp is this:


<%_at_ page import="java.util.Properties"%>
<%_at_ page import="java.io.FileInputStream"%>
<%_at_ page import="java.io.OutputStream"%>
<%_at_ page import="com.bbn.openmap.image.MapRequestHandler"%>
<%_at_ page import="com.bbn.openmap.Layer"%>
<%_at_ page import="com.bbn.openmap.proj.Mercator"%>
<%_at_ page import="com.bbn.openmap.LatLonPoint"%>
<%--
  Created by IntelliJ IDEA.
  User: Oz Barzilay
  Date: 01/05/2006
  Time: 17:44:44
  To change this template use File | Settings | File Templates.
--%>
<%_at_ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head><title>Simple jsp page</title></head>
<body>

<%
    Properties properties = new Properties();
    properties.load(new FileInputStream("C:\\Documents and Settings\\Oz
Barzilay\\Desktop\\web application2\\resources\\openmap.properties"));
    com.bbn.openmap.image.SunJPEGFormatter formatter = new
com.bbn.openmap.image.SunJPEGFormatter();
    formatter.setImageQuality(1.0f);
    MapRequestHandler iServer = new MapRequestHandler(properties);

    iServer.setProperties(properties);
    iServer.setFormatter(formatter);


    Layer[] layers = iServer.getLayers();

 
//iServer.handleRequest("REQUEST=MAP&PROJTYPE=Mercator&SCALE=180127&LAT=3&LO
N=4&WIDTH=500&HEIGHT=500");
    //response.setContentType("image/jpeg");
    OutputStream os = response.getOutputStream();
   // os.write(iServer.createImage(iServer.getDefaultProjection()));
    LatLonPoint point = new LatLonPoint(34f,32f);
    Mercator mercator = new Mercator(point,10000000f,640,480);
    mercator.panE();
    os.write(iServer.createImage(mercator));
    out.clear();
    out = pageContext.pushBody();

   %>

</body>
</html>

So what should I do? Compile it in another way? Maybe output it in another
way? Because out.print() is displaying gibberish.

Thank you very much

Oz and the location team.

p.s. here is a link to 3 files that I mentioned in this email if you want to
review them:
http://www.cs.bgu.ac.il/~ozba/pioterCode/






-----Original Message-----
From: Piotr Kamiński [mailto:Piotr.Kaminski_at_ctm.gdynia.pl]
Sent: Tuesday, May 09, 2006 12:07 PM
To: oz
Subject: [Fwd: Re: Merging with OpenMap]

Hi,
You can find attached all the code I sent Don. I should help you compile
WMS.
Unfortunately I cannot upload my code, sorry.
I would be happy if Don finally integrate my changes and you or any
other OpenMap's user, contribute something to WMS code.
I know it is not perfect now although it works ;-)
--
Piotr
-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 08/05/2006
 
  
-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 08/05/2006
 
      
--
[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 Tue May 09 2006 - 09:39:03 EDT

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