Hi Rajesh.M.
"Rajesh.M" wrote:
>
> Don,
>
> >The current ShapeLinkServer only provides a way to serve up a single
> >shape file at a time, so if you want multiple shape files displayed,
> >you'll have to set up multiple layers and multiple servers.
> ** I have another idea is it possible for me to MULTIPLEX the same PORT.
> i dont want to run each server on a dedicated port.
You could, of course, write a ShapeLinkServer that does this.
> What i can do is
> Every time the LinkLayer opens a socket it sends a HEADER
> (in this case i guess i would have the modify the
> ShapeLinkServer/LinkLayer ) specifying for
> which SHAPEFILE the LinkLayer is opening the socket. The ShapeLinkServer
> would
> decode the header and connect the Linkserver instance handling the requested
> shapefile.
> what is your opinion about this?
I think modifying the protocol (i.e. changing the HEADER) is a dangerous
thing. You can do the same thing with the properties that are sent as
the last part of the query, without changing the structure of the query
(as changing the header would do).
If you extend the LinkLayer, you can modify the properties that get
added to the query, and base it on some LinkLayer palette choices, etc.
> Morover can i have multiple instances of LinkLayers launched (with 2 entries
> in the properties file like
> say link1.class=com.bbn.openmap.layer.link.LinkLayer.class,
> link2.class=com.bbn.openmap.layer.link.LinkLayer.class
> to have multiple clients launched for each shapefile?
That's certainly supported by the protocol, but not out-of-the-box on
the server side. Like I hinted above, you could have multiple layers
using the same server (this has no modification on the LinkLayer, just
the ShapeLinkServer), or one layer getting graphics from a server that
is accessing multiple files (requires modification to the LinkLayer and
LinkServer).
- Don
> "Rajesh.M" wrote:
> >
> > Hi Don,
> >
> > >The LinkLayer, as part of an OpenMap Application or Applet using the
> > >MapBean, is the client. The LinkLayer has been written to use the
> > >protocol to talk to a server as needed.
> > ** succesfully did the Linklayer - linkserver communication and popped
> > up the applet with shapefiles..that was cool stuff..
> > However i need to support multiple shape files. Should i start Linkserver
> > on multiple socket ports each serving different shape files or is there
> any
> > other better way there in the code for serving multiple shape files?
> > cheers
> > rajesh.m
> >
> > --
> > [To unsubscribe to this list send an email to "majdart@bbn.com"
> > with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe openmap-users"]
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Tue May 15 12:25:35 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT