Skip to content

Commit

Permalink
Licensing, completed data pages. Started contact email stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Leith committed Mar 7, 2013
1 parent 6679bf5 commit 98ababb
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 11 deletions.
11 changes: 10 additions & 1 deletion Services.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,19 @@
<h1>Glenorchy City Council GIS</h1>
</div><!-- /header -->
<div data-role="content">
<h1>Connecting to Web Services</h1>
<p>Web services you can connect to include:</p>
<ul>
<li><b>WFS:</b> http://maps.gcc.tas.gov.au:8080/geoserver/GCC_cc/ows?service=wfs&version=1.1.0&request=GetCapabilities</li>
<li><b>WMS:</b> http://maps.gcc.tas.gov.au:8080/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities</li>
<li><b>WMS:</b> http://maps.gcc.tas.gov.au:8080/geoserver/gwc/service/wms?version=1.1.1&request=GetCapabilities</li>
<li><b>WMTS:</b> http://maps.gcc.tas.gov.au:8080/geoserver/gwc/service/wmts?REQUEST=GetCapabilities</li>
</ul>
Some documentation for connecting to these can be found here:
<ul>
<li><b>Leaflet:</b> for leaflet, use a <a href="http://leafletjs.com/reference.html#tilelayer-wms">TileLayer (WMS)</a>. We have examples in our <a href="maps.html">maps section.</a> </li>
<li><b>MapInfo:</b> see this site: <a href="http://www.mapmartcloud.com/SamplesAndSetUp/MapInfoSetup.aspx">MapInfo WMS Setup</a> for WMS. WFS is similar.</li>
<li><b>QGIS:</b> The above URLs work in QGIS. Try <a href="http://qgis.spatialthoughts.com/2012/05/tutorial-using-online-data-via-wms-in.html"> this Spatial Thoughts</a> tutorial.</li>
<li><b>ArcGIS:</b> See the documentation for <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00sp0000000s000000.htm">WMS</a> or <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/00sp/00sp0000001m000000.htm">WFS</a>.</li>
</ul>
</div><!-- /content -->
<div data-role="footer" class="footer" data-theme="c" data-position="fixed">
Expand Down
8 changes: 4 additions & 4 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ <h1>Contact Us</h1>
</div><!-- /header -->
<div data-role="content">
<p>You can contact us at <a href=mailto:gis@gcc.tas.gov.au>gis@gcc.tas.gov.au</a>.</p>
<p>Or you can fill in the form below:</p>
<form action="MAILTO:gis@gcc.tas.gov.au" method="post" enctype="text/plain">
<p>Or you can fill in this form:</p>
<form method="post" name="myemailform" action="form-to-email.php">
Name:<input type="text" name="name" value="your name"><br>
E-mail:<input type="text" name="mail" value="your email"><br>
Comment:<textarea name="comment" rows="6" cols="50">your comments</textarea><br>
E-mail:<input type="text" name="email" value="your email"><br>
Comment:<textarea name="message" rows="6" cols="50">your comments</textarea><br>
<input type="submit" value="Send">
</form>
</div><!-- /content -->
Expand Down
4 changes: 2 additions & 2 deletions data.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ <h1>Glenorchy City Council GIS</h1>
<div data-role="content">
<div class="content-secondary">
<h1>Data</h1>
<p>Data that is available for public use is documented here. We also have documented some <a href="services.html">web services</a>where you can access or view directly your application. You can also find data that we have shared here: <a href="http://data.gov.au/?s=glenorchy+city+council" data-transition="slide" data-transition="slide">Glenorchy City Council at data.gov.au</a></li></p>.
<p>Data that is available for public use is documented here. We also have documented some <a href="services.html">web services</a> where you can access or view directly your application. You can also find data that we have shared here: <a href="http://data.gov.au/?s=glenorchy+city+council" data-transition="slide" data-transition="slide">data.gov.au</a>.</li></p>.
<h1>Metadata</h1>
<p>Select a dataset on the right to be taken to the metadata page for it. This page also details how to download datasets. Only data released under <a href="license.html">Creative Commons</a>is currently documented here.</p>
<p>For more information regarding data, please contact us <a href="mailto:gis@gcc.tas.gov.au">gis@gcc.tas.gov.au</a></p>
<p>For more information regarding data, please contact us: <a href="contact.html" data-transition="pop" data-rel="dialog">gis@gcc.tas.gov.au</a>.</p>
</div>

