Hi.
I have one more question for you.Please answer it if you can.
If i have a collection of Geometry object(MultilineString object) which are
the result of finding path between 2 point , i want to show them on the map.
But i do not know how to do.
I try this example in order to show Polygon object on the map but do not
achieve success:
            map = new OpenLayers.Map('map');
           var vectors = new OpenLayers.Layer.Vector("vector", {isBaseLayer:
true});
          var feature = new OpenLayers.Feature.Vector(
                OpenLayers.Geometry.fromWKT(
                    "POLYGON((28.828125 0.3515625, 132.1875 -13.0078125,
-1.40625 -59.4140625,         28.828125 0.3515625))"
                )
            );
            vectors.addFeatures([feature]);
           map.addLayers([vectors]);

or this example:
                       map = new OpenLayers.Map('map');
                        var features1 = [];
                       var vectors = new OpenLayers.Layer.Vector("vector",
{isBaseLayer: true});
                       var g = wkt.read("the data goes here");
                      features1.push(g);
                      vectors.addFeatures(features1);
                     map.addLayers([vectors]);
Both of them are not successful.
Could you give me another solution for showing Geometry object on the map.
Thanks

Hoku_sai2000 wrote:
> 
> I enter the web pages:
> http://geoserver.org/display/GEOSDOC/3+A+Simple+PlugIn, but not success
> because the code "mvn install" have error.I find out that it is difficult
> to use maven.Do you suggess some other way that easy to make a new plugin
> for GeoServer.
> But i prefer to create a independent web application, it only load map
> from GeoServer, it run its Servlet which connect database and send query, 
> when it receive the results from Servlet then it add path between 2 point
> on the map.Do you tell detail or do you know any web that solve this way?
> I am forwarding to your answer
> Thanks
> 
> Justin Deoliveira-6 wrote:
>> 
>> You have a few options:
>> 
>> If you already have the Servlet implemented you can use the spring 
>> controller framework to plug-in in a spring application context.
>> 
>> Or you can modify the web.xml file of GeoServer and add your servlet 
>> directly.
>> 
>> Or if you do not have the servlet already implemented, an alaterntive is 
>> to write a custom service for GeoServer. It is not much work, here is 
>> some documentation here:
>> 
>> http://geoserver.org/display/GEOSDOC/3+A+Simple+PlugIn
>> 
>> Hope that helps.
>> 
>> -Justin
>> 
>> Hoku_sai2000 wrote:
>>> Hi all,
>>> I am Vietnamese,i am not good at writing English,but i have an important
>>> essay to finish course at University.So i try to post this question to
>>> forum
>>> so that i hope some help.I really need some help.I am stuck
>>> in this problem
>>> I want to write an GIS application to find path between 2 point on the
>>> map.I
>>> want write an Servlet application which connect database and then send
>>> many
>>> SQL query to database and finally receive the result from databse.But i
>>> do
>>> not know how to run this file(an Servlet application) from JSP page in
>>> GeoServer.I want to write a new web application in GeoServer,but where i
>>> should start. 
>> 
>> 
>> -- 
>> Justin Deoliveira
>> OpenGeo - http://opengeo.org
>> Enterprise support for open source geospatial.
>> 
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> High Quality Requirements in a Collaborative Environment.
>> Download a free trial of Rational Requirements Composer Now!
>> http://p.sf.net/sfu/www-ibm-com
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-run-Servlet-application-which-connect-databse%2C-in-GeoServer-tp23008028p23189612.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to