Hello All!
I first installed Geoserver a week ago to set up a WFS and WMS. Just by following the tutorials and examples in the wiki I’ve gotten both working. However, there are a couple of things I couldn’t figure out.
Some of the stuff I would like to do in Geoserver has a lot of repetition (I want to add many, almost identical, PostGIS views), are there some text files somewhere I could edit rather than repeatedly creating new FeatureTypes?
I need to limit the operations of the WFS to “Query”. Searching through the mail archives, I came across a thread that mentioned this could be done using version 1.6. I tried installing 1.6.0-RC1 but I didn’t see any way to limit the operations of WFS.
Thanks in advance for your advice!
Regards,
Richard
Simms,Richard [Burlington] ha scritto:
Hello All!
I first installed Geoserver a week ago to set up a WFS and WMS. Just by following the tutorials and examples in the wiki I've gotten both working. However, there are a couple of things I couldn't figure out.
Some of the stuff I would like to do in Geoserver has a lot of repetition (I want to add many, almost identical, PostGIS views), are there some text files somewhere I could edit rather than repeatedly creating new FeatureTypes?
Hem... you would have to go into the data dir and alter catalog.xml
each time you add a new datastore, and add a new featureTypes/myFeatureType/info.xml file for each feature type.
Both files contents are undocumented, but not hard to figure out.
And oh, they are subject to change too (thought this does not happen
often).
I need to limit the operations of the WFS to "Query". Searching through the mail archives, I came across a thread that mentioned this could be done using version 1.6. I tried installing 1.6.0-RC1 but I didn't see any way to limit the operations of WFS.
Hum, a WFS client cannot work if you don't provide capabilities
and describefeaturetype too. I guess you want to disable transactions
and locking, right? If so, you don't need 1.6, you just go to the
WFS service configuration and ask for WFS Basic, that is, the WFS
profile that is read only. That should do it (double check to be sure).
Cheers
Andrea
On Nov 27, 2007 7:12 AM, Simms,Richard [Burlington]
<Richard.Simms@anonymised.com> wrote:
Some of the stuff I would like to do in Geoserver has a lot of repetition (I
want to add many, almost identical, PostGIS views), are there some text
files somewhere I could edit rather than repeatedly creating new
FeatureTypes?
Maybe this could be achieved with a cleverly crafted SLD? if you
describe what you'd like to achieve in detail, someone here on the
list could be able to help.
Alex
I think I will be fine with doing it manually. But a more automated way
would be easier to maintain.
This is what has been asked of me: We have a PostGIS database with a
couple thousand entries, each representing monitoring stations around
the world.
The WFS should respond to calls like these two
?service=WFS&version=1.0.0&request=GetFeature&typename=Argentina
?service=WFS&version=1.0.0&request=GetFeature&typename=Canada
E.g. when the typename is a country, return all stations in that
country.
The WFS should also list all the countries when GetCapabilities is
called.
My current plan is to spend a couple hours up front. Create views in
Postgres, one view for each country, and then add these views as
FeatureTypes.
Richard
-----Original Message-----
From: Alexander Petkov [mailto:greenkov@anonymised.com]
Sent: November 27, 2007 10:52 AM
To: Simms,Richard [Burlington]
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] 2 newbie questions
On Nov 27, 2007 7:12 AM, Simms,Richard [Burlington]
<Richard.Simms@anonymised.com> wrote:
Some of the stuff I would like to do in Geoserver has a lot of
repetition (I want to add many, almost identical, PostGIS views), are
there some text files somewhere I could edit rather than repeatedly
creating new FeatureTypes?
Maybe this could be achieved with a cleverly crafted SLD? if you
describe what you'd like to achieve in detail, someone here on the list
could be able to help.
Alex
Richard,
You may be able to take advantage of Common Query Language (CQL) filters in
your WFS request. I've been using them to filter WMS requests to a postgis
database, and I would assume they work on WFS requests also.
See: http://docs.codehaus.org/display/GEOSDOC/07-Filtering+Data
- Tyler
Simms,Richard [Burlington] wrote:
I think I will be fine with doing it manually. But a more automated way
would be easier to maintain.
This is what has been asked of me: We have a PostGIS database with a
couple thousand entries, each representing monitoring stations around
the world.
The WFS should respond to calls like these two
?service=WFS&version=1.0.0&request=GetFeature&typename=Argentina
?service=WFS&version=1.0.0&request=GetFeature&typename=Canada
E.g. when the typename is a country, return all stations in that
country.
The WFS should also list all the countries when GetCapabilities is
called.
My current plan is to spend a couple hours up front. Create views in
Postgres, one view for each country, and then add these views as
FeatureTypes.
Richard
-----Original Message-----
From: Alexander Petkov [mailto:greenkov@anonymised.com]
Sent: November 27, 2007 10:52 AM
To: Simms,Richard [Burlington]
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] 2 newbie questions
On Nov 27, 2007 7:12 AM, Simms,Richard [Burlington]
<Richard.Simms@anonymised.com> wrote:
Some of the stuff I would like to do in Geoserver has a lot of
repetition (I want to add many, almost identical, PostGIS views), are
there some text files somewhere I could edit rather than repeatedly
creating new FeatureTypes?
Maybe this could be achieved with a cleverly crafted SLD? if you
describe what you'd like to achieve in detail, someone here on the list
could be able to help.
Alex
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://www.nabble.com/2-newbie-questions-tf4882003.html#a13974496
Sent from the GeoServer - User mailing list archive at Nabble.com.
Simms,Richard [Burlington] ha scritto:
I think I will be fine with doing it manually. But a more automated way
would be easier to maintain.
Eh, sorry we don't have a better answer. We keep on delaying the implementation of this feature to the new GeoServer UI... which does
not seem to be coming anytime soon (lack of resources to undergo
the UI rewrite).
This is what has been asked of me: We have a PostGIS database with a
couple thousand entries, each representing monitoring stations around
the world.
The WFS should respond to calls like these two
?service=WFS&version=1.0.0&request=GetFeature&typename=Argentina
?service=WFS&version=1.0.0&request=GetFeature&typename=Canada
E.g. when the typename is a country, return all stations in that
country.
Ugh, not very nice. Are you sure you cannot get away by having
the client use an OGC filter intestead? Something like the
following (which I encoded as a CQL filter instead for legibility):
?service=WFS&version=1.0.0&request=GetFeature&typename=stations&cql_filter=country='Argentina'
CQL is our custom extension to wfs to allow human readable filters
but you can easily create an OGC filter instead.
Cheers
Andrea