Re: [Geoserver-users] WFS Question
On Mon, Mar 4, 2013 at 10:06 PM, Phil Scadden wrote: > Your geoserver log file shows that the srsName is 4326 but the filter is > clearly in a projected system. I would have to say that my codes for > doing this are a whole lot more complicated and part of that > complication is projecting vector selection polygons into the projection > of the native layer before doing the filter. srsName controls the output projection, not the filter > Unfortunately, this logic > is dependent on the server. Mapserver recognizes epsg in the filter; > geoserver doesnt. I found it easiest to just reproject to server epsg on > the client. > GeoServer has been recognizing epsg in the GetFeature filters for a couple of years now, we have tests running in each build checking this behavior. If you can make it misbehave please open a bug report Cheeres 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 --- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] GeoServer Catalog - WPS
On Tue, Mar 5, 2013 at 12:07 AM, Rodrigo Antonialli wrote: > Hi everyone! > > Today I was testing access to geoserver catalog in a WPS process, but I > noticed that only some of my Workspaces and DataStores are listed. > Are the stores and workspaces not listed under any security control? As it stands now WPS cannot access any secured layer, even if the user issuing the command theoretically has rigths, because of a tech issue (the authentication token is kept in a thread local in the request thread, but the process then runs in a separate thread pool and does not get to see it) 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 --- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Backing up the data dir
Jonathan, helps if you read the entire Email. Me in that case... This above mentioned data directory has only database connections. The file-based data are only few and somewhere else because their update cycle differs to the DB and styles. That is done with a similar script that runs monthly. The tiles are also in a different directory again, because there is no update rhythm. There are mostly imagery tiles and when we have new imagery I cut new tiles and then I back-up. I suppose this is how most production installations operate and why I keep these three store types separate. Depending on the size of your stores you may decide whether it is a good way to separate or not. Stuffing everything in one directory back this up and knowing that all is there has its advantages too. Cheers Christian - Dr Christian Maul Project Manager Information Services Branch Department of Sustainability and Environment Level13, Marland House, 570 Bourke Street Melbourne 3000 PO Box 500, East Melbourne Vic 3002 Telephone:+61-3-8636 2325 Telefax: +61-3-8636 2813 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Backing-up-the-data-dir-tp5038246p5038401.html Sent from the GeoServer - User mailing list archive at Nabble.com. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] GeoServer Catalog - WPS
Hi everyone! Today I was testing access to geoserver catalog in a WPS process, but I noticed that only some of my Workspaces and DataStores are listed. My tests are based on the ImportProcess class and using geoserver UI, I created 4 WS and 4 DS: Workspaces: 1- common 2- mm_50 3- mm_100 4- mm_250 Stores: A- MovMassas_1_5 - defined with workspace mm_50 B- MovMassas_1_10 - defined with workspace C- MovMassas_1_25 - defined with workspace D- IBGE - defined with workspace The process bellow just prints information about Workspaces 1, 3 and 4... and about Stores B and C. Stores A, B, C are PostGIS stores, and D is a WMS store. I can't find a reason why this is happening, once they are defined the same way, just changing names, and with the PostGIS stores, changing database schema too... I have only one layer published from store A, which is secured for some ROLES. There is another layer published from Store D, which is public. Why just some of my ws and stores are visible when I access the catalog inside the WPS? If needed, I can share the ws ans stores definitions. Here is the WPS code: *package br.rc.unesp.process;* * * *import org.geoserver.catalog.Catalog;* *import org.geoserver.catalog.DataStoreInfo;* *import org.geoserver.catalog.WorkspaceInfo;* *import org.geotools.process.ProcessException;* *import org.geotools.process.factory.DescribeProcess;* *import org.geotools.process.factory.DescribeResult;* *import org.geotools.process.gs.GSProcess;* * * *@DescribeProcess(title = "MyTest", description = "MyTest test")* *public class MyTestProcess implements GSProcess {* * * * * * private Catalog catalog;* * * *public MyTestProcess(Catalog catalog) {* *this.catalog = catalog;* *}* * * *@DescribeResult(name = "result", description = "Return the infos")* * public String execute() throws ProcessException{* ** *StringBuilder strBuilder = new StringBuilder();* * * ** *strBuilder.append("Workspaces:");* *strBuilder.append("\n");* *strBuilder.append("");* *strBuilder.append("\n");* ** *for(WorkspaceInfo wsi : catalog.getWorkspaces()){* ** *strBuilder.append("ID: " + wsi.getId());* *strBuilder.append("\n");* *strBuilder.append("NAME: " + wsi.getName());* *strBuilder.append("\n\r");* * * *}* * * *strBuilder.append("DataStores:");* *strBuilder.append("\n");* *strBuilder.append("");* *strBuilder.append("\n");* * * *for(DataStoreInfo dsi : catalog.getDataStores()){* * * * strBuilder.append("ID: " + dsi.getId());* * strBuilder.append("\n");* * strBuilder.append("NAME: " + dsi.getName());* * strBuilder.append("\n");* * strBuilder.append("DESCRITION: " + dsi.getDescription());* * strBuilder.append("\n");* * strBuilder.append("TYPE: " + dsi.getType());* * strBuilder.append("\n");* * strBuilder.append("WORKSPACE: " + dsi.getWorkspace().getName());* * strBuilder.append("\n\r");* * * * }* ** *return strBuilder.toString();* ** *}* * * *}* It is defined at ApplicationContext.xml like this: ** ** ** I'm trying to access the catalog to list published and unpublished layers in the postgis datastores inside this WPS. Any help will be appreciated!! Regards, Rodrigo C. Antonialli == Rio Claro - SP - Brasil LinkedIn: http://www.linkedin.com/in/rcaprofile Contato: (19) 8136-2347 rcantonia...@gmail.com Skype: rc_antonialli -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Backing up the data dir
Jonathan, what do people do? That. echo off set currdate=geoserver_data2.1.3_%Date:~10,4%%Date:~7,2%%Date:~4,2% mkdir c:\data_repository\%currdate% xcopy /E /V c:\geoserver_data2.1.3\* c:\data_repository\%currdate%\ scheduled task runs every Sunday 17:00 and every three months I clean out manually. Cheers Christian - Dr Christian Maul Project Manager Information Services Branch Department of Sustainability and Environment Level13, Marland House, 570 Bourke Street Melbourne 3000 PO Box 500, East Melbourne Vic 3002 Telephone:+61-3-8636 2325 Telefax: +61-3-8636 2813 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Backing-up-the-data-dir-tp5038246p5038388.html Sent from the GeoServer - User mailing list archive at Nabble.com. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] WFS Question
Your geoserver log file shows that the srsName is 4326 but the filter is clearly in a projected system. I would have to say that my codes for doing this are a whole lot more complicated and part of that complication is projecting vector selection polygons into the projection of the native layer before doing the filter. Unfortunately, this logic is dependent on the server. Mapserver recognizes epsg in the filter; geoserver doesnt. I found it easiest to just reproject to server epsg on the client. 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. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] WFS Question
I am using GeoServer and OpenLayers, and new to both. I am trying to highlight features using an OpenLayers control on a WMS layer from GeoServer. According to the response to the GetFeature request in Firebug, the numberOfFeatures="0". Can someone make a suggestion as to what the problem may be? The code is below: var highlightLayer = new OpenLayers.Layer.Vector("Highlighted Features", { styleMap: myStyles, displayInLayerSwitcher: false, isBaseLayer: false } ); var highlightControl = new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS.fromWMSLayer(mylayer), box: false, hover: false, maxFeatures: 20 }); highlightControl.events.register("featureselected", this, function(e) { highlightLayer.addFeatures([e.feature]); }); highlightControl.events.register("featureunselected", this, function(e) { highlightLayer.removeFeatures([e.feature]); }); map.addControl(highlightControl); highlightControl.activate(); The portion of the GeoServer log from the request is below: 2013-03-04 13:49:09,373 INFO [geoserver.wfs] - Request: getServiceInfo 2013-03-04 13:49:09,388 INFO [geoserver.wfs] - Request: getFeature service = WFS version = 1.1.0 baseUrl = http://myhost/geoserver/ query[0]: filter = [ bbox POLYGON ((-8933564.1969439 4710806.2675763, -8933564.1969439 4710854.040719, -8933516.4238013 4710854.040719, -8933516.4238013 4710806.2675763, -8933564.1969439 4710806.2675763)) ] srsName = EPSG:4326 typeName[0] = {http://myhost/workspace}layer maxFeatures = 20 outputFormat = text/xml; subtype=gml/3.1.1 resultType = results Any help you may provide is greatly appreciated. Thanks. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Layer Preview: download limited to 50 features?
geowolf wrote > All because you cannot make your own front-end to download the files? > Just create a page with links looking like: > > http://host:port/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName= > > &outputFormat=SHAPE-ZIP Thank you for telling me what I already knew, but was being dumb about it. Apparently all of my links had "max features:50" in them and taking that out allows the full download. I posted out of stupidity & not thinking before speaking. It's not a matter of not making a front end; its a matter of using Geoserver to host the files all in one place. I'm then taking those links and putting them on our website to allow County residents to download by hitting a link. Thanks again -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Layer-Preview-download-limited-to-50-features-tp3801273p5038283.html Sent from the GeoServer - User mailing list archive at Nabble.com. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] Virtual Services, Resources and Proxy
Hi, We ran into issues with our setup and were wondering if anyone has tried something similar and has a solutions to the problem. We use a proxy in front of our GeoServer instance(s), disabled Global Services and only allow access to our virtual service base url (geoserver/virtual/*) through our proxy access rules. This work quite good for standard use cases. However some resources such as schemas and Openlayers (maybe others as well?) are not available below the virtual base url but only under the global context. As a result at least the schema links in response documents and the application/openlayers output format for virtual WMS is not working due to 404 errors on at least: geoserver/virtual/openlayers/OpenLayers.js geoserver/virtual/options.png geoserver/virtual/www/inspire_vs.xsd geoserver/virtual/schemas/wms/1.3.0/exceptions_1_3_0.xsd The log is full of "No Mapping found for HTTP request with URI ..." warnings. To reproduce this behavior, use the plain geoserver-2.3-RC1 war, goto workspaces, select any workspace, enable settings, enter any proxy url ( http://whatever/virtual) and then open the openlayers preview for any datasets in this workspace. You will see in the page source that the Openlayers.js is requested from http://whatever/virtual/openlayers/Openlayers.js. As we like to keep using virtual service behind a proxy, I was wondering if the global contexts (or at least a subset) could additionally be published below the virtual services contexts, e.g. throught the dispatcher servlet or web.xml? Any help or comments are welcome! Regards, Torsten -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Backing up the data dir
Hi Jonathan, I usually change the default data dir configuration. For integrated GeoWebCache, as you suggested, a good approach could be to select an external folder for tiles and configuration. I usually also try to avoid to store the tiles in the same filesystem where data are stored. For raster and shapefiles also it is good avoiding to store them inside the default path. Sample datasets, shipped with GeoServer, are there for simplicity but it is not a good idea to use the default folder to store your actual data. Cheers, Stefano --- 41.95581N 12.52854E http://www.linkedin.com/in/stefanoiacovella http://twitter.com/#!/Iacovellas 2013/3/4 Jonathan Moules : > Hi List, >I'm curious - what do people do to back up their data directory? Do you > back up everything or just a select few files/folders? > > Myself I'd like to back up everything except the data itself (that being > /coverages, /data and /gwc), but there's an issue with the /gwc directory. > Not only does it include tiles (which I don't want to backup), it also > includes configuration information for GWC (geowebcache.xml and > geowebcache-diskquota.xml) which I do want to backup. > > For the purposes of ease-of-backup, ideally the data would be in a > completely different directory structure from the configuration files. But > failing that, I think it'd be very useful to put the GWC config files > outside of the /gwc directory so that directory could just be ignored. > > Does anyone else have thoughts on this? > > Jonathan > > > This transmission is intended for the named addressee(s) only and may > contain sensitive or protectively marked material up to RESTRICTED and > should be handled accordingly. Unless you are the named addressee (or > authorised to receive it for the addressee) you may not copy or use it, or > disclose it to anyone else. If you have received this transmission in error > please notify the sender immediately. All email traffic sent to or from us, > including without limitation all GCSX traffic, may be subject to recording > and/or monitoring in accordance with relevant legislation. > > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > ___ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] Backing up the data dir
Hi List, I'm curious - what do people do to back up their data directory? Do you back up everything or just a select few files/folders? Myself I'd like to back up everything except the data itself (that being /coverages, /data and /gwc), but there's an issue with the /gwc directory. Not only does it include tiles (which I don't want to backup), it also includes configuration information for GWC (geowebcache.xml and geowebcache-diskquota.xml) which I do want to backup. For the purposes of ease-of-backup, ideally the data would be in a completely different directory structure from the configuration files. But failing that, I think it'd be very useful to put the GWC config files outside of the /gwc directory so that directory could just be ignored. Does anyone else have thoughts on this? Jonathan This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Disable getCapabilities
On Mon, Mar 4, 2013 at 12:00 AM, fat_mac wrote: > Hi, > > Now when I’m investigating the strange behaving layers it seems like the > metadata tag and attribute “advertised” in the featuretype.xml file is > unchanged (still “true”) whilst the layer.xml says advertised = false. They > are obviously not synchronized. This may explain why it works for WMS > GetCapabilities but not for WFS, since in WFS the featuretype.xml is > explicitly used for vectordata. > > ** ** > > I hope this is not the case in the 2.2.x series since I plan to upgrade in > near future..!! > I'd advise you to try out as soon as possible, since the 2.2.x series has basically reached its end of life now. There is no new planned release coming out, but I believe some still want to make a 2.2.6, I just don't know if and when it will come out. This approach of always using one of the latest releases in a development series seems safe on the outside, since other people have tested it before you, but it's a double edged sword, if you are hit by something nobody else reported you'll have no chance of seeing it fixed. For those of you that always try to upgrade late in the game, a suggestion: always give the early releases of a new series a shot, that's when there is most attention about bug fixing. In a time like this the developer attention is on the 2.3.x series, while the activity on 2.2.x is closing to a halt, so that's 2.3.x that you should try out in order to make sure it will be ready when you want to use it, even if your policy is to run on the latest releases of the previous stable series. 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 --- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users