Hi again,

I think I got it now. I was trying to do it like in this example:
http://docs.geoserver.org/stable/en/user/restconfig/rest-config-examples/rest-config-examples-curl.html#adding-a-postgis-table

"<featureType><name>layername</name></featureType>" does not work, but 
"<featureType><name>layername</name><enabled>true</enabled></featureType>" 
seems to be the minimal information it needs to work.

Best Regards,
Mirko


On 31.05.2011 12:17, Mirko Bothe wrote:
> Hello list,
>
> I am trying to create a feature type using the Rest Api (Geoserver 2.1)
> from an existing table in Sql Server 2008. I get an error message in the
> logs saying: Resource named 'layername' already exists in store:
> 'SQL_Server'.
>
> Is there some kind of option that I need to set to use the existing
> table or is it simply not possible to create a featuretype/layer from
> existing tables?
>
> Does anyone have a working example where this is working?
>
> Best Regards,
> Mirko
>
>
>
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to