Re: [Geoserver-users] App-Schema Geometry Mapping
Ryan, did you create both workspaces/gml/namespace.xml and workspaces/gml/workspace.xml? What happens if you make a WFS 2.0.0 request? Kind regards, Ben. On 17/09/13 23:25, Ryan Moody wrote: > Hi Rudy, > > Thanks for your suggestion - unfortunately the problem still occurs! =( > > One thing I’ve noticed is that, although I’m using a GML 3.2.1 schema, > my URL request did not include the “outputFormat=gml32” setting. > > When I include this setting in my WFS request, I get the error: > > “The prefix "null" for element "null:Envelope" is not bound.” > > According to the documentation, this error means that I need to define > ‘gml’ as a secondary namespace, which I have done as described in > > http://docs.geoserver.org/stable/en/user/data/app-schema/supported-gml-versions.html#secondary-namespace-for-gml-3-2-1-required > > However, I’m still getting the same “The prefix "null" for element > "null:Envelope" is not bound.” error message. > > I should point out that my GMLAS has to be version 3.2.1. > > Any suggestions on how I can resolve this error message and get my > geometry mapping across? > > Many thanks, > > Ryan -- Ben Caradoc-Davies Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] App-Schema Geometry Mapping
Ryan, WFS 1.1.0 defaults to GML 3.1.1 output; you cannot return GML 3.2.1 content unless you use outputformat=gml32 or use WFS 2.0.0. I see you noticed this in a later email. http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html This looks like a secondary namespace problem, as you note. Also, your mapping for pk_id is invalid as gml:id cannot be an integer; they must be XML NCNames. Furthermore, just use sourceExpression if you want this to be an ordinary property. This is unrelated to the geometry problem. Kind regards, Ben. On 17/09/13 19:50, Ryan Moody wrote: > Hello, > > I’d be extremely grateful if someone could help me with a GeoServer > App-Schema issue that I’ve been battling to no avail! > > I’m attempting to use the GeoServer App-Schema extension to map the > geometry and attribution stored in a data table of a PostGIS database to > a GMLAS. > > My PostGIS data table ‘depth_area’ contains three columns: ‘pk_id’, > ‘depth_range’ and ‘geom’. I have registered the geometry column via the > AddGeometryColumn function and have confirmed that this column contains > valid geometry (polygons). > > I have defined the app-schema mapping file and GMLAS as shown below. I > have checked that both are valid in an XML Editor. > > On starting GeoServer, my workspace loads without errors. When GeoServer > is running, I make the following WFS request: > > http://localhost:8080/geoserver/MyPrefix/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=MyPrefix:DepthArea&maxFeatures=2 > > This returns me a valid response (bottom of this email), and the > depth_range values are being successfully mapped across from the PostGIS > database. However, the geometry element is empty: > > < MyPrefix:geometry/> > > Can anyone suggest where I may be going wrong, looking at my > configuration below? > > Best regards, > > Ryan > > = = = Begin App-Schema Mapping File = = = > > > > http://www.geotools.org/app-schema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://www.geotools.org/app-schema > AppSchemaDataAccess.xsd"> > > > > > > gml > > > http://www.opengis.net/gml/3.2 > > > > > > MyPrefix > > MyURI > > > > > > > > > > MyDataStore > > > > > > >dbtype > > >postgis > > > > > > > >host > > >MyHost > > > > > > > >port > > >MyPort > > > > > > > >database > > >MyDatabaseName > > > > > > > >user > > >MyUser > > > > > > > >passwd > > >MyPassword > > > > > > > >Expose primary keys > > >true > > > > > > > > > > > > > > > > MySchemaURI > > > > > > > > > > > MyDataStore > > > depth_area > > > MyPrefix:DepthArea > >
Re: [Geoserver-users] INSPIRE fields not shown using REST API
On Tue, Sep 17, 2013 at 5:36 PM, Tim Vander Borght wrote: > Hi, > > Can anyone help me with the problem below? > I've posted this question twice before, but did not receive an answer yet. > > I have installed GeoServer 2.3.5 and the INSPIRE plugin of that version. > The extra INSPIRE fields are visible in the WMS and WFS settings pages and > the extra information is also added to the WMS and WFS capabilities. > However, I don't see this INSPIRE related information when requesting the > WMS and WFS settings using REST: > http://localhost:8080/geoserver/rest/services/wms/settings.xml and > http://localhost:8080/geoserver/rest/services/wfs/settings.xml. > Any idea why the REST API doesn't show this information? > I suppose the inspire stuff ,being an extension, is stored in the metadata map, it may be that the xstream mappings for REST do not include the metadata map? Sorry, can't check further now. Cheers Andrea -- == Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it --- -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] INSPIRE fields not shown using REST API
Hi, Can anyone help me with the problem below? I've posted this question twice before, but did not receive an answer yet. I have installed GeoServer 2.3.5 and the INSPIRE plugin of that version. The extra INSPIRE fields are visible in the WMS and WFS settings pages and the extra information is also added to the WMS and WFS capabilities. However, I don't see this INSPIRE related information when requesting the WMS and WFS settings using REST: http://localhost:8080/geoserver/rest/services/wms/settings.xml and http://localhost:8080/geoserver/rest/services/wfs/settings.xml. Any idea why the REST API doesn't show this information? Best regards, Tim. -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] GWC, Layer Groups, TIME dimension
I have several related layers, each with a TIME dimension, for which I currently cache tiles with GWC with each TIME dimension having a separate cache in GWC. I want to combine those related layers in a Layer Group. The Layer Group seems to respond appropriately to a TIME parameter in the URL. However, it seems there is no way to get GWC to cache the TIME dimension separately for a layer group. Is this correct? Thanks, Mike Grogan -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] GWC, Layer Groups, TIME dimension
I will follow-up by saying: 1. There is no option in the Geoserver GUI for this. The "Parameter Filter" section is blank. The section shows up, but there is nothing there. 2. If I manually edit the gwc-layers xml config (for this layer gwc-layers/LayerGroupInfoImpl--c6eb92d_1412c1e1b5a_-2ef6.xml) and add in: TIME .* then gwc does seem to respect the TIME parameter and creates a separate cache for different TIME values. Thanks, Mike On Tue, Sep 17, 2013 at 10:49 AM, Mike Grogan wrote: > I have several related layers, each with a TIME dimension, for which I > currently cache tiles with GWC with each TIME dimension having a separate > cache in GWC. > > I want to combine those related layers in a Layer Group. > > The Layer Group seems to respond appropriately to a TIME parameter in the > URL. > > However, it seems there is no way to get GWC to cache the TIME dimension > separately for a layer group. > > Is this correct? > > Thanks, > > Mike Grogan > -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] Geoserver: Merge Raster Images with SLDs
Hello, I'm quite new to Geoserver stuf and I'm starting to learn coding in this. Now, I have a problem with this and I couldn't find the solution online. Please try to help me. Here's my problem. We have various Raster layers created by tiff images for nearly 200 sensors. The sld file changes as per the value at that particular sensor. Now, If I want to view all the layers at once, it is taking a lot of time to load. So, I have merged all those tiff images and created one big image, but now the sld input is same for all of them, by which the layers are not being displayed correctly. Thanks -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] App-Schema Geometry Mapping
Hi Rudy, Thanks for your suggestion - unfortunately the problem still occurs! =( One thing I've noticed is that, although I'm using a GML 3.2.1 schema, my URL request did not include the "outputFormat=gml32" setting. When I include this setting in my WFS request, I get the error: "The prefix "null" for element "null:Envelope" is not bound." According to the documentation, this error means that I need to define 'gml' as a secondary namespace, which I have done as described in http://docs.geoserver.org/stable/en/user/data/app-schema/supported-gml-v ersions.html#secondary-namespace-for-gml-3-2-1-required However, I'm still getting the same "The prefix "null" for element "null:Envelope" is not bound." error message. I should point out that my GMLAS has to be version 3.2.1. Any suggestions on how I can resolve this error message and get my geometry mapping across? Many thanks, Ryan From: Rudy Commenge [mailto:rudywi.de...@gmail.com] Sent: 17 September 2013 16:12 To: Ryan Moody Cc: geoserver-users@lists.sourceforge.net; Neil Kirk Subject: Re: [Geoserver-users] App-Schema Geometry Mapping In your XML Schema try to declare "geom" element with generic geometry type : 2013/9/17 Ryan Moody Hi Rudy, I've tried your suggestion previously, but unfortunately it still gives me the empty geometry element in the WFS response. Can you think of any other possible issues which may prevent the geometry being mapped across? Many thanks, Ryan From: Rudy Commenge [mailto:rudywi.de...@gmail.com] Sent: 17 September 2013 13:30 To: Ryan Moody Cc: geoserver-users@lists.sourceforge.net; Neil Kirk Subject: Re: [Geoserver-users] App-Schema Geometry Mapping Hi Ryan, Your mapping file contains : geometry geom I think you forgot the prefix for the target attribute : MyPrefix:geometry geom -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] App-Schema Geometry Mapping
In your XML Schema try to declare "geom" element with generic geometry type : 2013/9/17 Ryan Moody > Hi Rudy, > > ** ** > > I’ve tried your suggestion previously, but unfortunately it still gives me > the empty geometry element in the WFS response. > > ** ** > > Can you think of any other possible issues which may prevent the geometry > being mapped across? > > ** ** > > Many thanks, > > ** ** > > Ryan > > ** ** > > *From:* Rudy Commenge [mailto:rudywi.de...@gmail.com] > *Sent:* 17 September 2013 13:30 > *To:* Ryan Moody > *Cc:* geoserver-users@lists.sourceforge.net; Neil Kirk > *Subject:* Re: [Geoserver-users] App-Schema Geometry Mapping > > ** ** > > Hi Ryan, > > Your mapping file contains : > > >geometry > > geom > > > > I think you forgot the prefix for the target attribute : > > >MyPrefix:geometry > > geom > > > -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] App-Schema Geometry Mapping
Hi Rudy, I've tried your suggestion previously, but unfortunately it still gives me the empty geometry element in the WFS response. Can you think of any other possible issues which may prevent the geometry being mapped across? Many thanks, Ryan From: Rudy Commenge [mailto:rudywi.de...@gmail.com] Sent: 17 September 2013 13:30 To: Ryan Moody Cc: geoserver-users@lists.sourceforge.net; Neil Kirk Subject: Re: [Geoserver-users] App-Schema Geometry Mapping Hi Ryan, Your mapping file contains : geometry geom I think you forgot the prefix for the target attribute : MyPrefix:geometry geom -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] App-Schema Geometry Mapping
Hi Ryan, Your mapping file contains : geometry geom I think you forgot the prefix for the target attribute : MyPrefix:geometry geom -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver layer creation with different context path + reload
Hi Team, Any clue / pointers on how to solve this issue ? Thanks, Ravi -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-layer-creation-with-different-context-path-reload-tp5078056p5078243.html Sent from the GeoServer - User mailing list archive at Nabble.com. -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] App-Schema Geometry Mapping
Hello, I'd be extremely grateful if someone could help me with a GeoServer App-Schema issue that I've been battling to no avail! I'm attempting to use the GeoServer App-Schema extension to map the geometry and attribution stored in a data table of a PostGIS database to a GMLAS. My PostGIS data table 'depth_area' contains three columns: 'pk_id', 'depth_range' and 'geom'. I have registered the geometry column via the AddGeometryColumn function and have confirmed that this column contains valid geometry (polygons). I have defined the app-schema mapping file and GMLAS as shown below. I have checked that both are valid in an XML Editor. On starting GeoServer, my workspace loads without errors. When GeoServer is running, I make the following WFS request: http://localhost:8080/geoserver/MyPrefix/ows?service=WFS&version=1.1.0&r equest=GetFeature&typeName=MyPrefix:DepthArea&maxFeatures=2 This returns me a valid response (bottom of this email), and the depth_range values are being successfully mapped across from the PostGIS database. However, the geometry element is empty: < MyPrefix:geometry/> Can anyone suggest where I may be going wrong, looking at my configuration below? Best regards, Ryan = = = Begin App-Schema Mapping File = = = http://www.geotools.org/app-schema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd"> gml http://www.opengis.net/gml/3.2 MyPrefix MyURI MyDataStore dbtype postgis host MyHost port MyPort database MyDatabaseName user MyUser passwd MyPassword Expose primary keys true MySchemaURI MyDataStore depth_area MyPrefix:DepthArea MyPrefix:pk_id pk_id MyPrefix:depthrange depth_range geometry geom = = = End App-Schema Mapping File = = = = = = Begin GML Application Schema = = = http://www.w3.org/2001/XMLSchema"; xmlns:MyPrefix="MyURI" xmlns:gml="http://www.opengis.net/gml/3.2"; targetNamespace="MyURI" elementFormDefault="qualified"> http://www.opengis.net/gml/3.2"; schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/> = = = End GML Application Schema = = = = = = Begin WFS Request Response = = = http://www.opengis.net/wfs"; xmlns:ogc="http://www.opengis.net/ogc"; xmlns:gml="http://www.opengis.net/gml"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:MyPrefix="MyURI" xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:ows="http://www.opengis.net/ows"; numberOfFeatures="2" timeStamp="2013-09-17T11:20:53.174Z" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd MyURI MyGMLAS.xsd"> < MyPrefix:geometry/> < MyPrefix:depthrange>200.0 < MyPrefix:DepthArea gml:id="depth_area.1"> < MyPrefix:geometry/> < MyPrefix:depthrange>0.0 = = = End WFS Request Response = = = -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk___