pgRouting

Changeset 128

Show
Ignore:
Timestamp:
03/19/08 12:47:22 (8 months ago)
Author:
anton
Message:

Debugging branch added

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/routingservice/.classpath

    r125 r128  
    22<classpath> 
    33        <classpathentry kind="src" path="src"/> 
     4        <classpathentry kind="lib" path="lib/antlrworks-1.1.3.jar"/> 
     5        <classpathentry kind="lib" path="lib/com.noelios.restlet.ext.jdbc_3.0.jar"/> 
     6        <classpathentry kind="lib" path="lib/com.noelios.restlet.ext.simple_3.1.jar"/> 
     7        <classpathentry kind="lib" path="lib/com.noelios.restlet.jar"/> 
     8        <classpathentry kind="lib" path="lib/commons-dbcp-1.2.2.jar"/> 
     9        <classpathentry kind="lib" path="lib/commons-pool-1.4.jar"/> 
     10        <classpathentry kind="lib" path="lib/jdom.jar"/> 
     11        <classpathentry kind="lib" path="lib/org.json.jar"/> 
     12        <classpathentry kind="lib" path="lib/org.restlet.ext.json_2.0.jar"/> 
     13        <classpathentry kind="lib" path="lib/org.restlet.jar"/> 
     14        <classpathentry kind="lib" path="lib/org.simpleframework.jar"/> 
    415        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 
    5         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/antlrworks-1.1.3.jar"/> 
    6         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/com.noelios.restlet.ext.simple_3.1.jar"/> 
    7         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/com.noelios.restlet.jar"/> 
    8         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/jdom.jar"/> 
    9         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/org.json.jar"/> 
    10         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/org.restlet.ext.json_2.0.jar"/> 
    11         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/org.restlet.jar"/> 
    12         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/org.simpleframework.jar"/> 
    13         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/com.noelios.restlet.ext.jdbc_3.0.jar"/> 
    14         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/commons-pool-1.4.jar"/> 
    15         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/commons-dbcp-1.2.2.jar"/> 
    16         <classpathentry kind="lib" path="/home/matthieu/workspace/pgRouting_Webservice/lib/postgresql-8.2-506.jdbc4.jar"/> 
     16        <classpathentry kind="lib" path="/opt/pgrouting/branches/routingservice/lib/postgresql-8.2-508.jdbc4.jar"/> 
    1717        <classpathentry kind="output" path="bin"/> 
    1818</classpath> 
  • branches/routingservice/configuration.xml

    r125 r128  
    3131                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    3232                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     33                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    3334                                        </parameters> 
    3435                                        <formats> 
     
    6465                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    6566                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     67                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    6668                                        </parameters> 
    6769                                        <formats> 
     
    98100                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    99101                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     102                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    100103                                        </parameters> 
    101104                                        <formats> 
     
    132135                                                <parameter name="findVertex" type="text" codename="findVertex" required="false" default="(select id from find_node_by_nearest_link_within_distance(''''POINT($sonPx$ $sonPy$)'''',$bbox$,''''nrn_bc''''))" /> 
    133136                                                <parameter name="findVertexTransf" type="text" codename="findVertexTransf" required="false" default="(select id from find_node_by_nearest_link_within_distance(text2text_transform(''''POINT($sonPx$ $sonPy$)'''',$sridIn$,$sridProvider$))" /> 
     137                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    134138                                        </parameters> 
    135139                                        <formats> 
     
    170174                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    171175                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     176                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    172177                                        </parameters> 
    173178                                        <formats> 
     
    203208                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    204209                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     210                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    205211                                        </parameters> 
    206212                                        <formats> 
     
    238244                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    239245                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
    240                                         </parameters> 
    241                                         <formats> 
    242                                                 <format name="gml" input="true" output="true" /> 
    243                                                 <format name="xml" input="false" output="true" /> 
    244                                                 <format name="html" input="false" output="true" /> 
    245                                                 <format name="geojson" input="true" output="true" />> 
    246                                                 <format name="lonlat" input="true" output="false" /> 
    247                                                 <format name="wkt" input="true" output="true" /> 
    248                                                 <format name="kml" input="true" output="true" srid="4326" /> 
    249                                         </formats> 
    250                                 </service> 
     246                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
     247                                        </parameters> 
     248                                        <formats> 
     249                                                <format name="gml" input="true" output="true" /> 
     250                                                <format name="xml" input="false" output="true" /> 
     251                                                <format name="html" input="false" output="true" /> 
     252                                                <format name="geojson" input="true" output="true" />> 
     253                                                <format name="lonlat" input="true" output="false" /> 
     254                                                <format name="wkt" input="true" output="true" /> 
     255                                                <format name="kml" input="true" output="true" srid="4326" /> 
     256                                        </formats> 
     257                                </service> 
     258                                 
     259                                <service name="security" title="Security" enable="true"> 
     260                                        <description>Authentication service</description> 
     261                                        <connection driver="org.postgresql.Driver"> 
     262                                                <url>jdbc:postgresql://192.168.20.177:5432/auth</url> 
     263                                                <user>postgres</user> 
     264                                                <password></password> 
     265                                        </connection> 
     266                                        <projection /> 
     267                                        <sql> 
     268                                                <query transformProjectionIn="false" transformProjectionOut="false">SELECT client_id, key FROM keys</query>                                      
     269                                        </sql> 
     270                                        <parameters> 
     271                                                <parameter name="api_key" type="text" codename="api_key" required="true" /> 
     272                                                <parameter name="signature" type="text" codename="signature" required="true" /> 
     273                                                <parameter name="id" type="text" codename="id" required="true" /> 
     274                                        </parameters> 
     275                                        <formats /> 
     276                                </service>                               
     277                                 
    251278                        </services> 
    252279                </provider> 
     
    276303                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    277304                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     305                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    278306                                        </parameters> 
    279307                                        <formats> 
     
    309337                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    310338                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     339                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    311340                                        </parameters> 
    312341                                        <formats> 
     
    343372                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    344373                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="3000" /> 
     374                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    345375                                        </parameters> 
    346376                                        <formats> 
     
    380410                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    381411                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.0015" /> 
     412                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    382413                                        </parameters> 
    383414                                        <formats> 
     
    413444                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    414445                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.0015" /> 
     446                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    415447                                        </parameters> 
    416448                                        <formats> 
     
    447479                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    448480                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.0015" /> 
     481                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    449482                                        </parameters> 
    450483                                        <formats> 
     
    485518                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    486519                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.0005" /> 
     520                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    487521                                        </parameters> 
    488522                                        <formats> 
     
    518552                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    519553                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.004" /> 
     554                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    520555                                        </parameters> 
    521556                                        <formats> 
     
    552587                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    553588                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.004" /> 
     589                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    554590                                        </parameters> 
    555591                                        <formats> 
     
    590626                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    591627                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.011" /> 
     628                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    592629                                        </parameters> 
    593630                                        <formats> 
     
    623660                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    624661                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.011" /> 
     662                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    625663                                        </parameters> 
    626664                                        <formats> 
     
    657695                                                <parameter name="sridOutput" type="integer" codename="sridOut" required="false" /> 
    658696                                                <parameter name="bbox" type="integer" codename="bbox" required="false" default="0.011" /> 
     697                                                <parameter name="request_id" type="text" codename="request_id" required="false" /> 
    659698                                        </parameters> 
    660699                                        <formats> 
  • branches/routingservice/pool.xml

    r107 r128  
    33 <header> 
    44   <connection> 
    5      <usePooling>false</usePooling> 
     5     <usePooling>true</usePooling> 
    66     <property name="user">$user$</property > 
    77           <property name="password">$password$</property > 
  • branches/routingservice/.settings/org.eclipse.jdt.core.prefs

    r67 r128  
    1 #Thu Nov 08 11:06:38 JST 2007 
     1#Thu Mar 13 11:52:26 JST 2008 
    22eclipse.preferences.version=1 
    3 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 
    4 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 
    5 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 
    6 org.eclipse.jdt.core.compiler.compliance=1.5 
    7 org.eclipse.jdt.core.compiler.debug.lineNumber=generate 
    8 org.eclipse.jdt.core.compiler.debug.localVariable=generate 
    9 org.eclipse.jdt.core.compiler.debug.sourceFile=generate 
    10 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 
    11 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 
    12 org.eclipse.jdt.core.compiler.source=1.5 
    133org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 
    144org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 
  • branches/routingservice/.settings/org.eclipse.jdt.ui.prefs

    r67 r128  
    1 #Thu Oct 25 15:23:05 JST 2007 
     1#Thu Feb 21 15:33:40 JST 2008 
    22eclipse.preferences.version=1 
    33formatter_profile=_Matthieu [built-in] 
    44formatter_settings_version=11 
     5internal.default.compliance=default 
    56org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/> 
  • branches/routingservice/src/jp/co/orkney/restlet/geo/ClosestEdge.java

    r125 r128  
    5151 * @see DatabaseConnection 
    5252 */ 
    53 public class ClosestEdge 
     53public class ClosestEdge extends GeoAction 
    5454{ 
    55         private String result = ""; 
    56         private DatabaseConnection databaseConnection; 
    57         private IOHelper ioHelper; 
    58         private Point point; 
    59         private Configuration configuration; 
    60         private Log log; 
    61  
    6255        /** 
    6356         * Constructor ClosestEdge 
     
    7164         *            the current configuration 
    7265         */ 
    73         public ClosestEdge(Configuration configuration
     66        public ClosestEdge(Configuration configuration, DatabaseConnection databaseConnection, IOHelper ioHelper, Log log
    7467        { 
    75                 this.configuration = configuration
    76                 this.log = configuration.createLog(); 
    77                 ioHelper = new IOHelper(configuration)
     68                super(configuration, databaseConnection, ioHelper, log)
     69                 
     70                name = "Closest edge"
    7871 
    7972                // extract method for Geojson format 
    80                 if (this.configuration.getFormatIn().getName().equals("geojson")) 
     73                if (configuration.getFormatIn().getName().equals("geojson")) 
    8174                { 
    82                         point = ioHelper.extractGEOJSONPxPy(this.configuration.getService().getParameter("point").getValue()); 
     75                        point = this.ioHelper.extractGEOJSONPxPy(configuration.getService().getParameter("point").getValue()); 
    8376                } 
    8477                // extract method for Gml format 
    85                 else if (this.configuration.getFormatIn().getName().equals("gml")) 
     78                else if (configuration.getFormatIn().getName().equals("gml")) 
    8679                { 
    87                         point = ioHelper.extractGMLPxPy(this.configuration.getService().getParameter("point").getValue()); 
     80                        point = this.ioHelper.extractGMLPxPy(configuration.getService().getParameter("point").getValue()); 
    8881                } 
    8982                // extract method for lonlat format 
    90                 else if (this.configuration.getFormatIn().getName().equals("lonlat")) 
     83                else if (configuration.getFormatIn().getName().equals("lonlat")) 
    9184                { 
    92                         point = ioHelper.extractLONLATPxPy(this.configuration.getService().getParameter("point").getValue()); 
     85                        point = this.ioHelper.extractLONLATPxPy(configuration.getService().getParameter("point").getValue()); 
    9386                } 
    9487                // extract method for wkt format 
    95                 else if (this.configuration.getFormatIn().getName().equals("wkt")) 
     88                else if (configuration.getFormatIn().getName().equals("wkt")) 
    9689                { 
    97                         point = ioHelper.extractWKTPxPy(this.configuration.getService().getParameter("point").getValue()); 
     90                        point = this.ioHelper.extractWKTPxPy(configuration.getService().getParameter("point").getValue()); 
    9891                } 
    9992                // extract method for kml format 
    100                 else if (this.configuration.getFormatIn().getName().equals("kml")) 
     93                else if (configuration.getFormatIn().getName().equals("kml")) 
    10194                { 
    102                         point = ioHelper.extractKMLPxPy(this.configuration.getService().getParameter("point").getValue()); 
     95                        point = this.ioHelper.extractKMLPxPy(configuration.getService().getParameter("point").getValue()); 
    10396                } 
    10497        } 
    10598 
    106         /** 
    107          * Gets the result of the closest edge algorithm 
    108          *  
    109          * @return this closest edge's result 
    110          */ 
    111         public String get() 
    112         { 
    113                 return result; 
    114         } 
    115  
    116         /** 
    117          * Starts the "closest edge" algorithm 
    118          *  
    119          * @throws SQLException 
    120          *             error to send the query to the database 
    121          * @throws JSONException 
    122          *             Error to transform the result in Geojson format 
    123          */ 
    12499        public void start() throws SQLException, JSONException 
    125100        { 
    126                 databaseConnection = new DatabaseConnection(configuration); 
    127  
    128                 StringTemplate query = ioHelper.getQuery(); 
     101                StringTemplate query = this.ioHelper.getQuery(); 
    129102                float bboxSize = Float.parseFloat(configuration.getService().getParameter("bbox").getValue()); 
    130103 
     
    142115                // System.out.println(query.toString()); 
    143116                log.write(query.toString(), 1); 
    144                 ResultSet rs = databaseConnection.getResult(query.toString()); 
     117                ResultSet rs = this.databaseConnection.getResult(configuration.getService(), query.toString()); 
     118                 
     119                String reqId = configuration.getService().getParameter("request_id").getValue(); 
    145120 
    146121                // Converts the SQL Result in Geojson 
    147122                if (configuration.getFormatOut().getName().equals("geojson")) 
    148123                { 
    149                         result = ioHelper.closestEdgeGEOJSONResult(rs); 
     124                        result = this.ioHelper.closestEdgeGEOJSONResult(rs, reqId); 
    150125                } 
    151126                // Converts the SQL Result in HTML 
     
    153128                { 
    154129                        System.out.println("hjhh"); 
    155                         result = ioHelper.closestEdgeHTMLResult(rs, point); 
     130                        result = this.ioHelper.closestEdgeHTMLResult(rs, point, reqId); 
    156131                } 
    157132                // Converts the SQL Result in XML 
    158133                else if (configuration.getFormatOut().getName().equals("xml")) 
    159134                { 
    160                         result = ioHelper.closestEdgeXMLResult(rs); 
     135                        result = this.ioHelper.closestEdgeXMLResult(rs, reqId); 
    161136                } 
    162137                // Converts the SQL Result in ID (edge id) 
    163138                else if (configuration.getFormatOut().getName().equals("id")) 
    164139                { 
    165                         result = ioHelper.closestEdgeIDResult(rs); 
     140                        result = this.ioHelper.closestEdgeIDResult(rs); 
    166141                } 
    167142                // Converts the SQL Result in GML 
    168143                else if (configuration.getFormatOut().getName().equals("gml")) 
    169144                { 
    170                         result = ioHelper.closestEdgeGMLResult(rs); 
     145                        result = this.ioHelper.closestEdgeGMLResult(rs, reqId); 
    171146                } 
    172147                // Converts the SQL Result in WKT 
    173148                else if (configuration.getFormatOut().getName().equals("wkt")) 
    174149                { 
    175                         result = ioHelper.closestEdgeWKTResult(rs); 
     150                        result = this.ioHelper.closestEdgeWKTResult(rs); 
    176151                } 
    177152                // Converts the SQL Result in KML 
    178153                else if (configuration.getFormatOut().getName().equals("kml")) 
    179154                { 
    180                         result = ioHelper.closestEdgeKMLResult(rs); 
     155                        result = this.ioHelper.closestEdgeKMLResult(rs); 
    181156                } 
    182157 
     
    185160                 */ 
    186161        } 
     162 
    187163} 
  • branches/routingservice/src/jp/co/orkney/restlet/geo/DrivingDistance.java

    r125 r128  
    5252 * @see DatabaseConnection 
    5353 */ 
    54 public class DrivingDistance 
     54public class DrivingDistance extends GeoAction 
    5555{ 
    56         private String result = ""; 
    57         private DatabaseConnection databaseConnection; 
    58         private IOHelper ioHelper; 
    59         private Point point; 
    60         private Configuration configuration; 
    6156        private float speed; 
    6257        private float time; 
    6358        private float length; 
    64         private Log log; 
     59 
    6560 
    6661        /** 
     
    7570         *            the current configuration 
    7671         */ 
    77         public DrivingDistance(Configuration configuration
     72        public DrivingDistance(Configuration configuration, DatabaseConnection databaseConnection, IOHelper ioHelper, Log log
    7873        { 
    79                 this.configuration = configuration
    80                 this.log = configuration.createLog(); 
    81                 ioHelper = new IOHelper(configuration)
     74                super(configuration, databaseConnection, ioHelper, log)
     75                 
     76                name = "Driving distance"
    8277 
    8378                // extract method for Geojson format 
     
    155150        public void start() throws SQLException, JSONException 
    156151        { 
    157                 databaseConnection = new DatabaseConnection(configuration); 
    158  
    159152                StringTemplate query = ioHelper.getQuery(); 
    160153                float bboxSize = Float.parseFloat(configuration.getService().getParameter("bbox").getValue()); 
     
    181174                // System.out.println(query.toString()); 
    182175                log.write(query.toString(), 1); 
    183                 ResultSet rs = databaseConnection.getResult(query.toString()); 
    184  
     176                ResultSet rs = databaseConnection.getResult(configuration.getService(), query.toString()); 
     177 
     178                String reqId = configuration.getService().getParameter("request_id").getValue(); 
     179                 
    185180                // Converts the SQL Result in Geojson 
    186181                if (configuration.getFormatOut().getName().equals("geojson")) 
    187182                { 
    188                         result = ioHelper.drivingDistanceGEOJSONResult(rs); 
     183                        result = ioHelper.drivingDistanceGEOJSONResult(rs, reqId); 
    189184                } 
    190185                // Converts the SQL Result in HTML 
    191186                else if (configuration.getFormatOut().getName().equals("html")) 
    192187                { 
    193                         result = ioHelper.drivingDistanceHTMLResult(rs, point); 
     188                        result = ioHelper.drivingDistanceHTMLResult(rs, point, reqId); 
    194189                } 
    195190                // Converts the SQL Result in XML 
    196191                else if (configuration.getFormatOut().getName().equals("xml")) 
    197192                { 
    198                         result = ioHelper.drivingDistanceXMLResult(rs); 
     193                        result = ioHelper.drivingDistanceXMLResult(rs, reqId); 
    199194                } 
    200195                // Converts the SQL Result in GML 
    201196                else if (configuration.getFormatOut().getName().equals("gml")) 
    202197                { 
    203                         result = ioHelper.drivingDistanceGMLResult(rs); 
     198                        result = ioHelper.drivingDistanceGMLResult(rs, reqId); 
    204199                } 
    205200                // Converts the SQL Result in WKT 
  • branches/routingservice/src/jp/co/orkney/restlet/geo/ShortestPath.java

    r125 r128  
    5151 * @see DatabaseConnection 
    5252 */ 
    53 public class ShortestPath 
     53public class ShortestPath extends GeoAction 
    5454{ 
    55         private String result = ""; 
    56         private DatabaseConnection databaseConnection; 
    57         private IOHelper ioHelper; 
    5855        private Point startPoint; 
    5956        private Point endPoint; 
    60         private Configuration configuration; 
    61         private Log log; 
     57 
    6258 
    6359        /** 
     
    7268         *            the current configuration 
    7369         */ 
    74         public ShortestPath(Configuration configuration
     70        public ShortestPath(Configuration configuration, DatabaseConnection databaseConnection, IOHelper ioHelper, Log log
    7571        { 
    76                 this.configuration = configuration
    77                 this.log = configuration.createLog(); 
    78                 ioHelper = new IOHelper(configuration)
     72                super(configuration, databaseConnection, ioHelper, log)
     73                 
     74                name = "Shortest path"
    7975 
    8076                // extract method for Geojson format 
    81                 if (this.configuration.getFormatIn().getName().equals("geojson")) 
     77                if (configuration.getFormatIn().getName().equals("geojson")) 
    8278                { 
    83                         startPoint = ioHelper.extractGEOJSONPxPy(this.configuration.getService().getParameter("point_start").getValue()); 
    84                         endPoint = ioHelper.extractGEOJSONPxPy(this.configuration.getService().getParameter("point_end").getValue()); 
     79                        startPoint = ioHelper.extractGEOJSONPxPy(configuration.getService().getParameter("point_start").getValue()); 
     80                        endPoint = ioHelper.extractGEOJSONPxPy(configuration.getService().getParameter("point_end").getValue()); 
    8581                } 
    8682                // extract method for Gml format 
    87                 else if (this.configuration.getFormatIn().getName().equals("gml")) 
     83                else if (configuration.getFormatIn().getName().equals("gml")) 
    8884                { 
    89                         startPoint = ioHelper.extractGMLPxPy(this.configuration.getService().getParameter("point_start").getValue()); 
    90                         endPoint = ioHelper.extractGMLPxPy(this.configuration.getService().getParameter("point_end").getValue()); 
     85                        startPoint = ioHelper.extractGMLPxPy(configuration.getService().getParameter("point_start").getValue()); 
     86                        endPoint = ioHelper.extractGMLPxPy(configuration.getService().getParameter("point_end").getValue()); 
    9187                } 
    9288                // extract method for lonlat format 
    93                 else if (this.configuration.getFormatIn().getName().equals("lonlat")) 
     89                else if (configuration.getFormatIn().getName().equals("lonlat")) 
    9490                { 
    95                         startPoint = ioHelper.extractLONLATPxPy(this.configuration.getService().getParameter("point_start").getValue()); 
    96                         endPoint = ioHelper.extractLONLATPxPy(this.configuration.getService().getParameter("point_end").getValue()); 
     91                        startPoint = ioHelper.extractLONLATPxPy(configuration.getService().getParameter("point_start").getValue()); 
     92                        endPoint = ioHelper.extractLONLATPxPy(configuration.getService().getParameter("point_end").getValue());