Re: [Geoserver-users] Virtual Services, Resources and Proxy
On Mon, Mar 4, 2013 at 4:36 PM, thegis the...@googlemail.com wrote: 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? The resources you're citing are served directly from the classpath using the FilePublisher class, which is bound to them in the spring context. In order to have that work also for virtual workspaces I guess some sort I guess the url mappings in the spring context for the classpathPublisher should also use the GeoServer custom org.geoserver.ows.OWSHandlerMapping instead of Spring's own org.springframework.web.servlet.handler.SimpleUrlHandlerMapping The change would likely have to happen in main module, applicationContext.xml, around line 150 to 170. However, I'm not sure if there are any side effects from doing that. 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] Some GeoServer 2.3.x app-schema GeoSciML v3 (GML 3.2 application schema) tests
Hi Marcus, Sorry for the late reply. That one seems like a bug too, but probably related to the xlink:href bug since it makes the output corrupted with invalid xlink:hrefs. Before I go on to investigate, can you tell me if you're using joining? Cheers Rini -Original Message- From: Sen, Marcus A. [mailto:m...@bgs.ac.uk] Sent: Tuesday, 26 February 2013 6:16 PM To: Angreani, Rini (CESRE, Kensington); Caradoc-Davies, Ben (CESRE, Kensington) Cc: geoserver-users@lists.sourceforge.net Subject: RE: [Geoserver-users] Some GeoServer 2.3.x app-schema GeoSciML v3 (GML 3.2 application schema) tests -Original Message- From: rini.angre...@csiro.au [mailto:rini.angre...@csiro.au] Sent: 26 February 2013 03:11 Re: filtering. ValueReference is not implemented in app-schema. WFS 1.1.0 uses PropertyName, which is supported. WFS 2.0 specific syntax are not supported in app-schema yet (paging, resolveDepth, some filters etc.). ... For now, I wouldn't recommend using WFS 2.0 with app-schema unless using common WFS 1.1.0 operations and syntax. The example query using WFS/FES 1.1.0 and PropertyName querying on gsml:relatedFeature/gsmlga:GeologicHistory/gsml:relatedFeature/ gsmlga:GeologicEvent/gsmlga:eventEnvironment/swe:Category/swe:label from my previous email which incorrectly returned all features should therefore still be registered as a bug I presume? Marcus This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. -- 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] Mapfish Printig modul
On Tue, Mar 5, 2013 at 8:55 AM, Zsolt Magyar zmagya...@gmail.com wrote: Hi List, I've installed the MapFish print module under GeoServer. But on demo print page I can not get response from server. Is there anybody to help investigate why my server doesn't create pdf? I attached a console screen about request. Thank you very much! Zsolt, Magyar Hi the info you provided is not enough to understand what it is wrong with your configuration. Could you please provide also the output of the response? regards p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti -- 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] can I configure the integrated GWC to support regular WMS clients?
Looking at http://geowebcache.org/docs/current/services/wms.html indicates it is possible with the external GWC but that would involve setting up a second server. If I can manage with the integrated GWC life is much easier, but I don't see a geowebcache-resources.xml file anywhere. Cheers Ian -- Ian Turton -- 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] Mapfish Printig modul
Hi Paolo, It is hard to provide output of response, because there is no response at all. Just 500 Internal Server Error after some times. How can I provide any other details to you? I use a default print demo page: :8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.printing.PrintDemoPage After installation there wasn't created autamatically /printing folder in Geoserver_dat_dir,with config.yaml. But I copied to there. Thank you for your time, to investigate. Regards, Zsolt 2013/3/5 Paolo Corti pco...@gmail.com On Tue, Mar 5, 2013 at 8:55 AM, Zsolt Magyar zmagya...@gmail.com wrote: Hi List, I've installed the MapFish print module under GeoServer. But on demo print page I can not get response from server. Is there anybody to help investigate why my server doesn't create pdf? I attached a console screen about request. Thank you very much! Zsolt, Magyar Hi the info you provided is not enough to understand what it is wrong with your configuration. Could you please provide also the output of the response? regards p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti -- 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
Thanks for the replies both. I wasn't aware the GWC tiles could be placed elsewhere; I'll have to investigate that. We don't actually have anything in our /data directory and the content of /coverages can be placed anywhere. I think what I'll end up doing is segregating the remaining data from the configuration files and then backing up the configs daily using something like Christian's script. Cheers, Jonathan On 4 March 2013 23:12, cmaul christian.m...@dse.vic.gov.au wrote: 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 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] GeoServer Catalog - WPS
Hi Andrea! My Data security has these rules: *.*.rhttp://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage# * *.*.whttp://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage# * mm_50.*.rhttp://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage# USUARIO,ADMINISTRADOR and the catalog mode is HIDE. The common workspace and the common:IBGE store are not protected... the ws is listed and the store is not. As you said, the mm_50 workspace shouldn't be visible by WPS because of the third rule, right? What about the IBGE store? Maybe because it's type is WMS? Anyway, if WPS can't access restricted layers, it's really bad for me... for a while, I'll have to send only text parameters... Is there a plan to change this wps restriction? Maybe I could try to help...(if I'm able to =P) Rodrigo C. Antonialli == Rio Claro - SP - Brasil LinkedIn: http://www.linkedin.com/in/rcaprofile Contato: (19) 8136-2347 rcantonia...@gmail.com Skype: rc_antonialli On Tue, Mar 5, 2013 at 4:17 AM, Andrea Aime andrea.a...@geo-solutions.itwrote: On Tue, Mar 5, 2013 at 12:07 AM, Rodrigo Antonialli rcantonia...@gmail.com 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] GeoServer Catalog - WPS
On Tue, Mar 5, 2013 at 12:47 PM, Rodrigo Antonialli rcantonia...@gmail.comwrote: Hi Andrea! My Data security has these rules: *.*.rhttp://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage# * *.*.whttp://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage# * mm_50.*.rhttp://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage# USUARIO,ADMINISTRADOR and the catalog mode is HIDE. The common workspace and the common:IBGE store are not protected... the ws is listed and the store is not. As you said, the mm_50 workspace shouldn't be visible by WPS because of the third rule, right? Correct What about the IBGE store? Maybe because it's type is WMS? Hum... your code asks for DataStores, not for Stores, so that's probably te cause Anyway, if WPS can't access restricted layers, it's really bad for me... for a while, I'll have to send only text parameters... Is there a plan to change this wps restriction? Maybe I could try to help...(if I'm able to =P) I discussed the API changes that need to take place in the last two weeks on this mailing list, however the fix is not simple, so I'm waiting for funding on it. That's of course not going too stop anyone else from implementation, if they have time to do so. 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
[Geoserver-users] Primary keys and geometry in Oracle
Hi List, When I start GeoServer (2.3-RC1), the first time I go to the layer list, in the console I see the below three lines for many of the layers. 05 Mar 11:26:03 WARN [org.geotools.jdbc] - Failure occurred while looking up the primary key with finder: org.geotools.jdbc.HeuristicPrimaryKeyFinder@32dd29 05 Mar 11:26:03 WARN [org.geotools.jdbc] - No primary key or unique index found for BOUNDARY_SUBREGION. 05 Mar 11:26:06 WARN [org.geotools.jdbc] - Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' These are all Oracle Layers. They have an non-nullable unique-value column that has an index. Being WARN level events I figured I should try and find out what they're on about but googling doesn't find much. Can anyone advise? It all seems to work so it can probably be ignored, but... So my questions: --- What does GeoServer need the primary key for? --- What happens if it can't find it? --- What does Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' mean? My geometry is all in sdo_geometry type columns. Thanks, 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] Primary keys and geometry in Oracle
Hi, About the Unrecognized geometry type, in Oracle the default is that you can store all kind of geometries (points, lines, multipolygons, geometrycollections etc.) into same sdo_geometry column. Many other GIS systems have constraints for geometry types allowed on a single layer. A shapefile can hold polygons and multipolygons but you cannot store points into the same shapefile. Sometimes There is only one way in Oracle to set such constraint and it is to create the spatial index with additional parameter like PARAMETERS ('layer_gtype=POLYGON'); If Geoserver finds such parameter from spatial index metadata it can announce in WFS DescribeFeatureType the exact geometry type. If it does not find the info it can only say that column holds some geometries. That may make trouble for some WFS clients because they are often made according to the shapefile logic. It is works warning server manager about this situation. I do not know why finding unique index fails for you if your table has such. Generally speaking primary key is used at least for generating WFS fids which must be unique and also stable in the database if updates and deletes are to be done. For inserts the system must also know what field must get a new and unique value. If you will continue to WFS-T with Oracle you will find it is a little bit tricky because you must create a sequence and a trigger on Oracle side and insert a new line into geoserver_metadata table which was created for making living a little bit easier. -Jukka Rahkonen- Jonathan Moules wrote: Hi List, When I start GeoServer (2.3-RC1), the first time I go to the layer list, in the console I see the below three lines for many of the layers. 05 Mar 11:26:03 WARN [org.geotools.jdbc] - Failure occurred while looking up the primary key with finder: org.geotools.jdbc.HeuristicPrimaryKeyFinder@32dd29mailto:org.geotools.jdbc.HeuristicPrimaryKeyFinder@32dd29 05 Mar 11:26:03 WARN [org.geotools.jdbc] - No primary key or unique index found for BOUNDARY_SUBREGION. 05 Mar 11:26:06 WARN [org.geotools.jdbc] - Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' These are all Oracle Layers. They have an non-nullable unique-value column that has an index. Being WARN level events I figured I should try and find out what they're on about but googling doesn't find much. Can anyone advise? It all seems to work so it can probably be ignored, but... So my questions: --- What does GeoServer need the primary key for? --- What happens if it can't find it? --- What does Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' mean? My geometry is all in sdo_geometry type columns. Thanks, 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] Primary keys and geometry in Oracle
On Tue, Mar 5, 2013 at 2:14 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, ** ** About the Unrecognized geometry type”, in Oracle the default is that you can store all kind of geometries (points, lines, multipolygons, geometrycollections etc.) into same sdo_geometry column. Many other GIS systems have constraints for geometry types allowed on a single layer. A shapefile can hold polygons and multipolygons but you cannot store points into the same shapefile. Sometimes ** ** There is only one way in Oracle to set such constraint and it is to create the spatial index with additional parameter like PARAMETERS ('layer_gtype=POLYGON'); ** ** If Geoserver finds such parameter from spatial index metadata it can announce in WFS DescribeFeatureType the exact geometry type. If it does not find the info it can only say that column holds some geometries. That may make trouble for some WFS clients because they are often made according to the shapefile logic. It is works warning server manager about this situation. ** ** I do not know why finding unique index fails for you if your table has such. Generally speaking primary key is used at least for generating WFS fids which must be unique and also stable in the database if updates and deletes are to be done. For inserts the system must also know what field must get a new and unique value. If you will continue to WFS-T with Oracle you will find it is a little bit tricky because you must create a sequence and a trigger on Oracle side and insert a new line into geoserver_metadata table which was created for making living a little bit easier. Btw, both issues (geometry type and primary key) have a dedicated metadata table that can be used to compensate for lack of metadata in the raw database: http://docs.geoserver.org/latest/en/user/data/database/oracle.html#using-the-geometry-metadata-table http://docs.geoserver.org/stable/en/user/data/database/primarykey.html Cheers Andrea ** ** -Jukka Rahkonen- ** ** ** ** ** ** Jonathan Moules wrote: ** ** Hi List, When I start GeoServer (2.3-RC1), the first time I go to the layer list, in the console I see the below three lines for many of the layers.** ** ** ** 05 Mar 11:26:03 WARN [org.geotools.jdbc] - Failure occurred while looking up the primary key with finder: org.geotools.jdbc.HeuristicPrimaryKeyFinder@32dd29 05 Mar 11:26:03 WARN [org.geotools.jdbc] - No primary key or unique index found for BOUNDARY_SUBREGION. 05 Mar 11:26:06 WARN [org.geotools.jdbc] - Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' ** ** These are all Oracle Layers. They have an non-nullable unique-value column that has an index. ** ** Being WARN level events I figured I should try and find out what they're on about but googling doesn't find much. Can anyone advise? It all seems to work so it can probably be ignored, but... ** ** So my questions: --- What does GeoServer need the primary key for? --- What happens if it can't find it? --- What does Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' mean? My geometry is all in sdo_geometry type columns. ** ** Thanks, 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 -- == 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:
Re: [Geoserver-users] can I configure the integrated GWC to support regular WMS clients?
On Tue, Mar 5, 2013 at 10:45 AM, Ian Turton ijtur...@gmail.com wrote: Looking at http://geowebcache.org/docs/current/services/wms.htmlindicates it is possible with the external GWC but that would involve setting up a second server. If I can manage with the integrated GWC life is much easier, but I don't see a geowebcache-resources.xml file anywhere. Hum... from what I can see in that page: --- GeoWebCache can recombine and resample tiles to answer arbitrary WMS requests. To enable this feature, open geowebcache-wmsservice-context.xml, find propertyname=fullWMSvalueFALSE/value/property and change to propertyname=fullWMSvalueTRUE/value/property. All layers that are to support this feature must currently be configured to support a PNG format. --- That file is a Spring application context one, it's no configuration file. If you unpack the gwc-version.jar file you'll find a geowebcache-wmsservice-context.xml file inside, that has the property above, currently set to false. You can change it to true, re-pack, and see how that goes (btw, quality will be bad for vector data, but should be ok for raster ones). Still, pity that this behavior is not runtime configurable 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] Primary keys and geometry in Oracle
Hi Both, Thanks for this information. Its interesting and hopefully useful for the future. Thanks again, Jonathan On 5 March 2013 13:28, Andrea Aime andrea.a...@geo-solutions.it wrote: On Tue, Mar 5, 2013 at 2:14 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, ** ** About the Unrecognized geometry type”, in Oracle the default is that you can store all kind of geometries (points, lines, multipolygons, geometrycollections etc.) into same sdo_geometry column. Many other GIS systems have constraints for geometry types allowed on a single layer. A shapefile can hold polygons and multipolygons but you cannot store points into the same shapefile. Sometimes ** ** There is only one way in Oracle to set such constraint and it is to create the spatial index with additional parameter like PARAMETERS ('layer_gtype=POLYGON'); ** ** If Geoserver finds such parameter from spatial index metadata it can announce in WFS DescribeFeatureType the exact geometry type. If it does not find the info it can only say that column holds some geometries. That may make trouble for some WFS clients because they are often made according to the shapefile logic. It is works warning server manager about this situation. ** ** I do not know why finding unique index fails for you if your table has such. Generally speaking primary key is used at least for generating WFS fids which must be unique and also stable in the database if updates and deletes are to be done. For inserts the system must also know what field must get a new and unique value. If you will continue to WFS-T with Oracle you will find it is a little bit tricky because you must create a sequence and a trigger on Oracle side and insert a new line into geoserver_metadata table which was created for making living a little bit easier. Btw, both issues (geometry type and primary key) have a dedicated metadata table that can be used to compensate for lack of metadata in the raw database: http://docs.geoserver.org/latest/en/user/data/database/oracle.html#using-the-geometry-metadata-table http://docs.geoserver.org/stable/en/user/data/database/primarykey.html Cheers Andrea ** ** -Jukka Rahkonen- ** ** ** ** ** ** Jonathan Moules wrote: ** ** Hi List, When I start GeoServer (2.3-RC1), the first time I go to the layer list, in the console I see the below three lines for many of the layers.* *** ** ** 05 Mar 11:26:03 WARN [org.geotools.jdbc] - Failure occurred while looking up the primary key with finder: org.geotools.jdbc.HeuristicPrimaryKeyFinder@32dd29 05 Mar 11:26:03 WARN [org.geotools.jdbc] - No primary key or unique index found for BOUNDARY_SUBREGION. 05 Mar 11:26:06 WARN [org.geotools.jdbc] - Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' ** ** These are all Oracle Layers. They have an non-nullable unique-value column that has an index. ** ** Being WARN level events I figured I should try and find out what they're on about but googling doesn't find much. Can anyone advise? It all seems to work so it can probably be ignored, but... ** ** So my questions: --- What does GeoServer need the primary key for? --- What happens if it can't find it? --- What does Unrecognized geometry type DEFAULT falling back on generic 'GEOMETRY' mean? My geometry is all in sdo_geometry type columns. ** ** Thanks, 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 -- == 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 ---
Re: [Geoserver-users] Mapfish Printig modul
Hi On Tue, Mar 5, 2013 at 11:20 AM, Zsolt Magyar zmagya...@gmail.com wrote: After installation there wasn't created autamatically /printing folder in Geoserver_dat_dir,with config.yaml. But I copied to there. Thank you for your time, to investigate. this is strange indeed. What GeoServer version are you using? Did you restart the servlet engine? Another test you can make is to build and deploy the MapFish war file as suggested here: http://www.mapfish.org/doc/print/installation.html regards p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti -- 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] Virtual Services, Resources and Proxy
Thanks for the hint, Andrea. I've changed the mapping class in main.jar/applicationContext.xml and added /openlayers/** like this: bean id=filePublisherMapping class=org.geoserver.ows.OWSHandlerMapping constructor-arg ref=catalog/ property name=alwaysUseFullPath value=true/ property name=mappings props prop key=/styles/**filePublisher/prop prop key=/www/**filePublisher/prop prop key=/openlayers/**filePublisher/prop /props /property /bean Now, when requesting /nurc/www/openlayers/theme/default/style.css the response is a 404 and the logs says: 05 Mar 17:01:31 TRACE [ows.OWSHandlerMapping] - No handler mapping found for [/nurc/www/openlayers/theme/default/style.css] 05 Mar 17:01:31 DEBUG [ows.OWSHandlerMapping] - Matching patterns for request [/www/openlayers/theme/default/style.css] are [/www/**] 05 Mar 17:01:31 DEBUG [ows.OWSHandlerMapping] - URI Template variables for request [/www/openlayers/theme/default/style.css] are {} 05 Mar 17:01:31 DEBUG [ows.OWSHandlerMapping] - Mapping [/nurc/www/openlayers/theme/default/style.css] to HandlerExecutionChain with handler [org.geoserver.ows.FilePublisher@6fdd647a] and 1 interceptor 05 Mar 17:01:31 DEBUG [filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder now cleared, as request processing completed It looks like the the OWSHandlerMapping class strips the workspace name (line 2) from the request but than maps the full name with workspace name to the FilePublisher (line 4). I've also tested /nurc/openlayers/theme/default/style.css with similar result. Furthermore I've copied the www/openlayers directory to workspaces/nurc/openlayers and workspaces/nurc/www/openlayers for test purposes but get back a 404 as well. Am I missing something? Regards, Torsten On Tue, Mar 5, 2013 at 9:40 AM, Andrea Aime andrea.a...@geo-solutions.itwrote: On Mon, Mar 4, 2013 at 4:36 PM, thegis the...@googlemail.com wrote: 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? The resources you're citing are served directly from the classpath using the FilePublisher class, which is bound to them in the spring context. In order to have that work also for virtual workspaces I guess some sort I guess the url mappings in the spring context for the classpathPublisher should also use the GeoServer custom org.geoserver.ows.OWSHandlerMapping instead of Spring's own org.springframework.web.servlet.handler.SimpleUrlHandlerMapping The change would likely have to happen in main module, applicationContext.xml, around line 150 to 170. However, I'm not sure if there are any side effects from doing that. 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
[Geoserver-users] WFS Extracted Shapefile Field Format
Hi, In Geoserver, is there a way to configure the field format (in particular the length) of the shapefile extracted by WFS? Currently the length of the text field is defaulted to be 254 and the numeric fields such as Double is defaulted to be 32 in precision and 31 in scale. This is fine when the extracted shapefile contains only small amount of features but as the number of features increases the shapefile size grows and the extract speed slows down so it would be nice if I can reduce the default length of the text field. I am using GeoServer 2.1.3. Thanks, Chenglin -- 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] Virtual Services, Resources and Proxy
On Tue, Mar 5, 2013 at 5:29 PM, thegis the...@googlemail.com wrote: Thanks for the hint, Andrea. I've changed the mapping class in main.jar/applicationContext.xml and added /openlayers/** like this: bean id=filePublisherMapping class=org.geoserver.ows.OWSHandlerMapping constructor-arg ref=catalog/ property name=alwaysUseFullPath value=true/ property name=mappings props prop key=/styles/**filePublisher/prop prop key=/www/**filePublisher/prop prop key=/openlayers/**filePublisher/prop /props /property /bean Now, when requesting /nurc/www/openlayers/theme/default/style.css the response is a 404 and the logs says: 05 Mar 17:01:31 TRACE [ows.OWSHandlerMapping] - No handler mapping found for [/nurc/www/openlayers/theme/default/style.css] 05 Mar 17:01:31 DEBUG [ows.OWSHandlerMapping] - Matching patterns for request [/www/openlayers/theme/default/style.css] are [/www/**] 05 Mar 17:01:31 DEBUG [ows.OWSHandlerMapping] - URI Template variables for request [/www/openlayers/theme/default/style.css] are {} 05 Mar 17:01:31 DEBUG [ows.OWSHandlerMapping] - Mapping [/nurc/www/openlayers/theme/default/style.css] to HandlerExecutionChain with handler [org.geoserver.ows.FilePublisher@6fdd647a] and 1 interceptor 05 Mar 17:01:31 DEBUG [filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder now cleared, as request processing completed It looks like the the OWSHandlerMapping class strips the workspace name (line 2) from the request but than maps the full name with workspace name to the FilePublisher (line 4). I've also tested /nurc/openlayers/theme/default/style.css with similar result. Furthermore I've copied the www/openlayers directory to workspaces/nurc/openlayers and workspaces/nurc/www/openlayers for test purposes but get back a 404 as well. Am I missing something? Nothing really, I was just trying a shot in the dark, I guess this needs more investigation. I don't have anything else to suggest without actually looking into it myself too. 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] WFS Extracted Shapefile Field Format
On Tue, Mar 5, 2013 at 5:06 PM, Chenglin Gan - NOAA Affiliate chenglin@noaa.gov wrote: Hi, In Geoserver, is there a way to configure the field format (in particular the length) of the shapefile extracted by WFS? Currently the length of the text field is defaulted to be 254 and the numeric fields such as Double is defaulted to be 32 in precision and 31 in scale. This is fine when the extracted shapefile contains only small amount of features but as the number of features increases the shapefile size grows and the extract speed slows down so it would be nice if I can reduce the default length of the text field. No, at the moment it's not configurable 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
[Geoserver-users] Migrating an Authentication Plugin from 2.1 to 2.2?
We have a custom authentication/authorization plugin developed for use with GeoServer 2.1. It uses the Netegrity SiteMinder security proxy and a custom authorization provider called WebADE. It consists of the following classes implementing various Spring Security interfaces: LdapAuthenticationProvider ProviderManager SmAuthenticationDetailsSource SmProcessingFilter WebADEAuthoritiesPopulator Is there any information available on how to migrate this to the 2.2.x Security model? -- 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] print module
hello I am working on GeoServer with openlayers API and GeoExt. As I am inserting this printMapPanel code in to my code which is available on-- http://geoext.org/lib/GeoExt/widgets/PrintMapPanel.html bbar: [{ text: Print..., handler: function() { var printDialog = new Ext.Window({ autoHeight: true, width: 350, items: [new GeoExt.PrintMapPanel({ sourceMap: mapPanel, printProvider: { capabilities: printCapabilities } })], bbar: [{ text: Create PDF, handler: function() { printDialog.items.get(0).print(); } }] }); printDialog.show(); } }] It is giving me error this.url is null or not an object. Kindly help me Thanks Akhil Gupta +91-8591822891 -- Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Some GeoServer 2.3.x app-schema GeoSciML v3 (GML 3.2 application schema) tests
Hi Marcus, I could recreate the invalid xlink:href problems without joining. With joining, I couldn't recreate the problem. It would be faster with joining too. I guess it's about time I make joining the default behaviour. Also, I think the problem with your filters should be solved with joining. Please let me know otherwise. To enable joining, add this line in app-schema.properties file: app-schema.joining = true Cheers Rini -Original Message- From: Angreani, Rini (CESRE, Kensington) Sent: Tuesday, 5 March 2013 5:01 PM To: 'Sen, Marcus A.'; Caradoc-Davies, Ben (CESRE, Kensington) Cc: geoserver-users@lists.sourceforge.net Subject: RE: [Geoserver-users] Some GeoServer 2.3.x app-schema GeoSciML v3 (GML 3.2 application schema) tests Hi Marcus, Sorry for the late reply. That one seems like a bug too, but probably related to the xlink:href bug since it makes the output corrupted with invalid xlink:hrefs. Before I go on to investigate, can you tell me if you're using joining? Cheers Rini -Original Message- From: Sen, Marcus A. [mailto:m...@bgs.ac.uk] Sent: Tuesday, 26 February 2013 6:16 PM To: Angreani, Rini (CESRE, Kensington); Caradoc-Davies, Ben (CESRE, Kensington) Cc: geoserver-users@lists.sourceforge.net Subject: RE: [Geoserver-users] Some GeoServer 2.3.x app-schema GeoSciML v3 (GML 3.2 application schema) tests -Original Message- From: rini.angre...@csiro.au [mailto:rini.angre...@csiro.au] Sent: 26 February 2013 03:11 Re: filtering. ValueReference is not implemented in app-schema. WFS 1.1.0 uses PropertyName, which is supported. WFS 2.0 specific syntax are not supported in app-schema yet (paging, resolveDepth, some filters etc.). ... For now, I wouldn't recommend using WFS 2.0 with app-schema unless using common WFS 1.1.0 operations and syntax. The example query using WFS/FES 1.1.0 and PropertyName querying on gsml:relatedFeature/gsmlga:GeologicHistory/gsml:relatedFeature/ gsmlga:GeologicEvent/gsmlga:eventEnvironment/swe:Category/swe:label from my previous email which incorrectly returned all features should therefore still be registered as a bug I presume? Marcus This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. -- Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users