[Geoserver-users] adde feature (WFS-T insert) with opelayers by using an html Fom

I everyone, I wrote you cause I need help. I am dealing with geoserver and openlayers a few days ago througth a MySql spatial database. About WFS-T there’s an openlayers example that show in some way how to do so. But me I don’t want to draw the feature. what I want is put data in an html form (by ex latitude, longitude) and then when I click on ok button just call a method that will create the feature and do the WFS-T insert. I found nothing on the net that hadle that! If anyone can help me? Regards! Bernony


View this message in context: adde feature (WFS-T insert) with opelayers by using an html Fom
Sent from the GeoServer - User mailing list archive at Nabble.com.

If you can't find a prebuilt library to your purpose, you could use a simple CGI script or servlet to intermediate. You could pass the information as key-value pairs directly from the form and use your choice of language to build it into a proper WFS-T message.

Otherwise, you might want to look at Community MapBuilder. One of their WFS-T examples offers functionality something like what you are describing.

---
A. Soroka / Digital Scholarship Services R & D
the University of Virginia Library

On Oct 30, 2008, at 1:12 PM, berno wrote:

I everyone, I wrote you cause I need help. I am dealing with geoserver and openlayers a few days ago througth a MySql spatial database. About WFS-T there's an openlayers example that show in some way how to do so. But me I don't want to draw the feature. what I want is put data in an html form (by ex latitude, longitude) and then when I click on ok button just call a method that will create the feature and do the WFS-T insert. I found nothing on the net that hadle that! If anyone can help me? Regards! Bernony
View this message in context: adde feature (WFS-T insert) with opelayers by using an html Fom
Sent from the GeoServer - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,

I am trying doing request WFS Transaction, but a have a problem. Why?

The request:

http://localhost:8080/geoserver/wfs?SERVICE=WFS

&REQUEST=LockFeature

&typeName=topp:states

&FEATUREID=states.16

The response:

<ows:ExceptionReport version=“1.0.0” xsi:schemaLocation=“http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd”>

<ows:Exception exceptionCode=“NoApplicableCode”>

ows:ExceptionText

A LockFeature request must contain at least one LOCK element

</ows:ExceptionText>

</ows:Exception>

</ows:ExceptionReport>

I don’t have finding examples for WFS-T requests.

Best Regards,

Fernando Quadro

GeoServer-BR


Date: Thu, 30 Oct 2008 10:12:01 -0700
From: bernonyjoseph@anonymised.com
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] adde feature (WFS-T insert) with opelayers by using an html Fom

I everyone, I wrote you cause I need help. I am dealing with geoserver and openlayers a few days ago througth a MySql spatial database. About WFS-T there’s an openlayers example that show in some way how to do so. But me I don’t want to draw the feature. what I want is put data in an html form (by ex latitude, longitude) and then when I click on ok button just call a method that will create the feature and do the WFS-T insert. I found nothing on the net that hadle that! If anyone can help me? Regards! Bernony


View this message in context: adde feature (WFS-T insert) with opelayers by using an html Fom
Sent from the GeoServer - User mailing list archive at Nabble.com.


Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! Experimente já!

Hi Bernony,

You will get a better answer to this query on the openlayers users list. But this is definitely something that should be pretty easy to do with openlayers.

You should be able to set up a regular wfs-t layer in openlayers as you usually would. And then instead of using the edit tools to create new features, you can do it manually based on the inputs of your form.

I don't know the code for creating a feature manually in this way but again but the folks on the openlayers list will.

-Justin

berno wrote:

