{"id":890,"date":"2009-08-04T00:10:31","date_gmt":"2009-08-03T22:10:31","guid":{"rendered":"http:\/\/www.rare-it.com\/blog\/index.php\/2009\/08\/04\/geoserver-oracle-openlayerswfs-t"},"modified":"2009-08-04T00:10:31","modified_gmt":"2009-08-03T22:10:31","slug":"geoserver-oracle-openlayerswfs-t","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2009\/08\/geoserver-oracle-openlayerswfs-t\/","title":{"rendered":"Geoserver + Oracle + OpenLayers\/WFS-T"},"content":{"rendered":"<p>Dear all,<\/p>\n<p>I&#8217;ve been struggling with <a href=\"http:\/\/geoserver.org\/\">Geoserver<\/a> and Oracle as a datastore. In a webpage that uses <a href=\"http:\/\/www.openlayers.org\/\">OpenLayers<\/a>, I&#8217;m trying to use the WFS-T features. Don&#8217;t get me wrong, WFS works great. That is, the read-only part. WFS-T works great with shape files. WFS-T works great with <a href=\"http:\/\/postgis.refractions.net\/\">PostGIS<\/a>. But the same page, same WFS-server (my local Geoserver) with Oracle as a datastore just inserts empty geometry columns (NULL). When making the geometry column &#8220;NOT NULL&#8221; Geoserver and\/or OpenLayers just inserts a point with 0.0,0.0 as coordinates. Which is NOT where I clicked on the map (0.0,0.0 isn&#8217;t even close to being visible on screen).<\/p>\n<p>So, anyone got WFS-T with an Oracle datastore working? I&#8217;m using Geoserver 1.7.5 on Tomcat 6.0.something (latest as of now), OracleNG plugin, OpenLayers 2.8 (local, not the hosted version). With Firebug I can see that the GML being sent in the POST command is <em>CORRECT<\/em>, i.e. it shows the correct coordinates. Somewhere along the line these are discarded and NULL or 0,0 (depending on the column definition) is inserted.<\/p>\n<p>Change to PostGIS (with almost the same table definition, that&#8217;s the beauty of <a href=\"http:\/\/www.postgresql.org\/\">PostgreSQL<\/a>) and everything works like a charm. PostGIS + Geoserver + OpenLayers is a killer combination!<\/p>\n<p>Let the comments pour in&#8230;&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dear all, I&#8217;ve been struggling with Geoserver and Oracle as a datastore. In a webpage that uses OpenLayers, I&#8217;m trying to use the WFS-T features. Don&#8217;t get me wrong, WFS works great. That is, the read-only part. WFS-T works great with shape files. WFS-T works great with PostGIS. But the same page, same WFS-server (my <a href='https:\/\/www.switchbl8.nl\/blog\/2009\/08\/geoserver-oracle-openlayerswfs-t\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,59,70,132],"class_list":["post-890","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-geoserver","tag-gis","tag-openlayers","tag-oracle","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=890"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/890\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}