- Timestamp:
- 04/21/09 15:59:21 (11 months ago)
- Location:
- tools/routingservice/branches/wrs-2.0
- Files:
-
- 10 modified
-
data/resources.xml (modified) (1 diff)
-
data/services.xml (modified) (1 diff)
-
data/templates/catch/catch_geojson.st (modified) (1 diff)
-
data/templates/catch/catch_openlayers.st (modified) (1 diff)
-
data/templates/route/route_xls.st (modified) (2 diffs)
-
lib/org/json/JSONArray.java (modified) (1 diff)
-
lib/org/json/JSONObject.java (modified) (1 diff)
-
src/WRS.java (modified) (1 diff)
-
src/handler/PgRoutingHandler.java (modified) (1 diff)
-
src/util/format/FillerFactory.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tools/routingservice/branches/wrs-2.0/data/resources.xml
r298 r305 8 8 <parameter name="srid" type="integer" key="srid" value="4326" /> 9 9 <parameter name="units" type="string" key="units" value="dd" /> 10 <parameter name="box" type="double" key="box" value="0.1" /> 10 <parameter name="rbox" type="double" key="box" value="0.1" /> 11 <parameter name="box" type="double" key="box" value="0.01" /> 11 12 <parameter name="cost_value" type="string" key="cost_value" value="length" /> 12 13 <parameter name="reverse_cost_value" type="string" key="reverse_cost_value" value="reverse_cost" /> -
tools/routingservice/branches/wrs-2.0/data/services.xml
r302 r305 31 31 <template name="gml" format="xml" url="./data/templates/catch/catch_gml.st"/> 32 32 <template name="ol" format="html" url="./data/templates/catch/catch_openlayers.st"/> 33 <template name="geojson" format="json" url="./data/templates/catch/catch_geojson.st"/> 33 34 </templates> 34 35 <in> -
tools/routingservice/branches/wrs-2.0/data/templates/catch/catch_geojson.st
r284 r305 1 1 { "type": "FeatureCollection", 2 2 "features": [ 3 { "type": "Feature", 4 "geometry": { 3 $parameters:{ p | 4 \{ "type": "Feature", 5 "geometry": \{ 5 6 "type": "Polygon", 6 "coordinates": [[ $poly$ ]] 7 }, 8 "crs": { 7 "coordinates": [ 8 [$p.polygon$] 9 ] 10 \}, 11 "crs": \{ 9 12 "type": "EPSG", 10 "properties": {"code": "srid"} 11 }, 12 "properties": {} 13 } 13 "properties": \{"code": "srid"\} 14 \}, 15 "properties": \{ 16 "id": "$p.id$" 17 \} 18 \} 19 };separator=","$ 14 20 ], 15 21 "status": { 16 22 "code": 200, 17 "request": " catch"23 "request": "route" 18 24 }, 19 25 "user": { -
tools/routingservice/branches/wrs-2.0/data/templates/catch/catch_openlayers.st
r304 r305 8 8 <script type="text/javascript"> 9 9 var map; 10 var geojson = { "type": "FeatureCollection", 11 "features": [ 12 { "type": "Feature", 13 "geometry": { 14 "type": "Polygon", 15 "coordinates": [[ $poly$ ]] 16 }, 17 "crs": { 18 "type": "EPSG", 19 "properties": {"code": "srid"} 20 }, 21 "properties": {} 22 } 23 ], 24 "status": { 25 "code": 200, 26 "request": "catch" 27 }, 28 "user": { 29 "request_id": "$request_id$" 30 } 31 }; 10 var geojson = 11 12 { "type": "FeatureCollection", 13 "features": [ 14 $parameters:{ p | 15 \{ "type": "Feature", 16 "geometry": \{ 17 "type": "Polygon", 18 "coordinates": [ 19 [$p.polygon$] 20 ] 21 \}, 22 "crs": \{ 23 "type": "EPSG", 24 "properties": \{"code": "srid"\} 25 \}, 26 "properties": \{ 27 "id": "$p.id$" 28 \} 29 \} 30 };separator=","$ 31 ], 32 "status": { 33 "code": 200, 34 "request": "route" 35 }, 36 "user": { 37 "request_id": "$request_id$" 38 } 39 }; 32 40 33 41 function init() { -
tools/routingservice/branches/wrs-2.0/data/templates/route/route_xls.st
r297 r305 9 9 <xls:DetermineRouteResponse> 10 10 <xls:RouteSummary> 11 <xls:TotalTime> PT13M7.000S</xls:TotalTime>11 <xls:TotalTime></xls:TotalTime> 12 12 <xls:TotalDistance uom="M" value="14.88" accuracy=""/> 13 13 <xls:BoundingBox srsName="EPSG:4326"> … … 27 27 <xls:RouteInstructionsList xls:lang="en" format="text/plain"> 28 28 $parameters:{ p | 29 <xls:RouteInstruction duration=" PT12.000S" description="">29 <xls:RouteInstruction duration="" description=""> 30 30 <xls:Instruction></xls:Instruction> 31 31 <xls:distance uom="M" value="$p.rlength$" accuracy=""/> -
tools/routingservice/branches/wrs-2.0/lib/org/json/JSONArray.java
r290 r305 79 79 80 80 * @author JSON.org 81 * @version 200 9-02-0981 * @version 2008-02-09 82 82 */ 83 83 public class JSONArray { -
tools/routingservice/branches/wrs-2.0/lib/org/json/JSONObject.java
r290 r305 85 85 * </ul> 86 86 * @author JSON.org 87 * @version 200 9-03-0687 * @version 2008-03-06 88 88 */ 89 89 public class JSONObject { -
tools/routingservice/branches/wrs-2.0/src/WRS.java
r298 r305 108 108 { 109 109 return MediaType.TEXT_JAVASCRIPT; 110 } 111 }, 112 HTML 113 { 114 MediaType getType() 115 { 116 return MediaType.TEXT_HTML; 110 117 } 111 118 }, -
tools/routingservice/branches/wrs-2.0/src/handler/PgRoutingHandler.java
r298 r305 71 71 ArrayList getParameters() 72 72 { 73 String[] p = { "table", "x1", "y1", "distance", " box", "cost_value",73 String[] p = { "table", "x1", "y1", "distance", "rbox", "cost_value", 74 74 "reverse_cost_value", "directed", "hasrc" }; 75 75 return new ArrayList(Arrays.asList(p)); -
tools/routingservice/branches/wrs-2.0/src/util/format/FillerFactory.java
r298 r305 28 28 XLS(XLSTemplateFiller.class), 29 29 GEORSS(null), 30 OL(GeoJSONTemplateFiller.class), 30 31 GPX(GPXTemplateFiller.class); 31 32
