2009年10月21日水曜日

OpenLayers 21d FeatureServer configration ファイル

featureserver-1.12/featureserver.cfg ファイルを次の様に修正します。

# Metadata section allows you to define the default
# service type to be created, and location for error logging
[metadata]
default_service=JSON
# error_log=error.log
error_log=/home/user/workspace/openlayersTokyoproj/featureserver-1.12/trunk/error.log

# each additional section is a 'layer', which can be accessed.
# see DataSources.txt for more info on configuring.
[scribble]
type=DBM
# file=/tmp/featureserver.scribble
file=/home/user/fs_tmp/featureserver.scribble
gaping_security_hole=yes


#shapefile 1
[railroad]
type=OGR
dsn=/home/user/mapdata/tokyo/N02-08_EB02.shp
layer=N02-08_EB02

#shapefile 2
[river]
type=OGR
dsn=/home/user/mapdata/tokyo_bmi/WL.shp
layer=suigaisen

#postgis layer 1
[gyoseisen]
type=PostGIS
dsn=host=localhost dbname=tokyo_bmi user=user password=balanced
layer=gyoseisen
fid=gid
geometry=the_geom
srid=-1

#postgis layer 2
[gyoseikai]
type=PostGIS
dsn=host=localhost dbname=tokyo user=user password=balanced
layer=gyoseikai
fid=gid
geometry=the_geom
srid=-1

#open street map
[osm]
type=OSM
osmxapi=no

#flickr
[flickr]
type=Flickr
user_id=12345678@N09
#ダミーです。
#tags=newyork

#twitter
[twitter]
type=Twitter
username=anytwitteruser
#twitter のユーザID

0 件のコメント: