Hi Dukie,
I should also mention that it still can work without the fixes, you just
need to be a bit more verbose about what you send to the server:
Rather then just:
<featureType>
<name>boundary</name>
</featureType>
If you include more info:
<featureType>
<name>boundary</name>
<nativeName>boundary</nativeName>
<enabled>true</enabled>
<srs>EPSG:XXXX</srs>
<latLonBoundingBox> <!-- replace with whatever you want lat lon
bounds to be -->
<minx>-180</minx>
<miny>-90</miny>
<maxx>180</maxx>
<maxy>90</maxy>
</latLonBoundingBox>
<metadataLinks/>
</featureType>
It should work.
-Justin
dukie wrote:
> Good to see that RESTconfig is officially released with GS 1.7.3.
> It's been quite a wait for me since I last touched it in early January.
>
> I am going to post some test results, and hope to get some further
> clarifications.
>
> Test 1. Adding a PostGIS table as a new layer
>
> I have a postGIS database, and some tables are already loaded.
>
> When issuing the following command
>
> curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d
> '<featureType><name>boundary</name></featureType>'
> http://localhost:8080/geoserver/rest/workspaces/dugway/datastores/dugway/featuretypes
>
> I got this response
>
> * About to connect() to localhost port 8080
> * Trying 127.0.0.1... connected
> * Connected to localhost (127.0.0.1) port 8080
> * Server auth using Basic with user 'admin'
>> POST /geoserver/rest/workspaces/dugway/datastores/dugway/featuretypes
>> HTTP/1.1
>> Authorization: Basic YWRtaxxW46emdlbxxxxxx=
>> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5
>> OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
>> Host: localhost:8080
>> Accept: */*
>> Content-type: text/xml
>> Content-Length: 48
>>
>> <featureType><name>boundary</name></featureType>HTTP/1.1 500 Internal
>> Server Error
> < Server: Apache-Coyote/1.1
> < Transfer-Encoding: chunked
> < Date: Tue, 17 Mar 2009 16:16:46 GMT
> < Connection: close
> * Closing connection #0
> :SQL Error building FeatureType for null ERROR: relation "public.null" does
> not exist
>
> It seems to me the the FeatureType name "boundary" is not properly parsed.
> becauset the table should be "public.boundary"
>
> Something I did wrong ?
>
> Dukie
>
> Raleigh, NC
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel