Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Final

  • Loading branch information...
commit cea8a72add5e784c8d0c1e7aa94d443f8c7f134d 1 parent 485d040
@janpaul123 authored
View
4 INSTALL.txt
@@ -12,4 +12,6 @@ Korte installatie-instructies:
- Stel PostGIS in op de zojuist aangemaakte database (postgis.sql)
- Laad spatial references (spatial_ref_sys.sql)
- Installeer de dBase PECL extensie
-- Beveilig de admin map met .htaccess
+- Beveilig de admin map met .htaccess
+- Importeer de SQL bestanden (sql/)
+- Draai de importeerscripts (admin/)
View
0  zwemwaterlox.dbf → admin/zwemwaterlox.dbf
File renamed without changes
View
0  zwemwaterlox.prj → admin/zwemwaterlox.prj
File renamed without changes
View
0  zwemwaterlox.sbn → admin/zwemwaterlox.sbn
File renamed without changes
View
0  zwemwaterlox.sbx → admin/zwemwaterlox.sbx
File renamed without changes
View
0  zwemwaterlox.shp → admin/zwemwaterlox.shp
File renamed without changes
View
0  zwemwaterlox.shp.xml → admin/zwemwaterlox.shp.xml
File renamed without changes
View
0  zwemwaterlox.shx → admin/zwemwaterlox.shx
File renamed without changes
View
1,679 example.html
1,679 additions, 0 deletions not shown
View
16 example.php
@@ -1,16 +0,0 @@
-<?php
-include('Shapefile.inc.php');
-$options = array('noparts' => false);
-$shp = new ShapeFile("zwemwaterlox.shp", $options); // along this file the class will use file.shx and file.dbf
-
-$i = 0;
-while ($record = $shp->getNext() and $i<99999) {
- echo "<pre>"; // just to format
- $dbf_data = $record->getDbfData();
- $shp_data = $record->getShpData();
- //Dump the information
- var_dump($dbf_data);
- var_dump($shp_data);
- $i++;
- echo "</pre>";
-}
View
57 sql/locatie_photos.sql
@@ -0,0 +1,57 @@
+--
+-- PostgreSQL database dump
+--
+
+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;
+
+SET search_path = public, pg_catalog;
+
+SET default_tablespace = '';
+
+SET default_with_oids = false;
+
+--
+-- Name: locatie_photos; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
+--
+
+CREATE TABLE locatie_photos (
+ locatie_id character varying(80) NOT NULL,
+ photo_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.locatie_photos OWNER TO postgres;
+
+--
+-- Name: locatie_photos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
+--
+
+ALTER TABLE ONLY locatie_photos
+ ADD CONSTRAINT locatie_photos_pkey PRIMARY KEY (locatie_id, photo_id);
+
+
+--
+-- Name: fkey_locatie; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+--
+
+ALTER TABLE ONLY locatie_photos
+ ADD CONSTRAINT fkey_locatie FOREIGN KEY (locatie_id) REFERENCES locaties(id) ON UPDATE CASCADE ON DELETE CASCADE;
+
+
+--
+-- Name: fkey_photo; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+--
+
+ALTER TABLE ONLY locatie_photos
+ ADD CONSTRAINT fkey_photo FOREIGN KEY (photo_id) REFERENCES photos(id) ON UPDATE CASCADE ON DELETE CASCADE;
+
+
+--
+-- PostgreSQL database dump complete
+--
+
View
66 sql/locaties.sql
@@ -0,0 +1,66 @@
+--
+-- PostgreSQL database dump
+--
+
+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;
+
+SET search_path = public, pg_catalog;
+
+SET default_tablespace = '';
+
+SET default_with_oids = false;
+
+--
+-- Name: locaties; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
+--
+
+CREATE TABLE locaties (
+ zwemfolder character varying(8) NOT NULL,
+ naam character varying(48) NOT NULL,
+ cbs character varying(24) NOT NULL,
+ loc geometry NOT NULL,
+ gloc geometry NOT NULL,
+ drijflijn boolean NOT NULL,
+ aflopend boolean NOT NULL,
+ zandstrand boolean NOT NULL,
+ toiletten boolean NOT NULL,
+ douches boolean NOT NULL,
+ restaurant boolean NOT NULL,
+ toegankelijk boolean NOT NULL,
+ ov boolean NOT NULL,
+ parkeerplaats boolean NOT NULL,
+ huisdieren boolean NOT NULL,
+ ehbo boolean NOT NULL,
+ doorzicht integer NOT NULL,
+ giftig integer NOT NULL,
+ advies character varying(44) NOT NULL,
+ opmerking character varying(254) NOT NULL,
+ id character varying(80) NOT NULL,
+ CONSTRAINT enforce_dims_gloc CHECK ((st_ndims(gloc) = 2)),
+ CONSTRAINT enforce_dims_loc CHECK ((st_ndims(loc) = 2)),
+ CONSTRAINT enforce_geotype_gloc CHECK (((geometrytype(gloc) = 'POINT'::text) OR (gloc IS NULL))),
+ CONSTRAINT enforce_geotype_loc CHECK (((geometrytype(loc) = 'POINT'::text) OR (loc IS NULL))),
+ CONSTRAINT enforce_srid_gloc CHECK ((st_srid(gloc) = 4326)),
+ CONSTRAINT enforce_srid_loc CHECK ((st_srid(loc) = 28992))
+);
+
+
+ALTER TABLE public.locaties OWNER TO postgres;
+
+--
+-- Name: locaties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
+--
+
+ALTER TABLE ONLY locaties
+ ADD CONSTRAINT locaties_pkey PRIMARY KEY (id);
+
+
+--
+-- PostgreSQL database dump complete
+--
+
View
51 sql/photos.sql
@@ -0,0 +1,51 @@
+--
+-- PostgreSQL database dump
+--
+
+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;
+
+SET search_path = public, pg_catalog;
+
+SET default_tablespace = '';
+
+SET default_with_oids = false;
+
+--
+-- Name: photos; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
+--
+
+CREATE TABLE photos (
+ score integer DEFAULT 0 NOT NULL,
+ votes integer DEFAULT 0 NOT NULL,
+ owner_id integer NOT NULL,
+ owner_name character varying(256) NOT NULL,
+ id bigint NOT NULL
+);
+
+
+ALTER TABLE public.photos OWNER TO postgres;
+
+--
+-- Name: pkey_id; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
+--
+
+ALTER TABLE ONLY photos
+ ADD CONSTRAINT pkey_id PRIMARY KEY (id);
+
+
+--
+-- Name: id_score; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
+--
+
+CREATE INDEX id_score ON photos USING btree (id, score);
+
+
+--
+-- PostgreSQL database dump complete
+--
+
Please sign in to comment.
Something went wrong with that request. Please try again.