benoitdm-oslandia / pg_featureserv

Apache License 2.0
1 stars 0 forks source link

POST request not functioning as expected. #166

Closed jacobpascalcoblentz closed 1 year ago

jacobpascalcoblentz commented 1 year ago

Creating a basic table as follows:

CREATE TABLE public.jc_test (
fid INT PRIMARY KEY NOT NULL,
geom GEOMETRY(POINT, 4326)
);

Then running a POST request against it as:

curl --location --request POST 'http://localhost:9000/collections/public.jc_test/items' \
--header 'Content-Type: application/json' \
--data-raw '{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -75.849253579389796, 47.6434349837781 ] } , "properties": { "fid": "1" }}'

returns this error:

Screen Shot 2023-02-10 at 12 00 59 PM
benoitdm-oslandia commented 1 year ago

Closed as duplicate of #160

azarz commented 1 year ago

Fixed in #161