<div class="content-primary">
Expand Down
Binary file added favicon.ico
Binary file not shown.
59 changes: 59 additions & 0 deletions form-to-email.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php
if(!isset($_POST['submit']))
{
//This page should not be accessed directly. Need to submit the form.
echo "error; you need to submit the form!";
}
$name = $_POST['name'];
$visitor_email = $_POST['email'];
$message = $_POST['message'];

//Validate first
if(empty($name)||empty($visitor_email))
{
echo "Name and email are mandatory!";
exit;
}

if(IsInjected($visitor_email))
{
echo "Bad email value!";
exit;
}

$email_from = 'gis@gcc.tas.gov.au';//<== update the email address
$email_subject = "GCC GIS Website Enquiry";
$email_body = "Message from: $name.\n".
"Message:\n $message".

$to = "gis@gcc.tas.gov.au";//<== update the email address
$headers = "From: $email_from \r\n";
$headers .= "Reply-To: $visitor_email \r\n";
//Send the email!
mail($to,$email_subject,$email_body,$headers);
//done. redirect to thank-you page.
header('Location: index.html');

// Function to validate against any email injection attempts
function IsInjected($str)
{
$injections = array('(\n+)',
'(\r+)',
'(\t+)',
'(%0A+)',
'(%0D+)',
'(%08+)',
'(%09+)'
);
$inject = join('|', $injections);
$inject = "/$inject/i";
if(preg_match($inject,$str))
{
return true;
}
else
{
return false;
}
}
?>
8 changes: 6 additions & 2 deletions licensing.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
<h1>Glenorchy City Council GIS</h1>
</div><!-- /header -->

<div data-role="content">
<p>Coming soon...</p>
<div data-role="content">
<h1>Creative Commons</h1>
<p>This website, all the vector data accessible through it, and the maps (unless otherwise mentioned) is available through the <a href=http://creativecommons.org/licenses/by/3.0/au/>Creative Commons Attribution 3.0 Australia license</a>.</p>
<p>The concept here is that we want to make data available. If you can think of a dataset that Council has copyright over, that you would like to access, please <a href="contact.html" data-transition="pop" data-rel="dialog">contact us</a> and let us know. All information that we have rights to release, that doesn't have privacy, security of privilege limitations, we will release. For further reading, see the <a href="http://webguide.gov.au/web-2-0/publishing-public-sector-information/">webguide 'publishing public sector information'</a> page. Inspiration is from the <a href="https://public.resource.org/8_principles.html">8 principles of open government</a>, whcih is a very nice document. The <a href="https://agimo.govspace.gov.au/2010/07/16/declaration-of-open-government/">Australian government has a declaration</a>, too.</p>
<h1>Other</h1>
<p>Some information presented though this website, for example, the basemap layers, is licensed from the Tasmanian state government. This data can't be shared in vector format. You might like to contact them to ask why!</p>
</div><!-- /content -->
<div data-role="footer" class="footer" data-theme="c" data-position="fixed">
<p>&copy; 2013 Glenorchy City Council</p>
Expand Down
2 changes: 1 addition & 1 deletion maps.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>Glenorchy City Council GIS</h1>
<div class="content-secondary">
<h1>Maps</h1>
<p>Select a map from the list on the right. Type into the box to narrow the list down.</p>
<p>For enquiries regarding the maps or data contained in them contact GCC GIS at <a href="mailto:gis@gcc.tas.gov.au">gis@gcc.tas.gov.au</a></p>
<p>For enquiries regarding the maps or data contained in them contact GCC GIS at <a href="contact.html" data-transition="pop" data-rel="dialog">gis@gcc.tas.gov.au</a>.</p>
</div>

