Skip to content

Instantly share code, notes, and snippets.

from geoserver.catalog import Catalog
from geonode import settings
user, password = settings.GEOSERVER_CREDENTIALS
url = "http://localhost:8001/geoserver-geonode-dev/rest"
cat = Catalog(url, user, password)
print "Connected to GeoServer, about to get resources"
resources = cat.get_resources()
print "Got %d resources" % len(resources)
fixed =0
for resource in resources:
@ingenieroariel
ingenieroariel / excel.py
Created October 19, 2010 16:14
An example to update geonode metadata using a excel file
"""
Utilities for reading Microsoft Excel files.
"""
#requires
#pip install xlrd
import xlrd
import datetime
class ExcelDictReader(object):
@dwins
dwins / find_nulls.py
Created March 28, 2011 19:18
test geoserver config using gsconfig.py
#! /usr/bin/env python
from geoserver.catalog import Catalog
cat = Catalog('http://host/geoserver/rest', 'user', 'password')
def internal_name(s):
return s.startswith("__") and s.endswith("__")
def check(x):