I everyone, I wrote you cause I need help. I am dealing with geoserver and openlayers a few days ago througth a MySql spatial database. About WFS-T there's an openlayers example that show in some way how to do so. But me I don't want to draw the feature. what I want is put data in an html form (by ex latitude, longitude) and then when I click on ok button just call a method that will create the feature and do the WFS-T insert. I found nothing on the net that hadle that! If anyone can help me? Regards! Bernony
------------------------------------------------------------------------
View this message in context: adde feature (WFS-T insert) with opelayers by using an html Fom <http://www.nabble.com/adde-feature-(WFS-T-insert)-with-opelayers-by-using-an-html-Fom-tp20251287p20251287.html&gt;
Sent from the GeoServer - User mailing list archive <http://www.nabble.com/GeoServer---User-f1194.html&gt; at Nabble.com.

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi Fernando,

I believe you have found a bug. Usually lock requests are performed via a POST request, however its 100% according to the spec to do them by GET requests.

Filing a jira for this issue.

http://jira.codehaus.org/browse/GEOS-2337

Thanks for the bug report :slight_smile:

-Justin

Fernando Quadro wrote:

Hi,

I am trying doing request WFS Transaction, but a have a problem. Why?

The request:

http://localhost:8080/geoserver/wfs?SERVICE=WFS

&REQUEST=LockFeature

&typeName=topp:states

&FEATUREID=states.16

The response:

<ows:ExceptionReport version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;

<ows:Exception exceptionCode="NoApplicableCode">

<ows:ExceptionText>

A LockFeature request must contain at least one LOCK element

</ows:ExceptionText>

</ows:Exception>

</ows:ExceptionReport>

I don't have finding examples for WFS-T requests.

Best Regards,

Fernando Quadro

GeoServer-BR

------------------------------------------------------------------------
Date: Thu, 30 Oct 2008 10:12:01 -0700
From: bernonyjoseph@anonymised.com
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] adde feature (WFS-T insert) with opelayers by using an html Fom

I everyone, I wrote you cause I need help. I am dealing with geoserver and openlayers a few days ago througth a MySql spatial database. About WFS-T there's an openlayers example that show in some way how to do so. But me I don't want to draw the feature. what I want is put data in an html form (by ex latitude, longitude) and then when I click on ok button just call a method that will create the feature and do the WFS-T insert. I found nothing on the net that hadle that! If anyone can help me? Regards! Bernony
------------------------------------------------------------------------
View this message in context: adde feature (WFS-T insert) with opelayers by using an html Fom
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------
Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! Experimente já! <http://www.livemaps.com.br/index.aspx?tr=true&gt;

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi Justin
Thanks for your help.
I've just found how to do so. The fact is in Geooserver there's a page with
many examples of wfs-T queries and it is possible to get the javascript
code. I just have to create manually the query and post it with a submit
form.

Bernony

Justin Deoliveira-6 wrote:

Hi Bernony,

You will get a better answer to this query on the openlayers users list.
But this is definitely something that should be pretty easy to do with
openlayers.

You should be able to set up a regular wfs-t layer in openlayers as you
usually would. And then instead of using the edit tools to create new
features, you can do it manually based on the inputs of your form.

I don't know the code for creating a feature manually in this way but
again but the folks on the openlayers list will.

-Justin

berno wrote:

I everyone, I wrote you cause I need help. I am dealing with geoserver
and openlayers a few days ago througth a MySql spatial database. About
WFS-T there's an openlayers example that show in some way how to do so.
But me I don't want to draw the feature. what I want is put data in an
html form (by ex latitude, longitude) and then when I click on ok button
just call a method that will create the feature and do the WFS-T insert.
I found nothing on the net that hadle that! If anyone can help me?
Regards! Bernony
------------------------------------------------------------------------
View this message in context: adde feature (WFS-T insert) with opelayers
by using an html Fom
<http://www.nabble.com/adde-feature-(WFS-T-insert)-with-opelayers-by-using-an-html-Fom-tp20251287p20251287.html&gt;
Sent from the GeoServer - User mailing list archive
<http://www.nabble.com/GeoServer---User-f1194.html&gt; at Nabble.com.

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/adde-feature-(WFS-T-insert)-with-opelayers-by-using-an-html-Fom-tp20251287p20299128.html
Sent from the GeoServer - User mailing list archive at Nabble.com.