diff --git a/django_project/core/settings/project.py b/django_project/core/settings/project.py index 44a08cd..f8a2fab 100644 --- a/django_project/core/settings/project.py +++ b/django_project/core/settings/project.py @@ -9,14 +9,14 @@ GEOSERVER_PUBLIC_LOCATION = os.environ.get( os.environ.get('SITEURL') + 'api/geoserver/' ) -GEOSERVER_DEV_URL = 'http://136.243.4.93:8080/geoserver/' - # dynamic setting based on domain GEOSERVER_BASE_URL = os.environ.get( 'GEOSERVER_BASE_URL', 'http://0.0.0.0:8080/geoserver/' ) # change this to geoserver container location +GEOSERVER_DEV_URL = GEOSERVER_BASE_URL + GEOSERVER_LOCATION = os.environ.get( 'GEOSERVER_LOCATION', 'http://geoserver:8080/geoserver/' @@ -101,4 +101,4 @@ SOCIAL_ORIGINS = [{ "css_class": "gp" }] -WCS_DOWNLOADED_RATIO_SIZE = 1 \ No newline at end of file +WCS_DOWNLOADED_RATIO_SIZE = 1 diff --git a/django_project/core/templates/clip-and-ship/clip-page.html b/django_project/core/templates/clip-and-ship/clip-page.html index 1325222..24cc19b 100644 --- a/django_project/core/templates/clip-and-ship/clip-page.html +++ b/django_project/core/templates/clip-and-ship/clip-page.html @@ -6,9 +6,9 @@ {% block title %}{{ block.super }}{% endblock %} {% block page-title %} -{% if geotiffname == 'ortho_images' %} +{% if geotiffname == 'ortho_images_pyramid' %} Ortho Photos -{% elif geotiffname == 'lidar' %} +{% elif geotiffname == 'lidar_dem_mosaic' %} {% trans "DSM" %} {% endif %} {% endblock %} @@ -19,7 +19,7 @@
- {% if geotiffname == 'ortho_images' %} + {% if geotiffname == 'ortho_images_pyramid' %}

Les orthophotographies ou orthoimages sont des images aériennes ou satellitales de la surface terrestre rectifiées géométriquement et égalisées radiométriquement. Ces images se présentant sous forme de dalles couvrant une zone de la Terre peuvent être géoréférencées dans n'importe quel système de coordonnées. Elles servent de fonds cartographiques dans les Systèmes d'information géographique.

{% else %}

Un Modèle Numérique de Terrain (MNT) est une représentation 3D de la surface d'un terrain ou d'une planète, créée à partir des données d'altitude du terrain."

diff --git a/django_project/core/templates/site_base.html b/django_project/core/templates/site_base.html index c0c37b1..af4a518 100644 --- a/django_project/core/templates/site_base.html +++ b/django_project/core/templates/site_base.html @@ -79,8 +79,8 @@
  • diff --git a/django_project/core/urls.py b/django_project/core/urls.py index 192d2d7..82cded1 100644 --- a/django_project/core/urls.py +++ b/django_project/core/urls.py @@ -1,5 +1,6 @@ from django.contrib import admin from geonode.sitemap import LayerSitemap, MapSitemap +from django.views.generic.base import RedirectView import autocomplete_light @@ -25,13 +26,14 @@ urlpatterns = patterns( '', url(r'^/?$', TemplateView.as_view(template_name='site_index.html'), name='home'), url(r'^layers/(?P[^/]*)/thumbnail$', layer_thumbnail, name='layer_thumbnail2'), + (r'^maps/\[object Object\]/geoserver/wms$', RedirectView.as_view(url='/geoserver/wms',query_string=True)), url(r'^', include('geonode.urls')), url(r'', include(api_ext.urls)), url(r'^chart/', include('charts_app.urls')), url(r'^table/', include('wfs_harvest.urls')), url(r'^clip/', include('clip-and-ship.urls')), url(r'^contact/$', TemplateView.as_view(template_name='contact.html'), name='contact'), - url(r'^tutorials/$', TemplateView.as_view(template_name='tutorials.html'), name='tutorials'), + url(r'^tutorials/$', TemplateView.as_view(template_name='tutorials.html'), name='tutorials'), ) urlpatterns += patterns( '',