[Geoserver-users] ServiceException - could not find layer

2012-10-20 Thread Allan Oware
Hi all, My GeoServer 2.1 installation is serving up wms layers from a postgis 1.4 store, the trouble is that I keep getting pink tiles when pulling the layers to a website using openlayers. The error report is as below: Could not find layer geoserver:schools The above layer is obviousl

Re: [Geoserver-users] ServiceException - could not find layer

2012-10-20 Thread Chris Holmes
Do you have a primary key defined on your layers? I _think_ that error is it trying to find an alternate primary key. You can define that table if you're using views (that can't have a primary key). But if you're just serving normal layers then defining a primary key should work best. Also PostGI

Re: [Geoserver-users] ServiceException - could not find layer

2012-10-20 Thread Allan Oware
Hi Chris, I used shp2pgsql to import the layer shapefile to the database, hence primary key is defined for the layer table as implicit index and implicit sequence are created. Thanks for the tip, i'll try to find out what's wrong with the table/data since that's where the errors crop up. On Sat,

Re: [Geoserver-users] ServiceException - could not find layer

2012-10-20 Thread Chris Holmes
Huh. Yeah, shp2pgsql should make it all properly. Other layers imported the same way work fine? It's just that layer that messes up? Does serving the shapefile by itself from GeoServer work? On Sat, Oct 20, 2012 at 11:01 AM, Allan Oware wrote: > Hi Chris, > > I used shp2pgsql to import the lay

Re: [Geoserver-users] ServiceException - could not find layer

2012-10-20 Thread Otto Krauth
Hi, Is there a way to assign a Workspace to a Group Layer using the REST API. I am using Curl and I can create a group layer with no issues but the group layer gets a blank workspace. I would like to assign a workspace to it. Any ideas? Thanks, Otto Krauth -