At the moment I have a process where the user can select some options,
these are sent to the server and they combined with Geoserver create a
user specific WMS layer. This process includes a .NET proceedure which
add the new layer to an existing datastore. But, if the user then
changes the options they selected I need to delete the existing layer
and re run the .NET proceedure to make a new WMS layer in it place,
hence needing to be able to use cURL to delete it.
It sounds from what you are saying though that this is impossible, and I
need to delete both the datastore and the layer to achieve this. Is
this correct, as I have already expierienced problems creating a
datastore (for SQL 2008) using cURL?
Any questions please feel free to ask!
Thanks
Chris
From: David Winslow [mailto:[email protected]]
Sent: 22 September 2010 13:34
To: Piero Campa
Cc: [email protected]
Subject: Re: [Geoserver-users] Delete Layer Using cURL
Adding a store without auto-publishing layers can be accomplished by
adding "?configure=none" to the end of the request URL:
If you want to configure a new layer that publishes an existing
featuretype or coverage, you can just create an XML document from
scratch (using an existing layer as a template is usually the way I go).
The XML document includes the name of the dataset to be published.
Hope this helps.
--
David Winslow
OpenGeo - http://opengeo.org/
On Wed, Sep 22, 2010 at 7:59 AM, Piero Campa <[email protected]>
wrote:
Maybe because you want to add a new DataStore which indeed already
exists,
since you deleted the published Layer only (and not the DataStore
entirely).
I don't know how to just publish a Layer from a DataStore via REST (when
you
add a DataStore, the Layer is automatically published), that's way I
used to
remove the DataStore.
I would be glad to know if there is a way to publish a Layer from a
Store in
REST, too.
Piero
Jones, Christopher wrote:
>
>
>
>
> Hi,
>
> Actually, with some further testing, it does remove the layer, but
when
> I go to add it back again after it responds
>
> Resource named '<LayerName>.' already exists in store: '<StoreName>'
>
> The problems resolves itself if I stop start geoserver, but this
> wouldn't exactly be ideal in an "production" or "live" environment!
>
> Any ideas?
>
> Thanks again
>
> Chris
>
>
> -----Original Message-----
> From: Piero Campa [mailto:[email protected]]
> Sent: 22 September 2010 11:39
> To: [email protected]
> Subject: Re: [Geoserver-users] Delete Layer Using cURL
>
>
> Hi,
> well to just delete the published layer you can do like this:
> curl -u admin:password -v -XDELETE
> http://<IP>:<PORT>/geoserver/rest/layers/<LayerName>
>
> If you want to remove the store from which you published the layer,
then
> call:
> curl -u admin:password -v -XDELETE
>
http://<IP>:<PORT>/geoserver/rest/workspaces/<workspace>/coveragestores/
> <LayerName>/coverages/<LayerName>
> curl -u admin:password -v -XDELETE
>
http://<IP>:<PORT>/geoserver/rest/workspaces/<workspace>/coveragestores/
> <LayerName>
>
> Does it work?
> Piero
>
> Jones, Christopher wrote:
>>
>>
>>
>>
>> Hi All,
>>
>>
>>
>> Does any one happen to know the syntax to delete a custom layer using
>> cURL?
>>
>>
>>
>> Thanks in advance
>>
>>
>>
>> Chris
>>
>>
>>
>> IMPORTANT - This email and the information that it contains may be
>> confidential, legally privileged and protected by law. Access by the
>> intended recipient only is authorised. Any liability (in negligence
or
>> otherwise) arising from any third party acting, or refraining from
> acting,
>> on any information contained in this email is hereby excluded. If you
> are
>> not the intended recipient, please notify
> [email protected]
>> immediately then delete it and do not disclose the contents to any
> other
>> person, use it for any purpose or store or copy the information in
any
>> medium.
>>
>> Copyright in this email and attachments created by us belong to Amlin
> plc
>> and/or one or more of its subsidiaries (Amlin Group). The author also
>> asserts the right to be identified as such and object to any misuse.
>>
>> The Amlin Group prohibits and takes steps to prevent its email
systems
>> from being used to view, store or transmit offensive, obscene or
>> discriminatory material. If this message contains inappropriate
> material
>> please report it immediately to [email protected].
>>
>> The Amlin Group records, monitors and may inspect messages that use
> its
>> telecoms systems in order to protect its information, interests and
>> reputation. Any message sent by you to or within the Amlin Group may
>> therefore be viewed and may be acted upon.
>>
>> Of the companies within the Amlin Group, Amlin Underwriting Limited,
> Amlin
>> Underwriting Services Limited, Amlin UK Limited and Amlin Plus
Limited
> are
>> authorised and regulated by the Financial Services Authority.
>>
>> This email has been sent by a member of staff of one or more of the
>> following Amlin Group companies:
>>
>> Amlin plc. Registered in England and Wales no. 2854310
>> Amlin Underwriting Limited. Registered in England and Wales no.
> 2323018
>> Amlin Underwriting Services Limited. Registered in England and Wales
> no.
>> 422615
>> Amlin UK Limited. Registered in England and Wales no. 2739220
>> Amlin Plus Limited. Registered in England and Wales no. 4729659
>>
>> Registered Offices: St Helen's, 1 Undershaft, London EC3A 8ND, United
>> Kingdom
>>
>> Amlin plc switchboard: 020 7746 1000
>> Web Site: http://www.amlin.com
>>
>
------------------------------------------------------------------------
> ------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Delete-Layer-Using-cURL-tp29778086p29778179.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
>
------------------------------------------------------------------------
> ------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> IMPORTANT - This email and the information that it contains may be
> confidential, legally privileged and protected by law. Access by the
> intended recipient only is authorised. Any liability (in negligence or
> otherwise) arising from any third party acting, or refraining from
acting,
> on any information contained in this email is hereby excluded. If you
are
> not the intended recipient, please notify
[email protected]
> immediately then delete it and do not disclose the contents to any
other
> person, use it for any purpose or store or copy the information in any
> medium.
>
> Copyright in this email and attachments created by us belong to Amlin
plc
> and/or one or more of its subsidiaries (Amlin Group). The author also
> asserts the right to be identified as such and object to any misuse.
>
> The Amlin Group prohibits and takes steps to prevent its email systems
> from being used to view, store or transmit offensive, obscene or
> discriminatory material. If this message contains inappropriate
material
> please report it immediately to [email protected].
>
> The Amlin Group records, monitors and may inspect messages that use
its
> telecoms systems in order to protect its information, interests and
> reputation. Any message sent by you to or within the Amlin Group may
> therefore be viewed and may be acted upon.
>
> Of the companies within the Amlin Group, Amlin Underwriting Limited,
Amlin
> Underwriting Services Limited, Amlin UK Limited and Amlin Plus Limited
are
> authorised and regulated by the Financial Services Authority.
>
> This email has been sent by a member of staff of one or more of the
> following Amlin Group companies:
>
> Amlin plc. Registered in England and Wales no. 2854310
> Amlin Underwriting Limited. Registered in England and Wales no.
2323018
> Amlin Underwriting Services Limited. Registered in England and Wales
no.
> 422615
> Amlin UK Limited. Registered in England and Wales no. 2739220
> Amlin Plus Limited. Registered in England and Wales no. 4729659
>
> Registered Offices: St Helen's, 1 Undershaft, London EC3A 8ND, United
> Kingdom
>
> Amlin plc switchboard: 020 7746 1000
> Web Site: http://www.amlin.com
>
>
------------------------------------------------------------------------
------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
View this message in context:
http://old.nabble.com/Delete-Layer-Using-cURL-tp29778086p29778746.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------
------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
IMPORTANT - This email and the information that it contains may be
confidential, legally privileged and protected by law. Access by the intended
recipient only is authorised. Any liability (in negligence or otherwise)
arising from any third party acting, or refraining from acting, on any
information contained in this email is hereby excluded. If you are not the
intended recipient, please notify [email protected] immediately
then delete it and do not disclose the contents to any other person, use it for
any purpose or store or copy the information in any medium.
Copyright in this email and attachments created by us belong to Amlin plc
and/or one or more of its subsidiaries (Amlin Group). The author also asserts
the right to be identified as such and object to any misuse.
The Amlin Group prohibits and takes steps to prevent its email systems from
being used to view, store or transmit offensive, obscene or discriminatory
material. If this message contains inappropriate material please report it
immediately to [email protected].
The Amlin Group records, monitors and may inspect messages that use its
telecoms systems in order to protect its information, interests and reputation.
Any message sent by you to or within the Amlin Group may therefore be viewed
and may be acted upon.
Of the companies within the Amlin Group, Amlin Underwriting Limited, Amlin
Underwriting Services Limited, Amlin UK Limited and Amlin Plus Limited are
authorised and regulated by the Financial Services Authority.
This email has been sent by a member of staff of one or more of the following
Amlin Group companies:
Amlin plc. Registered in England and Wales no. 2854310
Amlin Underwriting Limited. Registered in England and Wales no. 2323018
Amlin Underwriting Services Limited. Registered in England and Wales no. 422615
Amlin UK Limited. Registered in England and Wales no. 2739220
Amlin Plus Limited. Registered in England and Wales no. 4729659
Registered Offices: St Helen's, 1 Undershaft, London EC3A 8ND, United Kingdom
Amlin plc switchboard: 020 7746 1000
Web Site: http://www.amlin.com
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users