Changeset 317 for tools

Show
Ignore:
Timestamp:
05/01/09 13:51:59 (10 months ago)
Author:
anton
Message:

Geocoder API changed

Location:
tools/routingservice/branches/wrs-2.0
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • tools/routingservice/branches/wrs-2.0/data/resources.xml

    r314 r317  
    4242                <description>PostgreSQL 8.1</description> 
    4343                <parameters> 
    44                         <parameter name="srid" constant="true" type="integer" key="srid" value="EPSG:4326" /> 
     44                        <parameter name="srid" constant="true" type="integer" key="srid" value="EPSG:4612" /> 
    4545                        <parameter name="units" constant="true" type="string" key="units" value="dd" /> 
    4646                                 
    4747                        <parameter name="precision" type="integer" key="code"/> 
    48                         <parameter name="x1" type="double" key="x"/> 
    49                         <parameter name="y1" type="double" key="y"/> 
     48                        <parameter name="point" type="double" key="astext(point)"/> 
    5049                        <parameter name="address" type="string" key="address"/>                                                  
    5150                </parameters> 
     
    5352                        <sref ref="geocode" enabled="true" /> 
    5453                </services> 
    55                 <url>jdbc:postgresql://192.168.20.177:5432/geocoder</url> 
     54                <url>jdbc:postgresql://192.168.20.177:5432/address</url> 
    5655                <user>postgres</user> 
    5756                <password></password> 
  • tools/routingservice/branches/wrs-2.0/data/services.xml

    r314 r317  
    4848                        <template name="geojson" format="json" url="./data/templates/geocode/geocode_geojson.st"/> 
    4949                        <template name="xls" format="xml" url="./data/templates/geocode/geocode_xls.st"/> 
     50                        <template name="georss" format="xml" url="./data/templates/geocode/geocode_georss_gml.st"/> 
    5051                </templates> 
    5152                <in> 
     
    5354                </in> 
    5455                <out> 
    55                         <parameter key="x1" type="double" name="x1" /> 
    56                         <parameter key="y1" type="double" name="y1" /> 
     56                        <parameter key="point" type="geometry" name="point" /> 
    5757                        <parameter key="address" type="string" name="address" /> 
    5858                        <parameter key="precision" type="double" name="precision" /> 
  • tools/routingservice/branches/wrs-2.0/data/templates/geocode/geocode_geojson.st

    r314 r317  
    55                        "geometry": \{ 
    66                                "type": "Point",  
    7                                 "coordinates": [ $p.x1$ $p.y1$ ] 
     7                                "coordinates": [ $p.point$ ] 
    88                        \}, 
    99                        "crs": \{ 
  • tools/routingservice/branches/wrs-2.0/data/templates/geocode/geocode_georss_gml.st

    r314 r317  
    2525                <georss:where> 
    2626                        <gml:Point gml:id="p21" srsName="EPSG:$p.srid$"> 
    27                                 <gml:pos dimension="2">$p.x1$ $p.y1$</gml:pos> 
     27                                <gml:pos dimension="2">$p.point$</gml:pos> 
    2828                        </gml:Point> 
    2929                </georss:where> 
  • tools/routingservice/branches/wrs-2.0/data/templates/geocode/geocode_kml.st

    r314 r317  
    2424                        <Point> 
    2525                                <altitudeMode>clampToGround</altitudeMode>  
    26                                 <coordinates>$p.x1$,$p.y1$</coordinates> 
     26                                <coordinates>$p.point$</coordinates> 
    2727                        </Point> 
    2828 
  • tools/routingservice/branches/wrs-2.0/data/templates/geocode/geocode_xls.st

    r314 r317  
    1212                                <xls:GeocodedAddress> 
    1313                                        <gml:Point srsName="EPSG:4236"> 
    14                                                 <gml:pos dimension="2">$p.y1$ $p.x1$</gml:pos> 
     14                                                <gml:pos dimension="2">$p.point$</gml:pos> 
    1515                                        </gml:Point> 
    1616 
  • tools/routingservice/branches/wrs-2.0/src/WRS.java

    r315 r317  
    156156                } 
    157157                 
    158                 System.out.println(System.getProperty("file.encoding")); 
    159  
    160158                log = new Log(this.conf.getLog().getUrl(), this.conf.getLog() 
    161159                                .getLevel().byteValue()); 
  • tools/routingservice/branches/wrs-2.0/src/handler/DatabaseHandler.java

    r315 r317  
    346346                else if (wkt.contains("POINT")) 
    347347                { 
    348                         wkts = wkt.split("POINT\\(\\(")[1].split("\\)\\)"); 
     348                        wkts = wkt.split("POINT\\(")[1].split("\\)"); 
    349349                } 
    350350                else if (wkt.contains("LINESTRING")) 
    351351                { 
    352                         wkts = wkt.split("LINESTRING\\(\\(")[1].split("\\)\\)"); 
     352                        wkts = wkt.split("LINESTRING\\(")[1].split("\\)"); 
    353353                } 
    354354                else if (wkt.contains("POLYGON")) 
  • tools/routingservice/branches/wrs-2.0/src/util/format/FillerFactory.java

    r314 r317  
    2626                KML(KMLTemplateFiller.class),  
    2727                GML(GMLTemplateFiller.class),  
     28                GEORSS(GMLTemplateFiller.class), 
    2829                XLS(XLSTemplateFiller.class), 
    29                 GEORSS(null), 
    3030                OL(GeoJSONTemplateFiller.class), 
    3131                GPX(GPXTemplateFiller.class);