Ok cool. And yeah unfortunately we don't (yet) have the ability to modify
underlying database schemas through our internal geotools api. But we should
soon [1]. At which point we can drop the table first in overwrite mode in
order to recreate it with the new schema from the file being uploaded.
[1] http://jira.codehaus.org/browse/GEOT-2333
On Fri, Apr 15, 2011 at 2:06 PM, Matt Bertrand <[email protected]>wrote:
> Sorry, it was due to a typo on my part. As long as I include
> "update=overwrite" it works correctly.
>
> It seems as though the original PostGIS table structure can't be changed
> though? If I add or remove attribute fields from the shapefile, those
> changes are not reflected in the PostGIS data structure when I re-upload it.
>
>
>
>
> On 4/15/11 2:40 PM, Justin Deoliveira wrote:
>
> Hi Matt,
>
> I am not able to reproduce this one.. I just tried a few tests and
> update=overwrite behaves as it should. What client are you using? Just curl?
>
> -Justin
>
> On Fri, Apr 15, 2011 at 12:03 PM, Matt Bertrand <
> [email protected]> wrote:
>
>> If I upload a shapefile using a REST URL to replace an existing layer
>> stored in PostGIS, the shapefile features are appended to the PostGIS table,
>> rather than replacing the current features. Adding "update=overwrite" does
>> not seem to change this behavior:
>>
>>
>> http://localhost:8080/geoserver-geonode-dev/rest/workspaces/wmap/datastores/Copy1/file.shp?update=overwrite
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Benefiting from Server Virtualization: Beyond Initial Workload
>> Consolidation -- Increasing the use of server virtualization is a top
>> priority.Virtualization can reduce costs, simplify management, and improve
>> application availability and disaster protection. Learn more about
>> boosting
>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
>
> --
> Justin Deoliveira
> OpenGeo - http://opengeo.org
> Enterprise support for open source geospatial.
>
>
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users