Hi Geoserver users,
I have one question
My web app running on localhost:8080, and geo server runs on localhost:7080.
I created layer with postgis datasource to retrieve all features. Table structure is like below:
id, map_id, geom, color, object_type
--------------------------------------------------------------------
1, 1, POINT(..), RED, POINT
2, 1, LINESTRING(..), BLUE, LINE
Can any one guide me for the below issues:
1. I am having issues with showing features with WFS, which not working from my web app may be because of cross domain.
2. I need to retrieve the features based on map_id (which is not pk in this table). How I can do it.
Br. Giri
1. I am having issues with showing features with WFS, which not working from my web app may be because of cross domain.
What are you using for client software? WFS usually goes with ajax and they will certainly give you cross-domain issues unless you implement a proxy. The openlayers library has various resources on creating proxies for different server environments.
2. I need to retrieve the features based on map_id (which is not pk in this table). How I can do it.
You can use CGL (ECQL) or OGC filters to fetch data on different attributes.
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
Hi Phil,
My web app running in tomcat server.
Br.Giri
On , Dastagiri Komali dastagirik@anonymised.com wrote:
Hi Phil ,
Thank you. I am using SPRING 3 MVC as client with JSPs as views.
Currently I setup proxy.cgi, with apache, and using OpenLayers.ProxyHost, but still I am not able to fetch features.
Br. Giri
On Monday, November 18, 2013 10:21 PM, Phil Scadden p.scadden@anonymised.com wrote:
1. I am having issues with showing features with WFS, which not working from my web app may be because of cross domain.
What are you using for client software? WFS usually goes with ajax and they will certainly give you cross-domain issues unless you implement a proxy. The openlayers library has various resources on creating proxies for different server environments.
2. I need to retrieve the features based on map_id (which is not pk in this table). How I can do it.
You can use CGL (ECQL) or OGC filters to fetch data on different attributes.
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
Geoserver-users mailing list
Geoserver-users@anonymised.coms.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Its is best to keep discussion on the list - it means you get more people looking at the problem, and answers help other people
- I want to retrieve all other columns data like ( map_id, color, object_type ) and update back when saved. How do I can doit. Please suggest.
Just construct a filter object in OL. Updating back means using WFS-T
2.I have problem with saving Polygon, and LineString, but Point is saved successfully. As soon I draw polygon on the vector layer, using draw control, i am getting bellow error " a.geometry.getBounds is not a function"? Should I use different vector layers for polygon, and linestring?
Without example of code, it is hard to say. However, at the backend, few databases like mixing geometry types in one layer so I would indeed use different layer. However, this sounds more like client end than server end so you might want to discuss this on openlayer list rather than geoserver (assuming you are using Openlayers)
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.