from django.conf.urls.defaults import patterns, url from ga_ows.views.wfs import WFS, GeoDjangoWFSAdapter from ga_ows.models import test_models as m # # This file maps views to actual URL endpoints. # urlpatterns = patterns('', url(r'^tests/wfs/?', WFS.as_view( models=[m.WFSPointTest, m.WFSLineStringTest], title='GeoDjango WFS Test', keywords=['some','keywords'], fees='one dollar', provider_name='RENCI', addr_street='100 Europa Dr. ste 529', addr_city='Chapel Hill', addr_admin_area='NC', addr_postcode='27515', addr_country='USA', addr_email='*****@*****.**' )) )
class TiledNormalsView(TiledGeoJSONLayerView): model = Normals properties = Normals._meta.get_all_field_names() urlpatterns = patterns( '', # admin interface url(r'^admin/', include(admin.site.urls)), # Main page url(r'^$', 'mn_climate.views.index', name='index'), # OGC WFS url(r'^wfs', WFS.as_view( models=[Impact, CountyCount, ZipCount, StormEvents, Normals]), name='wfs'), # kml export url(r'^impacts.kml$', "mn_climate.views.kml", name="kml"), # GeoJSON services url(r'^impacts', "mn_climate.views.impacts", name='impacts'), url(r'^counts', "mn_climate.views.counts", name='counts'), url(r'^add_impact/$', 'mn_climate.views.add_impact', name="add_impact"), url(r'^storm_events/$', StormEventsView.as_view(), name="storm_events"), url(r'^normals/$', NormalsView.as_view(), name='normals'), # Tiled GeoJSON services url(r'^impacts/(\d+)/(\d+)/(\d+).geojson$', TiledGeoJSONLayerView.as_view(),
from ga_ows.views.wfs import WFS from vgimap.services.wfs import TwitterWFSAdapter,UshahidiWFSAdapter from vgimap.services import models as m from django.views.generic.simple import direct_to_template # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'vgimap.views.home', name='home'), # url(r'^vgimap/', include('vgimap.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^$', direct_to_template, { 'template': 'index.html',}), url(r'^admin/', include(admin.site.urls)), url(r'^wfs/?', WFS.as_view( models=[m.Event, m.UshahidiReport, m.TwitterTweet, m.TwitterPlace], # everything but this is optional. )), url(r'^twitter_wfs/?', WFS.as_view(adapter=TwitterWFSAdapter())), url(r'^ushahidi_wfs/?', WFS.as_view(adapter=UshahidiWFSAdapter())), #url(r'^search/', include('haystack.urls')), url(r'^search/','vgimap.services.views.search'), url(r'^opensearch/','vgimap.services.views.opensearch', name="opensearch") )
properties = Normals._meta.get_all_field_names() # Normals view (tiled geojson) class TiledNormalsView(TiledGeoJSONLayerView): model=Normals properties = Normals._meta.get_all_field_names() urlpatterns = patterns('', # admin interface url(r'^admin/', include(admin.site.urls)), # Main page url(r'^$', 'mn_climate.views.index', name='index'), # OGC WFS url(r'^wfs', WFS.as_view(models=[Impact, CountyCount, ZipCount, StormEvents, Normals]), name='wfs'), # kml export url(r'^impacts.kml$', "mn_climate.views.kml", name="kml"), # GeoJSON services url(r'^impacts', "mn_climate.views.impacts", name='impacts'), url(r'^counts', "mn_climate.views.counts", name='counts'), url(r'^add_impact/$', 'mn_climate.views.add_impact', name="add_impact"), url(r'^storm_events/$', StormEventsView.as_view(), name="storm_events"), url(r'^normals/$', NormalsView.as_view(), name='normals'), # Tiled GeoJSON services url(r'^impacts/(\d+)/(\d+)/(\d+).geojson$', TiledGeoJSONLayerView.as_view(), name="tiled_impacts"), url(r'^storm_events/(\d+)/(\d+)/(\d+).geojson$',