Improve myway timeliness based on new GTFS feed accuracy
Improve myway timeliness based on new GTFS feed accuracy

file:b/.gitignore (new)
 
  /labs/tiles/12
  /labs/tiles/13
  /labs/tiles/14
  /labs/tiles/15
  /labs/tiles/16
  /labs/tiles/17
  /labs/tiles/19
  /nbproject/private/
file:b/Boxfile (new)
  web1:
  php_extensions:
  - pgsql
  - pdo
  - pdo_pgsql
  - curl
 
file:a/about.php -> file:b/about.php
<?php <?php
  /*
  * Copyright 2010,2011 Alexander Sadleir
   
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
   
  http://www.apache.org/licenses/LICENSE-2.0
   
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
include ('include/common.inc.php'); include ('include/common.inc.php');
include_header("About", "about") include_header("About", "about")
?> ?>
<p> <p>
Busness Time - An ACT bus timetable webapp<br /> Busness Time - An ACT bus timetable webapp<br />
Based on the maxious-canberra-transit-feed (<a Based on the maxious-canberra-transit-feed (<a
href="http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip">download</a>, href="http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip">download</a>,
last updated <?php last updated <?php echo date("F d Y.", @filemtime('cbrfeed.zip')); ?>)<br />
echo date("F d Y.", @filemtime('cbrfeed.zip')); ?>)<br /> Source code for the <a
Source code for the <a href="https://github.com/maxious/ACTBus-data">transit
href="https://github.com/maxious/ACTBus-data">transit feed</a> and <a href="https://github.com/maxious/ACTBus-ui">this
feed</a> and <a href="https://github.com/maxious/ACTBus-ui">this site</a> available from github.<br />
site</a> available from github.<br /> Uses jQuery Mobile, PHP, PostgreSQL, OpenTripPlanner, OpenLayers, OpenStreetMap, Cloudmade Geocoder and Tile Service<br />
Uses jQuery Mobile, PHP, PostgreSQL, OpenTripPlanner, OpenLayers, OpenStreetMap, Cloudmade Geocoder and Tile Service<br /> Suburb Geocoding Based on <A href="http://www.abs.gov.au/AUSSTATS/abs@.nsf/Lookup/1270.0.55.003Main+Features1July%202011?OpenDocument">Australian Bureau of Statistics data.</a><br />
<br /> Street geocoding based on work by OpenStreetMap contributors<br>
Feedback encouraged; contact maxious@lambdacomplex.org<br />  
<br /> <br />
Some icons by Joseph Wain / glyphish.com<br /> Feedback encouraged; contact maxious@lambdacomplex.org<br />
<br /> <br />
<small>Disclaimer: The content of this website is of a general and informative nature. Please check with printed timetables or those available on http://action.act.gov.au before your trip. Some icons by Joseph Wain / glyphish.com<br />
Whilst every effort has been made to ensure the high quality and accuracy of the Site, the Author makes no warranty, Native clients also available for iPhone(<a href="http://itunes.apple.com/au/app/cbrtimetable/id444287349?mt=8">cbrTimetable by Sandor Kolotenko</a>
express or implied concerning the topicality, correctness, completeness or quality of the information, which is provided , <a href="http://itunes.apple.com/au/app/act-buses/id376634797?mt=8">ACT Buses by David Sullivan</a>)
"as is". The Author expressly disclaims all warranties, including but not limited to warranties of fitness for a particular purpose and warranties of merchantability. , Android (<a href="https://market.android.com/details?id=com.action">MyBus 2.0 by Imagine Team</a>)
All offers are not binding and without obligation. The Author expressly reserves the right, in his discretion, to suspend, and Windows Phone 7 (<a href="http://www.windowsphone.com/en-AU/apps/d840375e-429c-4aa4-a358-80eec6ea9e66">TransHub Canberra by Soul Solutions</a>)
change, modify, add or remove portions of the Site and to restrict or terminate the use and accessibility of the Site <br />
without prior notice. </small> GTFS-realtime API:
<?php Alerts and Trip Updates (but only Cancelled or Stop Skipped)
include_footer(); Default format binary Protocol Buffer but can get JSON by adding ?ascii=yes
?> <br />
  <br />
  <small>Disclaimer: The content of this website is of a general and informative nature. Please check with printed timetables or those available on http://action.act.gov.au before your trip.
  Whilst every effort has been made to ensure the high quality and accuracy of the Site, the Author makes no warranty,
  express or implied concerning the topicality, correctness, completeness or quality of the information, which is provided
  "as is". The Author expressly disclaims all warranties, including but not limited to warranties of fitness for a particular purpose and warranties of merchantability.
  All offers are not binding and without obligation. The Author expressly reserves the right, in his discretion, to suspend,
  change, modify, add or remove portions of the Site and to restrict or terminate the use and accessibility of the Site
  without prior notice. </small>
  <?php
  include_footer();
  ?>
   
#!/bin/bash #!/bin/bash
#this script should be run from a fresh git checkout from github #this script should be run from a fresh git checkout from github
#ami base must have yum install lighttpd-fastcgi, git, tomcat6 #ami base must have yum install lighttpd-fastcgi, git, tomcat6
#php-cli php-gd tomcat6-webapps tomcat6-admin-webapps svn maven2 #php-cli php-gd tomcat6-webapps tomcat6-admin-webapps svn maven2
#postgres postgres-server php-pg #postgres postgres-server php-pg
#http://www.how2forge.org/installing-lighttpd-with-php5-and-mysql-support-on-fedora-12 #http://www.how2forge.org/installing-lighttpd-with-php5-and-mysql-support-on-fedora-12
   
cp /root/aws.php /tmp/ sh busuiphp.sh
mkdir /var/www/lib/staticmaplite/cache sh busuidb.sh
chcon -h system_u:object_r:httpd_sys_content_t /var/www sh busuiotp.sh
chcon -R -h root:object_r:httpd_sys_content_t /var/www/*  
chcon -R -t httpd_sys_content_rw_t /var/www/lib/staticmaplite/cache  
chmod -R 777 /var/www/lib/staticmaplite/cache  
chcon -R -t httpd_sys_content_rw_t /var/www/labs/tiles  
chmod -R 777 /var/www/labs/tiles  
wget http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip \  
-O /var/www/cbrfeed.zip  
   
createdb transitdata  
createlang -d transitdata plpgsql  
psql -d transitdata -f /var/www/lib/postgis.sql  
# curl https://github.com/maxious/ACTBus-ui/raw/master/transitdata.cbrfeed.sql.gz -o transitdata.cbrfeed.sql.gz  
#made with pg_dump transitdata | gzip -c > transitdata.cbrfeed.sql.gz  
gunzip /var/www/transitdata.cbrfeed.sql.gz  
psql -d transitdata -f /var/www/transitdata.cbrfeed.sql  
#createuser transitdata -SDRP  
#password transitdata  
#psql -d transitdata -c \"GRANT SELECT ON TABLE agency,calendar,calendar_dates,routes,stop_times,stops,trips TO transitdata;\"  
php /var/www/updatedb.php  
   
wget http://s3-ap-southeast-1.amazonaws.com/busresources/Graph.obj \  
-O /tmp/Graph.obj  
rm -rfv /usr/share/tomcat6/webapps/opentripplanner*  
wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-webapp.war \  
-O /usr/share/tomcat6/webapps/opentripplanner-webapp.war  
wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-api-webapp.war \  
-O /usr/share/tomcat6/webapps/opentripplanner-api-webapp.war  
/etc/init.d/tomcat6 restart  
   
file:b/aws/busuidb.sh (new)
  createdb transitdata
  createlang -d transitdata plpgsql
  psql -d transitdata -f /var/www/lib/postgis.sql
  # curl https://github.com/maxious/ACTBus-ui/raw/master/transitdata.cbrfeed.sql.gz -o transitdata.cbrfeed.sql.gz
  #made with pg_dump transitdata | gzip -c > transitdata.cbrfeed.sql.gz
  gunzip /var/www/transitdata.cbrfeed.sql.gz
  psql -d transitdata -f /var/www/transitdata.cbrfeed.sql
  #createuser transitdata -SDRP
  #password transitdata
  #psql -d transitdata -c "GRANT SELECT ON TABLE agency,calendar,calendar_dates,routes,stop_times,stops,trips TO transitdata;"
  #psql -d transitdata -c "GRANT SELECT,INSERT ON TABLE myway_observations,myway_routes,myway_stops,myway_timingdeltas TO transitdata;"
  #psql -d transitdata -c "GRANT SELECT,INSERT,UPDATE ON TABLE myway_routes,myway_stops TO transitdata;"
  ##psql -d transitdata -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO transitdata;"
  php /var/www/updatedb.php
file:b/aws/busuiotp.sh (new)
  wget http://s3-ap-southeast-1.amazonaws.com/busresources/Graph.obj \
  -O /tmp/Graph.obj
  /etc/init.d/tomcat6 stop
  rm -rfv /usr/share/tomcat6/webapps/opentripplanner*
  wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-webapp.war \
  -O /usr/share/tomcat6/webapps/opentripplanner-webapp.war
  wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-api-webapp.war \
  -O /usr/share/tomcat6/webapps/opentripplanner-api-webapp.war
  /etc/init.d/tomcat6 restart
 
  wget http://s3-ap-southeast-1.amazonaws.com/busresources/testing/Graph.obj \
  -O /tmp/Graph.obj
  /etc/init.d/tomcat6 stop
  rm -rfv /usr/share/tomcat6/webapps/opentripplanner*
  wget http://s3-ap-southeast-1.amazonaws.com/busresources/testing/opentripplanner-webapp.war \
  -O /usr/share/tomcat6/webapps/opentripplanner-webapp.war
  wget http://s3-ap-southeast-1.amazonaws.com/busresources/testing/opentripplanner-api-webapp.war \
  -O /usr/share/tomcat6/webapps/opentripplanner-api-webapp.war
  /etc/init.d/tomcat6 restart
 
file:b/aws/busuiphp.sh (new)
  cp /root/aws.php /tmp/
  chmod 777 /var/cache/lighttpd/compress/
 
  chcon -h system_u:object_r:httpd_sys_content_t /var/www
  chcon -R -h root:object_r:httpd_sys_content_t /var/www/*
 
  chcon -R -t httpd_sys_content_rw_t /var/www/labs/tiles
  chmod -R 777 /var/www/labs/tiles
 
  wget http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip \
  -O /var/www/cbrfeed.zip
 
  <?xml version="1.0" encoding="UTF-8"?>
  <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
 
  <!-- Single graph -->
  <import resource="classpath:org/opentripplanner/api/application-context.xml" />
 
  <bean id="graphBundle" class="org.opentripplanner.model.GraphBundle">
  <property name="path" value="/tmp/" />
  </bean>
 
  </beans>
 
  --
  -- PostgreSQL database dump
  --
 
  -- Dumped from database version 9.0.4
  -- Dumped by pg_dump version 9.0.4
  -- Started on 2011-10-11 23:16:11
 
  SET statement_timeout = 0;
  SET client_encoding = 'UTF8';
  SET standard_conforming_strings = off;
  SET check_function_bodies = false;
  SET client_min_messages = warning;
  SET escape_string_warning = off;
 
  --
  -- TOC entry 1168 (class 2612 OID 11574)
  -- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: postgres
  --
 
  CREATE OR REPLACE PROCEDURAL LANGUAGE plpgsql;
 
 
  ALTER PROCEDURAL LANGUAGE plpgsql OWNER TO postgres;
 
  SET search_path = public, pg_catalog;
 
  --
  -- TOC entry 1088 (class 0 OID 0)
  -- Name: box2d; Type: SHELL TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE box2d;
 
 
  --
  -- TOC entry 15 (class 1255 OID 18351)
  -- Dependencies: 6 1088
  -- Name: box2d_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION box2d_in(cstring) RETURNS box2d
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'BOX2DFLOAT4_in';
 
 
  ALTER FUNCTION public.box2d_in(cstring) OWNER TO postgres;
 
  --
  -- TOC entry 19 (class 1255 OID 18352)
  -- Dependencies: 6 1088
  -- Name: box2d_out(box2d); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION box2d_out(box2d) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'BOX2DFLOAT4_out';
 
 
  ALTER FUNCTION public.box2d_out(box2d) OWNER TO postgres;
 
  --
  -- TOC entry 1087 (class 1247 OID 18350)
  -- Dependencies: 6 15 19
  -- Name: box2d; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE box2d (
  INTERNALLENGTH = 16,
  INPUT = box2d_in,
  OUTPUT = box2d_out,
  ALIGNMENT = int4,
  STORAGE = plain
  );
 
 
  ALTER TYPE public.box2d OWNER TO postgres;
 
  --
  -- TOC entry 1091 (class 0 OID 0)
  -- Name: box3d; Type: SHELL TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE box3d;
 
 
  --
  -- TOC entry 20 (class 1255 OID 18355)
  -- Dependencies: 6 1091
  -- Name: box3d_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION box3d_in(cstring) RETURNS box3d
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'BOX3D_in';
 
 
  ALTER FUNCTION public.box3d_in(cstring) OWNER TO postgres;
 
  --
  -- TOC entry 21 (class 1255 OID 18356)
  -- Dependencies: 6 1091
  -- Name: box3d_out(box3d); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION box3d_out(box3d) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'BOX3D_out';
 
 
  ALTER FUNCTION public.box3d_out(box3d) OWNER TO postgres;
 
  --
  -- TOC entry 1090 (class 1247 OID 18354)
  -- Dependencies: 6 21 20
  -- Name: box3d; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE box3d (
  INTERNALLENGTH = 48,
  INPUT = box3d_in,
  OUTPUT = box3d_out,
  ALIGNMENT = double,
  STORAGE = plain
  );
 
 
  ALTER TYPE public.box3d OWNER TO postgres;
 
  --
  -- TOC entry 1094 (class 0 OID 0)
  -- Name: box3d_extent; Type: SHELL TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE box3d_extent;
 
 
  --
  -- TOC entry 22 (class 1255 OID 18359)
  -- Dependencies: 6 1094
  -- Name: box3d_extent_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION box3d_extent_in(cstring) RETURNS box3d_extent
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'BOX3D_in';
 
 
  ALTER FUNCTION public.box3d_extent_in(cstring) OWNER TO postgres;
 
  --
  -- TOC entry 23 (class 1255 OID 18360)
  -- Dependencies: 6 1094
  -- Name: box3d_extent_out(box3d_extent); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION box3d_extent_out(box3d_extent) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'BOX3D_extent_out';
 
 
  ALTER FUNCTION public.box3d_extent_out(box3d_extent) OWNER TO postgres;
 
  --
  -- TOC entry 1093 (class 1247 OID 18358)
  -- Dependencies: 6 23 22
  -- Name: box3d_extent; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE box3d_extent (
  INTERNALLENGTH = 48,
  INPUT = box3d_extent_in,
  OUTPUT = box3d_extent_out,
  ALIGNMENT = double,
  STORAGE = plain
  );
 
 
  ALTER TYPE public.box3d_extent OWNER TO postgres;
 
  --
  -- TOC entry 1097 (class 0 OID 0)
  -- Name: chip; Type: SHELL TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE chip;
 
 
  --
  -- TOC entry 24 (class 1255 OID 18363)
  -- Dependencies: 6 1097
  -- Name: chip_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION chip_in(cstring) RETURNS chip
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'CHIP_in';
 
 
  ALTER FUNCTION public.chip_in(cstring) OWNER TO postgres;
 
  --
  -- TOC entry 25 (class 1255 OID 18364)
  -- Dependencies: 6 1097
  -- Name: chip_out(chip); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION chip_out(chip) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'CHIP_out';
 
 
  ALTER FUNCTION public.chip_out(chip) OWNER TO postgres;
 
  --
  -- TOC entry 1096 (class 1247 OID 18362)
  -- Dependencies: 6 25 24
  -- Name: chip; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE chip (
  INTERNALLENGTH = variable,
  INPUT = chip_in,
  OUTPUT = chip_out,
  ALIGNMENT = double,
  STORAGE = extended
  );
 
 
  ALTER TYPE public.chip OWNER TO postgres;
 
  --
  -- TOC entry 1100 (class 0 OID 0)
  -- Name: geography; Type: SHELL TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE geography;
 
 
  --
  -- TOC entry 26 (class 1255 OID 18367)
  -- Dependencies: 6
  -- Name: geography_analyze(internal); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geography_analyze(internal) RETURNS boolean
  LANGUAGE c STRICT
  AS '$libdir/postgis-1.5', 'geography_analyze';
 
 
  ALTER FUNCTION public.geography_analyze(internal) OWNER TO postgres;
 
  --
  -- TOC entry 27 (class 1255 OID 18368)
  -- Dependencies: 6 1100
  -- Name: geography_in(cstring, oid, integer); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geography_in(cstring, oid, integer) RETURNS geography
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'geography_in';
 
 
  ALTER FUNCTION public.geography_in(cstring, oid, integer) OWNER TO postgres;
 
  --
  -- TOC entry 28 (class 1255 OID 18369)
  -- Dependencies: 6 1100
  -- Name: geography_out(geography); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geography_out(geography) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'geography_out';
 
 
  ALTER FUNCTION public.geography_out(geography) OWNER TO postgres;
 
  --
  -- TOC entry 29 (class 1255 OID 18370)
  -- Dependencies: 6
  -- Name: geography_typmod_in(cstring[]); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geography_typmod_in(cstring[]) RETURNS integer
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'geography_typmod_in';
 
 
  ALTER FUNCTION public.geography_typmod_in(cstring[]) OWNER TO postgres;
 
  --
  -- TOC entry 30 (class 1255 OID 18371)
  -- Dependencies: 6
  -- Name: geography_typmod_out(integer); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geography_typmod_out(integer) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'geography_typmod_out';
 
 
  ALTER FUNCTION public.geography_typmod_out(integer) OWNER TO postgres;
 
  --
  -- TOC entry 1099 (class 1247 OID 18366)
  -- Dependencies: 26 6 27 28 29 30
  -- Name: geography; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE geography (
  INTERNALLENGTH = variable,
  INPUT = geography_in,
  OUTPUT = geography_out,
  TYPMOD_IN = geography_typmod_in,
  TYPMOD_OUT = geography_typmod_out,
  ANALYZE = geography_analyze,
  ALIGNMENT = double,
  STORAGE = main
  );
 
 
  ALTER TYPE public.geography OWNER TO postgres;
 
  --
  -- TOC entry 1103 (class 0 OID 0)
  -- Name: geometry; Type: SHELL TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE geometry;
 
 
  --
  -- TOC entry 31 (class 1255 OID 18374)
  -- Dependencies: 6
  -- Name: geometry_analyze(internal); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geometry_analyze(internal) RETURNS boolean
  LANGUAGE c STRICT
  AS '$libdir/postgis-1.5', 'LWGEOM_analyze';
 
 
  ALTER FUNCTION public.geometry_analyze(internal) OWNER TO postgres;
 
  --
  -- TOC entry 32 (class 1255 OID 18375)
  -- Dependencies: 6 1103
  -- Name: geometry_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geometry_in(cstring) RETURNS geometry
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'LWGEOM_in';
 
 
  ALTER FUNCTION public.geometry_in(cstring) OWNER TO postgres;
 
  --
  -- TOC entry 33 (class 1255 OID 18376)
  -- Dependencies: 6 1103
  -- Name: geometry_out(geometry); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geometry_out(geometry) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'LWGEOM_out';
 
 
  ALTER FUNCTION public.geometry_out(geometry) OWNER TO postgres;
 
  --
  -- TOC entry 34 (class 1255 OID 18377)
  -- Dependencies: 6 1103
  -- Name: geometry_recv(internal); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geometry_recv(internal) RETURNS geometry
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'LWGEOM_recv';
 
 
  ALTER FUNCTION public.geometry_recv(internal) OWNER TO postgres;
 
  --
  -- TOC entry 35 (class 1255 OID 18378)
  -- Dependencies: 6 1103
  -- Name: geometry_send(geometry); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION geometry_send(geometry) RETURNS bytea
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'LWGEOM_send';
 
 
  ALTER FUNCTION public.geometry_send(geometry) OWNER TO postgres;
 
  --
  -- TOC entry 1102 (class 1247 OID 18373)
  -- Dependencies: 33 34 35 31 6 32
  -- Name: geometry; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE geometry (
  INTERNALLENGTH = variable,
  INPUT = geometry_in,
  OUTPUT = geometry_out,
  RECEIVE = geometry_recv,
  SEND = geometry_send,
  ANALYZE = geometry_analyze,
  DELIMITER = ':',
  ALIGNMENT = int4,
  STORAGE = main
  );
 
 
  ALTER TYPE public.geometry OWNER TO postgres;
 
  --
  -- TOC entry 1105 (class 1247 OID 18382)
  -- Dependencies: 6 2408
  -- Name: geometry_dump; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE geometry_dump AS (
  path integer[],
  geom geometry
  );
 
 
  ALTER TYPE public.geometry_dump OWNER TO postgres;
 
  --
  -- TOC entry 1108 (class 0 OID 0)
  -- Name: gidx; Type: SHELL TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE gidx;
 
 
  --
  -- TOC entry 36 (class 1255 OID 18384)
  -- Dependencies: 6 1108
  -- Name: gidx_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION gidx_in(cstring) RETURNS gidx
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'gidx_in';
 
 
  ALTER FUNCTION public.gidx_in(cstring) OWNER TO postgres;
 
  --
  -- TOC entry 37 (class 1255 OID 18385)
  -- Dependencies: 6 1108
  -- Name: gidx_out(gidx); Type: FUNCTION; Schema: public; Owner: postgres
  --
 
  CREATE FUNCTION gidx_out(gidx) RETURNS cstring
  LANGUAGE c IMMUTABLE STRICT
  AS '$libdir/postgis-1.5', 'gidx_out';
 
 
  ALTER FUNCTION public.gidx_out(gidx) OWNER TO postgres;
 
  --
  -- TOC entry 1107 (class 1247 OID 18383)
  -- Dependencies: 37 36 6
  -- Name: gidx; Type: TYPE; Schema: public; Owner: postgres
  --
 
  CREATE TYPE gidx (
  INTERNALLENGTH = variable,
  INPUT = gidx_in,
  OUTPUT = gidx_out,
  ALIGNMENT = double,
  STORAGE = plain
  );
 
 
  ALTER TYPE public.gidx OWNER TO postgres;
 
  --
  -- TOC entry 1111 (class 0 OID 0)
  -- Name: pgis_abs; Type: SHELL TYPE; Schema: public; Owner: postgres
  --