This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <StyledLayerDescriptor | |
| xmlns="http://www.opengis.net/sld" | |
| xmlns:xlink="http://www.w3.org/1999/xlink" | |
| xmlns:ogc="http://www.opengis.net/ogc" | |
| version="1.0.0"> | |
| <NamedLayer> | |
| <Name>alachua:bike_stores</Name> | |
| <UserStyle> | |
| <FeatureTypeStyle> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <MaxScaleDenominator>52000000</MaxScaleDenominator> | |
| <MinScaleDenominator>800000</MinScaleDenominator> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| $('#map').map({ | |
| 'extent': [-74.255664, 40.496093,-73.700009, 40.915774], | |
| 'baselayer' : 'openstreetmap', | |
| 'feature' : { | |
| 'url' : 'http://localhost/geoserver/wfs', | |
| 'format' : 'wfs', | |
| 'name' : 'community_areas', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| arcpy.Buffer_analysis("c:/data/Portland.gdb/streets", "c:/data/Portland.gdb/steets_buffer", "500 METERS") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import glob | |
| import os | |
| shapes = glob.glob("*.shp") | |
| for shape in shapes: | |
| os.system("ogr2ogr -f \"PostgreSQL\" PG:\"host=localhost port=54321 user=awright dbname=mtparcels\" -t_srs \"EPSG:102700\" -nln broadwater %s" % shape) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns hello-world | |
| (:use compojure)) | |
| (defroutes greeter | |
| (GET "/" | |
| (html [:h1 "Hello World"]))) | |
| (run-server {:port 8080} | |
| "/*" (servlet greeter)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.Graphics2D; | |
| import java.awt.Rectangle; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.net.URL; | |
| import javax.imageio.ImageIO; | |
| import org.geotools.data.FeatureSource; | |
| import org.geotools.data.shapefile.ShapefileDataStore; | |
| import org.geotools.factory.CommonFactoryFinder; | |
| import org.geotools.geometry.jts.ReferencedEnvelope; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tokens = Token.objects.all() | |
| tokenSet = set([x.token for x in tokens]) | |
| def make_token(value): | |
| tokenInt = random.randrange(1,100000000) | |
| if tokenInt not in tokenSet: | |
| token = Token(token=tokenInt,value=value) | |
| token.save() | |
| else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/setup.py b/setup.py | |
| index f0a4673..846ccd0 100644 | |
| --- a/setup.py | |
| +++ b/setup.py | |
| @@ -22,7 +22,7 @@ setup( | |
| "setuptools", | |
| "setuptools-git", | |
| "pytz", | |
| - "Django", | |
| + "Django==1.1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/apps/webapp/templates/webapp/login.html b/apps/webapp/templates/webapp/login.html | |
| index 0465077..9942ef4 100644 | |
| --- a/apps/webapp/templates/webapp/login.html | |
| +++ b/apps/webapp/templates/webapp/login.html | |
| @@ -16,6 +16,7 @@ | |
| <form method="post" action="{% url webapp.views.login %}"> | |
| + {% csrf_token %} | |
| <table> |
OlderNewer