<div class="content-primary">
Expand Down
2 changes: 2 additions & 0 deletions metadata/buildings.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ <h1>Glenorchy City Council GIS</h1>
</div><!-- /header -->
<div data-role="content">
<h1>Building Footprints</h1>
<p>Building footprints throughout the Glenorchy City Council municipal area. Footprints have been captured through a mix of digitisation from aerial imagery and design drawings.</p>
<h2>Data</h2>
<div class="details">
<p><b>Download SHP: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Buildings&outputformat=SHAPE-ZIP&format_options=filename:GCC_Buildings_SHP.zip">GCC Buildings Shapefile</a></p>
<p><b>Download TAB: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Buildings&outputformat=OGR-TAB&format_options=filename:GCC_Buildings_TAB.zip">GCC Buildings Tabfile</a></p>
<p><b>Download KML: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/GCC_cc/wms?service=WMS&version=1.1.0&request=GetMap&layers=GCC_cc:Buildings&styles=&bbox=515281.09375,5252067.0,526356.4375,5266823.0&width=384&height=512&srs=EPSG:28355&format=application/vnd.google-earth.kml+xml">GCC Buildings KML</a></p>
See the <a href="../services.html">GCC GIS web services page</a> for live data access.
</div>
<h2>Details</h2>
Expand Down
2 changes: 2 additions & 0 deletions metadata/kerbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ <h1>Glenorchy City Council GIS</h1>
</div><!-- /header -->
<div data-role="content">
<h1>Kerbs</h1>
<p>Kerb lines throughout the Glenorchy City Council municipal area. Kerbs have been digitised from aerial imagery.</p>
<h2>Data</h2>
<div class="details">
<p><b>Download SHP: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Kerbs&outputformat=SHAPE-ZIP&format_options=filename:GCC_Kerbs_SHP.zip">GCC Kerbs Shapefile</a></p>
<p><b>Download TAB: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Kerbs&outputformat=OGR-TAB&format_options=filename:GCC_Kerbs_TAB.zip">GCC Kerbs Tabfile</a></p>
<p><b>Download KML: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/GCC_cc/wms?service=WMS&version=1.1.0&request=GetMap&layers=GCC_cc:kerbs&styles=&bbox=515281.09375,5252067.0,526356.4375,5266823.0&width=384&height=512&srs=EPSG:28355&format=application/vnd.google-earth.kml+xml">GCC Kerbs KML</a></p>
See the <a href="../services.html">GCC GIS web services page</a> for live data access.
</div>
<h2>Details</h2>
Expand Down
4 changes: 3 additions & 1 deletion metadata/stormwaterpipes.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
<h1>Glenorchy City Council GIS</h1>
</div><!-- /header -->
<div data-role="content">
<h1>Stormwater Pipes</h1>
<h1>Stormwater Pipes</h1>
<p>The stormwater pipes dataset contains the location and details about stormwater assets in the Glenorchy City Council municipal area. The dataset was created by digitisation off detail drawings and through precise GNSS survey.</p>
<h2>Data</h2>
<div class="details">
<p><b>Download SHP: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Stormwaterpipes&outputformat=SHAPE-ZIP&format_options=filename:GCC_Stormwaterpipes_SHP.zip">GCC Stormwaterpipes Shapefile</a></p>
<p><b>Download TAB: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Stormwaterpipes&outputformat=OGR-TAB&format_options=filename:GCC_Stormwaterpipes_TAB.zip">GCC Stormwaterpipes Tabfile</a></p>
<p><b>Download KML: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/GCC_cc/wms?service=WMS&version=1.1.0&request=GetMap&layers=GCC_cc:Stormwaterpipes&styles=&bbox=515281.09375,5252067.0,526356.4375,5266823.0&width=384&height=512&srs=EPSG:28355&format=application/vnd.google-earth.kml+xml">GCC Stormwaterpipes KML</a></p>
See the <a href="../services.html">GCC GIS web services page</a> for live data access.
</div>
<h2>Details</h2>
Expand Down
2 changes: 2 additions & 0 deletions metadata/stormwaterpits.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ <h1>Glenorchy City Council GIS</h1>
</div><!-- /header -->
<div data-role="content">
<h1>Stormwater Pits</h1>
<p>The stormwater pits dataset contains the location and details about stormwater assets in the Glenorchy City Council municipal area. The dataset was created by digitisation off detail drawings and through precise GNSS survey.</p>
<h2>Data</h2>
<div class="details">
<p><b>Download SHP: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Stormwaterpits&outputformat=SHAPE-ZIP&format_options=filename:GCC_Stormwaterpits_SHP.zip">GCC Stormwaterpits Shapefile</a></p>
<p><b>Download TAB: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/wfs?request=GetFeature&service=wfs&version=1.0.0&typename=GCC_cc:Stormwaterpits&outputformat=OGR-TAB&format_options=filename:GCC_Stormwaterpits_TAB.zip">GCC Stormwaterpits Tabfile</a></p>
<p><b>Download KML: </b><a href="http://maps.gcc.tas.gov.au:8080/geoserver/GCC_cc/wms?service=WMS&version=1.1.0&request=GetMap&layers=GCC_cc:Stormwaterpits&styles=&bbox=515281.09375,5252067.0,526356.4375,5266823.0&width=384&height=512&srs=EPSG:28355&format=application/vnd.google-earth.kml+xml">GCC Stormwaterpits KML</a></p>
See the <a href="../services.html">GCC GIS web services page</a> for live data access.
</div>
<h2>Details</h2>
Expand Down

0 comments on commit 98ababb

Please sign in to comment.