Skip to content

Commit

Permalink
Merge pull request #106 from Applied-GeoSolutions/fix_postgis_datastore
Browse files Browse the repository at this point in the history
Fixed uploading of shapefiles to spatial database
  • Loading branch information
ingenieroariel committed Apr 12, 2012
2 parents a835c00 + e1003ee commit d7e049b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GeoNodePy/geonode/maps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Geonode functionality
from geonode.maps.models import Map, Layer, MapLayer
from geonode.maps.models import Contact, ContactRole, Role, get_csw
from geonode.maps.gs_helpers import fixup_style, cascading_delete, get_sld_for
from geonode.maps.gs_helpers import fixup_style, cascading_delete, get_sld_for, delete_from_postgis

# Geoserver functionality
import geoserver
Expand Down Expand Up @@ -634,6 +634,7 @@ def _create_db_featurestore(name, data, overwrite = False, charset = None):
If the import into the database fails then delete the store
(and delete the PostGIS table for it).
"""
cat = Layer.objects.gs_catalog
try:
ds = cat.get_store(settings.DB_DATASTORE_NAME)
except FailedRequestError, e:
Expand Down

0 comments on commit d7e049b

Please sign in to comment.