[Geoserver-users] multiple FeatureType's off the same PostGIS table

yeah, clearly you could do it be defining a bunch of views, or more namespaces and data stores, but I was trying to avoid such tedious hacks.

I had tried just adding more to the STYLES= parameter, but that wasn’t working. what you’re saying is that I need to define that in the FeatureType setup as an optional style first? I will try that.

thanks,
mike

Adding them to the FeatureType shouldn't really matter, actually. Or at least it didn't before.

What didn't work about adding more to the styles parameter? Or are you wanting multiple styles at once? If so I believe you need to specify the layer name multiple times:

layers=census,census,census&styles=red,blue,green

Michael Frumin wrote:

yeah, clearly you could do it be defining a bunch of views, or more namespaces and data stores, but I was trying to avoid such tedious hacks.

I had tried just adding more to the STYLES= parameter, but that wasn't working. what you're saying is that I need to define that in the FeatureType setup as an optional style first? I will try that.

thanks,
mike

Jukka.Rahkonen@anonymised.com wrote:

Hi,

I don't know much about PostGIS, but how about making a bunch of views with unique names inside database and then FeatureTypes from those? Or does this ruin the effect of spatial index or something? I have made a simple trial with this in Oracle and it worked there.

Regards,

-Jukka Rahkonen-

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of Chris Holmes
Sent: Sat 5.5.2007 22:47
To: mfrumin
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] multiple FeatureType's off the same PostGIS table

I believe if you define a new datastore for each new featureType then
you can do it. And to get it to work properly you'll need to define
different namespaces for each datastore, so they don't conflict. If
that doesn't work then it's a bug. I realize this is less than ideal,
but it's all we've got until we're able to map a featureType to a
different name, or else you'll get conflicts.

But if you're just wanting to make different labeling options you can
just define more SLD files, and then in the FeatureType editor select
them as non-default ones. You shouldn't need to define more than one
featureType just to have them labeled differently. But the client will
need to know to request the different styles.

Chris

mfrumin wrote:
  

hi, is it possible to define multiple different FeatureType's off the same
PostGIS table? if I have a layer based on, say, census_tracts and then go
to make a New FeatureType based on the same table, it just overrides the old
one.

I want to do this because I want to have a number of different labeling
options for one data set that I can access thru WMS requests.

thanks,
mike
    
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org