Re: [Geoserver-users] OpenLayers with App-Schemas

2013-09-02 Thread John Callahan
I have the same problem as Christy.  The bug fix you reference looks
promising.  As FYI., from looking in the geoserver log file, I see the
following error:

2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - CREATE CONNECTION
2013-09-02 01:48:30,367 TRACE [geotools.core] - ENTRY 4
2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting PropertyName
2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting
LiteralExpression
2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - SELECT
public.geosci_geolunitview100k.identifier,encode(ST_AsEWKB(public.geosci_geolunitview100k.geom),'base64')
as geom FROM public.geosci_geolunitview100k INNER JOIN ( SELECT
DISTINCT  FROM public.geosci_geolunitview100k WHERE geom 
ST_GeomFromText('POLYGON ((135058.6446566685 -28179.470173503414,
135058.6446566685 282487.40294382145, 265105.24270579155
282487.40294382145, 265105.24270579155 -28179.470173503414,
135058.6446566685 -28179.470173503414))', 26957) )
temp_alias_used_for_filter ON (  )
2013-09-02 01:48:30,382 DEBUG [geotools.jdbc] - CLOSE CONNECTION
2013-09-02 01:48:30,382 ERROR [geotools.rendering] - java.io.IOException
java.lang.RuntimeException: java.io.IOException
  at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:168)
   ..
   ..
  ... 116 more
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or
near FROM
  Position: 206


I confirm this error by executing the SQL SELECT statement directly to
postgis.  Coordinate ordering seems fine and the exact same data table
works well through a non-app-schema based service.



- John


John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
john.calla...@udel.edu



On Mon, Sep 2, 2013 at 1:13 AM, Rini Angreani rini.angre...@csiro.auwrote:

 Hi Christy,

 Apart from Ben's suggestions, I also made a very recent bug fix relating to
 WMS with app-schema: https://jira.codehaus.org/browse/GEOT-4550.
 Please try the latest from trunk if you're not already using it.

 Cheers
 Rini



 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/OpenLayers-with-App-Schemas-tp5075263p5075509.html
 Sent from the GeoServer - User mailing list archive at Nabble.com.


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Ownership-based access control on features

2013-09-02 Thread Andrea Aime
On Mon, Sep 2, 2013 at 3:28 AM, Jiang Wang sillyempe...@gmail.com wrote:

 Hi,
 I have a table like this:
 
 ID | Name | the_geom | Owner
 
 The field 'Owner' store the user name who own this record.
 Here is my question:
 Is there any possible way that we can use web request as usual , but
 response base on the user who invoke the request.


I don't think you can set it up the way you want out of the box.

Theoretically one could use parametric sql views to get close, but you
would not have
any way to get the current GeoServer user to inject it as a parameter in
the sql, however the current user is not available as a view parameter,
some
code in GeoServer would have to be modified to get it there... besides, you
would
not be able to apply security on all OGC protocols that way.

A better approach would be for you to write your own ResourceAccessManager
implementation
(in Java) and plug it into GeoServer. You can have a look at the
DefaultResourceAccessManager
implementation as an example (there are no other docs):
https://github.com/geoserver/geoserver/blob/master/src/main/src/main/java/org/geoserver/security/DataAccessManagerAdapter.java

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

---
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] OpenLayers with App-Schemas

2013-09-02 Thread Rini.Angreani
Hi John,

Judging by the SQL error, your problem seems to be different from the bug I 
fixed.
I'll have a look at your workspaces (from Ben) and see if I could spot a 
configuration issue.

Cheers
Rini

From: John Callahan [mailto:john.calla...@udel.edu]
Sent: Monday, 2 September 2013 2:24 PM
To: Angreani, Rini (CESRE, Kensington)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] OpenLayers with App-Schemas

I have the same problem as Christy.  The bug fix you reference looks promising. 
 As FYI., from looking in the geoserver log file, I see the following error:

2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - CREATE CONNECTION
2013-09-02 01:48:30,367 TRACE [geotools.core] - ENTRY 4
2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting PropertyName
2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting LiteralExpression
2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - SELECT 
public.geosci_geolunitview100k.identifier,encode(ST_AsEWKB(public.geosci_geolunitview100k.geom),'base64')
 as geom FROM public.geosci_geolunitview100k INNER JOIN ( SELECT DISTINCT 
 FROM public.geosci_geolunitview100k WHERE geom  
ST_GeomFromText('POLYGON ((135058.6446566685 -28179.470173503414, 
135058.6446566685 282487.40294382145, 265105.24270579155 282487.40294382145, 
265105.24270579155 -28179.470173503414, 135058.6446566685 
-28179.470173503414))', 26957) ) temp_alias_used_for_filter ON (  )
2013-09-02 01:48:30,382 DEBUG [geotools.jdbc] - CLOSE CONNECTION
2013-09-02 01:48:30,382 ERROR [geotools.rendering] - java.io.IOException
java.lang.RuntimeException: java.io.IOException
   at 
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:168)
   ..
   ..
... 116 more
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near 
FROM
  Position: 206


I confirm this error by executing the SQL SELECT statement directly to postgis. 
 Coordinate ordering seems fine and the exact same data table works well 
through a non-app-schema based service.



- John


John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
john.calla...@udel.edumailto:john.calla...@udel.edu


On Mon, Sep 2, 2013 at 1:13 AM, Rini Angreani 
rini.angre...@csiro.aumailto:rini.angre...@csiro.au wrote:
Hi Christy,

Apart from Ben's suggestions, I also made a very recent bug fix relating to
WMS with app-schema: https://jira.codehaus.org/browse/GEOT-4550.
Please try the latest from trunk if you're not already using it.

Cheers
Rini



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/OpenLayers-with-App-Schemas-tp5075263p5075509.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] LDAP/AD in 2.4RC1 issue

2013-09-02 Thread Mauro Bartolomeoli
2013/8/23 Jonathan Moules jonathanmou...@warwickshire.gov.uk

 Hi List,
 We've been dabbling with the LDAP/AD authentication in 2.4RC1.
 We've got it authenticating simple test accounts with a limited number of
 groups, but our actual user accounts it fails to authenticate. When we
 enter the correct details we get the following error:

 org.springframework.dao.IncorrectResultSizeDataAccessException: Incorrect
 result size: expected 1, actual 0


Hi Jonathan, can you send me the complete stack trace for this error, I
would like to see exactly where it happens,
Moreover, can you tell me exactly how you have configured the LDAP
Authentication Provider and what is the username/s failing in your tests?

Thanks,
Mauro Bartolomeoli

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for app-schema WFS service

2013-09-02 Thread Ben Caradoc-Davies
John,

thanks very much for your detailed bug report. I can now reliably 
reproduce this behaviour. I have created a Jira issue:
https://jira.codehaus.org/browse/GEOS-6014

Per-workspace URLs are a relatively new feature. These are the URLs 
containing geoserver/gsmlp/ows or similar instead of the top-level 
geoserver/ows or similar. It looks like there is a bug in app-schema, 
and that app-schema per-workspace URLs cause corruption of other 
namespaces, if and only if they are the first layer accessed after a 
GeoServer restart.

The workaround is to not use per-workspace URLs like this:

http://maps.dgs.udel.edu/geoserver/gsmlp/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

Instead only use top-level URLs like this:

http://maps.dgs.udel.edu/geoserver/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

Thanks again.

Kind regards,
Ben.

On 02/09/13 15:48, Ben Caradoc-Davies wrote:
 Confirmed.

 Thanks for your zipped workspace. I started with the release example
 workspace (the one shipped with GeoServer) and used the app-schema
 tutorial GeologicUnit property file in a new gsmlp workspace and then
 edited the datastore as you described. I used your mapping file, changed
 the data store to use the property file, and edited the mappings to
 match the property file. The output is either fine or has null
 namespaces, seen both gsmlp:GeologicUnitView and topp:tasmania_roads,
 the latter being an unrelated simple feature. I have attached the
 workspace zip file.

 The problem is intermittent. Changing settings seems to trigger it, but
 not reliably. If I can figure out how to repeat the behaviour, I might
 be able to determine if app-schema is the root cause.

 Kind regards,
 Ben.

-- 
Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/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

2013-09-02 Thread Tim Vander Borght
Hi,

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.
Is it normal behaviour that the REST API doesn't show this information?

Best regards,
Tim.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for app-schema WFS service

2013-09-02 Thread Hakala Oiva (MTT)
Hmm, but is it safe to use per workspace GetCapabilities? I think that is 
necessary, if one workspace is for WMS, and the other for WFS. We have a 
confiruration here, where common WMS and WFS are turned off and those services 
are configured by workspace.

Oiva Hakala, Agrifood Research Finland




Lähettäjä: Ben Caradoc-Davies [ben.caradoc-dav...@csiro.au]
Lähetetty: 2. syyskuuta 2013 11:59
Vastaanottaja: John Callahan
Kopio: Rini Angreani; geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for 
app-schema WFSservice

John,

thanks very much for your detailed bug report. I can now reliably
reproduce this behaviour. I have created a Jira issue:
https://jira.codehaus.org/browse/GEOS-6014

Per-workspace URLs are a relatively new feature. These are the URLs
containing geoserver/gsmlp/ows or similar instead of the top-level
geoserver/ows or similar. It looks like there is a bug in app-schema,
and that app-schema per-workspace URLs cause corruption of other
namespaces, if and only if they are the first layer accessed after a
GeoServer restart.

The workaround is to not use per-workspace URLs like this:

http://maps.dgs.udel.edu/geoserver/gsmlp/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

Instead only use top-level URLs like this:

http://maps.dgs.udel.edu/geoserver/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

Thanks again.

Kind regards,
Ben.


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GetLegendGraphic - exclude SLD rule

2013-09-02 Thread Attila Berenyi
Hi there,

 

I was wondering if there is an easy way to exclude a rule from the
GetLegendGraphic request?

 

In this particular case I have two rules with different scale
denominators - one for the actual data and one for the labels - and I'd
like to totally exclude the labels from the result of GetLegendGraphic.

 

SLD as follows:

?xml version=1.0 encoding=ISO-8859-1?

StyledLayerDescriptor xmlns:xlink='http://www.w3.org/1999/xlink'
xmlns:gml='http://www.opengis.net/gml'
xmlns:ogc='http://www.opengis.net/ogc'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='1.0.0'
xsi:schemaLocation='http://www.opengis.net/sld
StyledLayerDescriptor.xsd' xmlns='http://www.opengis.net/sld' 

  NamedLayer

NameName/Name

UserStyle

  FeatureTypeStyle

Rule

  TitleTitle/Title

  MaxScaleDenominator3466752/MaxScaleDenominator

  PolygonSymbolizer

Stroke

  CssParameter name=stroke #686868/CssParameter

  CssParameter name=stroke-width 1/CssParameter

  CssParameter name=stroke-opacity 0.5/CssParameter

/Stroke

  /PolygonSymbolizer

/Rule

Rule

  TitleLabel/Title

  MinScaleDenominator11/MinScaleDenominator

  MaxScaleDenominator3466752/MaxScaleDenominator

  TextSymbolizer

Label

  ogc:PropertyNamelabel/ogc:PropertyName

/Label

Font

  CssParameter name=font-familyArimo/CssParameter

  CssParameter name=font-size8/CssParameter

  CssParameter name=font-stylenormal/CssParameter

  CssParameter name=font-weightbold/CssParameter

/Font

LabelPlacement

  PointPlacement

AnchorPoint

  AnchorPointX0.5/AnchorPointX

  AnchorPointY0.5/AnchorPointY

/AnchorPoint

Displacement

  DisplacementX0/DisplacementX

  DisplacementY0/DisplacementY

/Displacement

  /PointPlacement

/LabelPlacement

Halo

  Radius1/Radius

  Fill

CssParameter name=fill#FF/CssParameter

CssParameter name=fill-opacity1/CssParameter

  /Fill

/Halo

Fill

  CssParameter name=fill#404040/CssParameter

/Fill

  /TextSymbolizer

/Rule

  /FeatureTypeStyle

/UserStyle

  /NamedLayer

/StyledLayerDescriptor

 

Cheers,

Attila

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GeoServer capabilites and OpenSource for goverment tenders

2013-09-02 Thread Paulius Litvinas
Hello List,

 

Maybe someone knows and could provide such information:

 

1. How many concurrent users can be served by GeoServer? Where is a
requirement to handle concurrent 500 users, so I am thinking what
approximately configuration and server technical specifications should be.

It would be helpful as you maybe could share your results with different
configuration: etc. with such configuration where is no problem to serve
such count of users/requests. I know every case is unique, but I think with
such info it would be possible approximately evaluate the need.

Basic tasks would be to review layers through WMS, WMTS and update data
through WFS with GIS client software.

Maybe there is already something about GeoServer capabilities, but I was not
able to find?

 

2. There is a competition to create internal GIS data management system with
some custom functionality. One of qualification requirements is to provide
GIS software vendor issued technical qualification certificate or other
equivalent document. 

While it was in technical specification phase we were thinking about
GeoServer implementation for it, but now in competition such requirement
appeared and I can't imagine if such qualification certificate is even
possible for OpenSource solutions?

It is the first time we are planning to use OpenSource (GeoServer) solution
as GIS server, so my question would be is it possible to meet such
requirement using GeoServer?

Maybe you could share best practices how you compete (I believe you do) with
OpenSource solutions for government public procurements to meet needed
qualification?

 

Thank you for you help.

 

Sincerely,

Paul

 

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Clustered GeoServer on tomcat with load balance on IIS

2013-09-02 Thread Paulius Litvinas
I found the problem - it was due to .NET version for DefaulAplication pool
as virtual directory inherits it from Aplication. I changed it to 2.0 and
this solved the problem.

 

Paul

 

From: Simone Giannecchini [mailto:simone.giannecch...@geo-solutions.it] 
Sent: Thursday, August 29, 2013 1:07 PM
To: Paulius Litvinas
Cc: geoserver-users
Subject: Re: [Geoserver-users] Clustered GeoServer on tomcat with load
balance on IIS

 

Ciao Paulius,

I honestly never saw that error myself. 

I guess you'll have to fiddle with the IIS configuration and its security
settings.

 




Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---

 

On Thu, Aug 29, 2013 at 9:32 AM, Paulius Litvinas paul...@infoera.com
wrote:

Hello List,

 

I tried to make such GeoServer High Availability  Set as in this link:
http://goo.gl/Hd6F5

 

Everything works ok except tiled layers .

 

I tried with default sample layer topp:tasmania_cities.

 

On separate instances this tiled layer is displayed with no problems.

 

http://192.168.1.17:8080/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPS
G:4326
http://192.168.1.17:8080/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EP
SG:4326format=image/png format=image/png

http://192.168.1.17:8081/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPS
G:4326
http://192.168.1.17:8081/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EP
SG:4326format=image/png format=image/png 

 

But if I try to view this layer through load balanced on IIS

 

http://192.168.1.17/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:432
6
http://192.168.1.17/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:43
26format=image/png format=image/png

 

I get 

Server Error in '/' Application. 

A potentially dangerous Request.Path value was detected from the client (:).

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: A potentially dangerous
Request.Path value was detected from the client (:).

Source Error: 

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace: 

[HttpException (0x80004005): A potentially dangerous Request.Path value was
detected from the client (:).]

   System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +710

   System.Web.PipelineStepManager.ValidateHelper(HttpContext context) +184

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272

 

If I try a group layer (request does not contains :) everything work fine
too.

 

I tried to put the following config to web.config of jakarta virtual
directory, but no success.

 

system.web

httpRuntime requestValidationMode=2.0
requestPathInvalidCharacters=/

 pages
validateRequest=false /

/system.web

 

Maybe I missed something?

 

Thank you for any help.

 

Sincerely,

Paulius Litvinas

GIS Projects Consultant, InfoEra JSC



Mobile: +370 656 10089 tel:%2B370%20656%2010089 

Phone: (+370 5) 278 84 56 tel:%28%2B370%205%29%20278%2084%2056 

Fax: (+370 5) 278 47 23 tel:%28%2B370%205%29%20278%2047%2023 

paul...@infoera.com

S. Zukausko str. 17, LT-08234, 

Vilnius, Lithuania

cid:image001.jpg@01C7E646.3BEE7150

www.infoera.com 

 



--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

 

image001.jpg--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with 

Re: [Geoserver-users] GetLegendGraphic - exclude SLD rule

2013-09-02 Thread Langford, Robert
Attila,

You can pass a scale parameter with your GetLegendGraphic request (e.g. 
SCALE=10), which would only return the matched rules (in this case your 
Title rule).

See here for more details: 
http://docs.geoserver.org/stable/en/user/services/wms/get_legend_graphic/legendgraphic.html

Regards,

Rob

From: Attila Berenyi [mailto:attila.bere...@senergyworld.com]
Sent: 02 September 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GetLegendGraphic - exclude SLD rule

Hi there,

I was wondering if there is an easy way to exclude a rule from the 
GetLegendGraphic request?

In this particular case I have two rules with different scale denominators - 
one for the actual data and one for the labels - and I'd like to totally 
exclude the labels from the result of GetLegendGraphic.

SLD as follows:
?xml version=1.0 encoding=ISO-8859-1?
StyledLayerDescriptor xmlns:xlink='http://www.w3.org/1999/xlink' 
xmlns:gml='http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='1.0.0' 
xsi:schemaLocation='http://www.opengis.net/sld StyledLayerDescriptor.xsd' 
xmlns='http://www.opengis.net/sld' 
  NamedLayer
NameName/Name
UserStyle
  FeatureTypeStyle
Rule
  TitleTitle/Title
  MaxScaleDenominator3466752/MaxScaleDenominator
  PolygonSymbolizer
Stroke
  CssParameter name=stroke #686868/CssParameter
  CssParameter name=stroke-width 1/CssParameter
  CssParameter name=stroke-opacity 0.5/CssParameter
/Stroke
  /PolygonSymbolizer
/Rule
Rule
  TitleLabel/Title
  MinScaleDenominator11/MinScaleDenominator
  MaxScaleDenominator3466752/MaxScaleDenominator
  TextSymbolizer
Label
  ogc:PropertyNamelabel/ogc:PropertyName
/Label
Font
  CssParameter name=font-familyArimo/CssParameter
  CssParameter name=font-size8/CssParameter
  CssParameter name=font-stylenormal/CssParameter
  CssParameter name=font-weightbold/CssParameter
/Font
LabelPlacement
  PointPlacement
AnchorPoint
  AnchorPointX0.5/AnchorPointX
  AnchorPointY0.5/AnchorPointY
/AnchorPoint
Displacement
  DisplacementX0/DisplacementX
  DisplacementY0/DisplacementY
/Displacement
  /PointPlacement
/LabelPlacement
Halo
  Radius1/Radius
  Fill
CssParameter name=fill#FF/CssParameter
CssParameter name=fill-opacity1/CssParameter
  /Fill
/Halo
Fill
  CssParameter name=fill#404040/CssParameter
/Fill
  /TextSymbolizer
/Rule
  /FeatureTypeStyle
/UserStyle
  /NamedLayer
/StyledLayerDescriptor

Cheers,
Attila

DISCLAIMER: The information contained in this communication/message from 
robert.langf...@salford.gov.uk sent on Mon Sep  2 12:37:26 2013 is confidential 
and may be legally privileged. It is intended solely for the addressee(s) 
geoserver-users@lists.sourceforge.net;attila.bere...@senergyworld.com

Access to this message by anyone else is unauthorised. If you are not the 
intended recipient, any disclosure, copying, or distribution of the message, or 
any action or omission taken by you in reliance on it, is prohibited and may be 
unlawful.
As a public body, Salford City Council may be required to disclose this email 
[or any response to it] under the Freedom of Information Act 2000, unless the 
information in it is covered by one of the exemptions in the Act.
Please immediately contact the sender, robert.langf...@salford.gov.uk if you 
have received this message in error.

For the full disclaimer please access http://www.salford.gov.uk/e-mail.  Thank 
you.
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GetLegendGraphic - exclude SLD rule

2013-09-02 Thread Attila Berenyi
Rob,

 

Thanks for the quick response.

 

Yes, I have read the documentation and found that attribute too, however, and 
please keep in mind that it is only my personal opinion, it is much more like a 
workaround and not real a solution for my “problem”.

 

Ideally, it will be an extra XML attribute (a VendorOption maybe, e.g. 
VendorOption name=excludeFromLegendGraphicyes/VendorOption) in the SLD or 
a REQUEST parameter e.g. 
(...EXCLUDEFROMLEGEND=rule1Name,rule2Name,...,ruleNName), thus it will be more 
easy to use it in automated/programmatically generated solutions like mine.

 

Cheers,

Attila

 

From: Langford, Robert [mailto:robert.langf...@salford.gov.uk] 
Sent: 02 September 2013 12:37
To: Attila Berenyi; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] GetLegendGraphic - exclude SLD rule

 

Attila,

 

You can pass a scale parameter with your GetLegendGraphic request (e.g. 
“SCALE=10”), which would only return the matched rules (in this case your 
“Title” rule).

 

See here for more details: 
http://docs.geoserver.org/stable/en/user/services/wms/get_legend_graphic/legendgraphic.html

 

Regards,

 

Rob

 

From: Attila Berenyi [mailto:attila.bere...@senergyworld.com] 
Sent: 02 September 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GetLegendGraphic - exclude SLD rule

 

Hi there,

 

I was wondering if there is an easy way to exclude a rule from the 
GetLegendGraphic request?

 

In this particular case I have two rules with different scale denominators - 
one for the actual data and one for the labels - and I’d like to totally 
exclude the labels from the result of GetLegendGraphic.

 

SLD as follows:

?xml version=1.0 encoding=ISO-8859-1?

StyledLayerDescriptor xmlns:xlink='http://www.w3.org/1999/xlink' 
xmlns:gml='http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='1.0.0' 
xsi:schemaLocation='http://www.opengis.net/sld StyledLayerDescriptor.xsd' 
xmlns='http://www.opengis.net/sld' 

  NamedLayer

NameName/Name

UserStyle

  FeatureTypeStyle

Rule

  TitleTitle/Title

  MaxScaleDenominator3466752/MaxScaleDenominator

  PolygonSymbolizer

Stroke

  CssParameter name=stroke #686868/CssParameter

  CssParameter name=stroke-width 1/CssParameter

  CssParameter name=stroke-opacity 0.5/CssParameter

/Stroke

  /PolygonSymbolizer

/Rule

Rule

  TitleLabel/Title

  MinScaleDenominator11/MinScaleDenominator

  MaxScaleDenominator3466752/MaxScaleDenominator

  TextSymbolizer

Label

  ogc:PropertyNamelabel/ogc:PropertyName

/Label

Font

  CssParameter name=font-familyArimo/CssParameter

  CssParameter name=font-size8/CssParameter

  CssParameter name=font-stylenormal/CssParameter

  CssParameter name=font-weightbold/CssParameter

/Font

LabelPlacement

  PointPlacement

AnchorPoint

  AnchorPointX0.5/AnchorPointX

  AnchorPointY0.5/AnchorPointY

/AnchorPoint

Displacement

  DisplacementX0/DisplacementX

  DisplacementY0/DisplacementY

/Displacement

  /PointPlacement

/LabelPlacement

Halo

  Radius1/Radius

  Fill

CssParameter name=fill#FF/CssParameter

CssParameter name=fill-opacity1/CssParameter

  /Fill

/Halo

Fill

  CssParameter name=fill#404040/CssParameter

/Fill

  /TextSymbolizer

/Rule

  /FeatureTypeStyle

/UserStyle

  /NamedLayer

/StyledLayerDescriptor

 

Cheers,

Attila

DISCLAIMER: The information contained in this communication/message from 
robert.langf...@salford.gov.uk sent on Mon Sep  2 12:37:26 2013 is confidential 
and may be legally privileged. It is intended solely for the addressee(s) 
geoserver-users@lists.sourceforge.net;attila.bere...@senergyworld.com
 
Access to this message by anyone else is unauthorised. If you are not the 
intended recipient, any disclosure, copying, or distribution of the message, or 
any action or omission taken by you in reliance on it, is prohibited and may be 
unlawful.
As a public body, Salford City Council may be required to disclose this email 
[or any response to it] under the Freedom of Information Act 2000, unless the 
information in it is covered by one of the exemptions in the Act. 
Please immediately contact the sender, robert.langf...@salford.gov.uk if you 
have received this message in error. 
 
For the full disclaimer please access http://www.salford.gov.uk/e-mail.  Thank 
you.

 


[Geoserver-users] How to avoid security filter chain file being overwrite during server start ?

2013-09-02 Thread Ravi Sriniwas
Hi All,
I have a requirement wherein I want to add few entries (Configure filter chain) 
in geoserver's security config file located at 
geoserver/data/security/config.xml.  I know this can be done from UI by 
navigating to Authentication link.

But I want to configure this in geoserver/data/security/config.xml file 
directly and create a war file. So that this settings are available when  war 
is exploded and  server comes up.

Currently I see that this config file is re-written when the war is exploded. 
Is there any way I can prevent this and avoid  my settings being over written ?

Appreciate your response,

Thanks in advance,
Ravi 
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Clustered GeoServer on tomcat with load balance on IIS

2013-09-02 Thread Simone Giannecchini
Ciao Paulius,
thanks for reporting this to the list.


Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---


On Mon, Sep 2, 2013 at 1:47 PM, Paulius Litvinas paul...@infoera.lt wrote:

 I found the problem – it was due to .NET version for DefaulAplication pool
 as virtual directory inherits it from Aplication. I changed it to 2.0 and
 this solved the problem.

 ** **

 Paul

 ** **

 *From:* Simone Giannecchini [mailto:simone.giannecch...@geo-solutions.it]
 *Sent:* Thursday, August 29, 2013 1:07 PM
 *To:* Paulius Litvinas
 *Cc:* geoserver-users
 *Subject:* Re: [Geoserver-users] Clustered GeoServer on tomcat with load
 balance on IIS

 ** **

 Ciao Paulius,

 I honestly never saw that error myself. 

 I guess you'll have to fiddle with the IIS configuration and its security
 settings.

 ** **


 

 Regards,
 Simone Giannecchini
 ==
 Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
 information.
 ==

 Ing. Simone Giannecchini
 @simogeo
 Founder/Director

 GeoSolutions S.A.S.
 Via Poggio alle Viti 1187
 55054  Massarosa (LU)
 Italy
 phone: +39 0584 962313
 fax: +39 0584 1660272
 mob:   +39  333 8128928

 http://www.geo-solutions.it
 http://twitter.com/geosolutions_it

 ---

 ** **

 On Thu, Aug 29, 2013 at 9:32 AM, Paulius Litvinas paul...@infoera.com
 wrote:

 Hello List,

  

 I tried to make such GeoServer High Availability  Set as in this link:
 http://goo.gl/Hd6F5

  

 Everything works ok except tiled layers .

  

 I tried with default sample layer topp:tasmania_cities.

  

 On separate instances this tiled layer is displayed with no problems.

  


 http://192.168.1.17:8080/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:4326format=image/png
 


 http://192.168.1.17:8081/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:4326format=image/png
 

  

 But if I try to view this layer through load balanced on IIS

  


 http://192.168.1.17/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:4326format=image/png
 

  

 I get 

 Server Error in '/' Application. 

 A potentially dangerous Request.Path value was detected from the client
 (:).

 Description: An unhandled exception occurred during the execution of the
 current web request. Please review the stack trace for more information
 about the error and where it originated in the code. 

 Exception Details: System.Web.HttpException: A potentially dangerous
 Request.Path value was detected from the client (:).

 Source Error: 

 An unhandled exception was generated during the execution of the current
 web request. Information regarding the origin and location of the exception
 can be identified using the exception stack trace below.

 Stack Trace: 

 [HttpException (0x80004005): A potentially dangerous Request.Path value
 was detected from the client (:).]

System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +710

System.Web.PipelineStepManager.ValidateHelper(HttpContext context) +184
 

 Version Information: Microsoft .NET Framework Version:4.0.30319; 
 ASP.NETVersion:4.0.30319.272
 

  

 If I try a group layer (request does not contains „:“) everything work
 fine too.

  

 I tried to put the following config to web.config of jakarta virtual
 directory, but no success.

  

 system.web

 httpRuntime requestValidationMode=2.0
 requestPathInvalidCharacters=/

  pages
 validateRequest=false /

 /system.web

  

 Maybe I missed something?

  

 Thank you for any help.

  

 Sincerely,

 Paulius Litvinas

 GIS Projects Consultant, InfoEra JSC

 

 Mobile: +370 656 10089

 Phone: (+370 5) 278 84 56

 Fax: (+370 5) 278 47 23

 paul...@infoera.com

 S. Zukausko str. 17, LT-08234, 

 Vilnius, Lithuania

 [image: cid:image001.jpg@01C7E646.3BEE7150]

 www.infoera.com 

  



 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 

Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for app-schema WFS service

2013-09-02 Thread Ben Caradoc-Davies
Oiva,

this is unsafe with app-schema layers as accessing these via a 
workspace-specific URL appears to cause the problem. I strongly 
recommend using only the top-level service URLs for app-schema layers 
until this bug is fixed. Exposing workspace GetCapabilities will cause 
workspace service URLs to be discovered.

Kind regards,
Ben.

On 02/09/13 18:21, Hakala Oiva (MTT) wrote:
 Hmm, but is it safe to use per workspace GetCapabilities? I think that is 
 necessary, if one workspace is for WMS, and the other for WFS. We have a 
 confiruration here, where common WMS and WFS are turned off and those 
 services are configured by workspace.

 Oiva Hakala, Agrifood Research Finland



 
 Lähettäjä: Ben Caradoc-Davies [ben.caradoc-dav...@csiro.au]
 Lähetetty: 2. syyskuuta 2013 11:59
 Vastaanottaja: John Callahan
 Kopio: Rini Angreani; geoserver-users@lists.sourceforge.net
 Aihe: Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for 
 app-schema WFSservice

 John,

 thanks very much for your detailed bug report. I can now reliably
 reproduce this behaviour. I have created a Jira issue:
 https://jira.codehaus.org/browse/GEOS-6014

 Per-workspace URLs are a relatively new feature. These are the URLs
 containing geoserver/gsmlp/ows or similar instead of the top-level
 geoserver/ows or similar. It looks like there is a bug in app-schema,
 and that app-schema per-workspace URLs cause corruption of other
 namespaces, if and only if they are the first layer accessed after a
 GeoServer restart.

 The workaround is to not use per-workspace URLs like this:

 http://maps.dgs.udel.edu/geoserver/gsmlp/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

 Instead only use top-level URLs like this:

 http://maps.dgs.udel.edu/geoserver/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

 Thanks again.

 Kind regards,
 Ben.


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


-- 
Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] How to avoid security filter chain file being overwrite during server start ?

2013-09-02 Thread cmaul
Hi Ravi,

the war file is just a zip file. You can delete the config.xml and insert
your new config.xml (obviously at the same place) and distribute this war
file. 
No need to recompile the entire thing.

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.x6.nabble.com/How-to-avoid-security-filter-chain-file-being-overwrite-during-server-start-tp5075656p5075716.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] OpenLayers with App-Schemas

2013-09-02 Thread Rini.Angreani
Hi John,

This looks like a bug when idExpression is not specified: 
https://jira.codehaus.org/browse/GEOT-4554.
While I'm fixing the bug, you can use a workaround by specifying idExpression 
to your database id column.
http://docs.geoserver.org/latest/en/user/data/app-schema/mapping-file.html#idexpression-optional

Cheers
Rini

From: John Callahan [mailto:john.calla...@udel.edu]
Sent: Monday, 2 September 2013 2:24 PM
To: Angreani, Rini (CESRE, Kensington)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] OpenLayers with App-Schemas

I have the same problem as Christy.  The bug fix you reference looks promising. 
 As FYI., from looking in the geoserver log file, I see the following error:

2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - CREATE CONNECTION
2013-09-02 01:48:30,367 TRACE [geotools.core] - ENTRY 4
2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting PropertyName
2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting LiteralExpression
2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - SELECT 
public.geosci_geolunitview100k.identifier,encode(ST_AsEWKB(public.geosci_geolunitview100k.geom),'base64')
 as geom FROM public.geosci_geolunitview100k INNER JOIN ( SELECT DISTINCT 
 FROM public.geosci_geolunitview100k WHERE geom  
ST_GeomFromText('POLYGON ((135058.6446566685 -28179.470173503414, 
135058.6446566685 282487.40294382145, 265105.24270579155 282487.40294382145, 
265105.24270579155 -28179.470173503414, 135058.6446566685 
-28179.470173503414))', 26957) ) temp_alias_used_for_filter ON (  )
2013-09-02 01:48:30,382 DEBUG [geotools.jdbc] - CLOSE CONNECTION
2013-09-02 01:48:30,382 ERROR [geotools.rendering] - java.io.IOException
java.lang.RuntimeException: java.io.IOException
   at 
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:168)
   ..
   ..
... 116 more
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near 
FROM
  Position: 206


I confirm this error by executing the SQL SELECT statement directly to postgis. 
 Coordinate ordering seems fine and the exact same data table works well 
through a non-app-schema based service.



- John


John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
john.calla...@udel.edumailto:john.calla...@udel.edu


On Mon, Sep 2, 2013 at 1:13 AM, Rini Angreani 
rini.angre...@csiro.aumailto:rini.angre...@csiro.au wrote:
Hi Christy,

Apart from Ben's suggestions, I also made a very recent bug fix relating to
WMS with app-schema: https://jira.codehaus.org/browse/GEOT-4550.
Please try the latest from trunk if you're not already using it.

Cheers
Rini



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/OpenLayers-with-App-Schemas-tp5075263p5075509.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for app-schema WFS service

2013-09-02 Thread Hakala Oiva (MTT)

Thanks Ben.

However I do not know anything about app-schema layers. I have published layers 
in a very basic way from shapes and mostly from Postgis database. So maybe I am 
not concerned, when talking about this specific bug. Maybe I get to know later 
what an app-schema layer is ;)

Best regards, 

Oiva


Oiva,

this is unsafe with app-schema layers as accessing these via a
workspace-specific URL appears to cause the problem. I strongly
recommend using only the top-level service URLs for app-schema layers
until this bug is fixed. Exposing workspace GetCapabilities will cause
workspace service URLs to be discovered.

Kind regards,
Ben.

On 02/09/13 18:21, Hakala Oiva (MTT) wrote:
 Hmm, but is it safe to use per workspace GetCapabilities? I think that is 
 necessary, if one workspace is for WMS, and the other for WFS. We have a 
 confiruration here, where common WMS and WFS are turned off and those 
 services are configured by workspace.

 Oiva Hakala, Agrifood Research Finland



 
 Lähettäjä: Ben Caradoc-Davies [ben.caradoc-dav...@csiro.au]
 Lähetetty: 2. syyskuuta 2013 11:59
 Vastaanottaja: John Callahan
 Kopio: Rini Angreani; geoserver-users@lists.sourceforge.net
 Aihe: Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for 
 app-schema WFSservice

 John,

 thanks very much for your detailed bug report. I can now reliably
 reproduce this behaviour. I have created a Jira issue:
 https://jira.codehaus.org/browse/GEOS-6014

 Per-workspace URLs are a relatively new feature. These are the URLs
 containing geoserver/gsmlp/ows or similar instead of the top-level
 geoserver/ows or similar. It looks like there is a bug in app-schema,
 and that app-schema per-workspace URLs cause corruption of other
 namespaces, if and only if they are the first layer accessed after a
 GeoServer restart.

 The workaround is to not use per-workspace URLs like this:

 http://maps.dgs.udel.edu/geoserver/gsmlp/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

 Instead only use top-level URLs like this:

 http://maps.dgs.udel.edu/geoserver/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

 Thanks again.

 Kind regards,
 Ben.


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] OpenLayers with App-Schemas

2013-09-02 Thread John Callahan
Thanks!  I added the idExpression in the mapping file and that did the
trick.  Using Layers Preview, I can now view the WMS for the app-schema WFS
service. It is extremely slow but at least it works.  A GetFeatureInfo
pulls additional fields separate from those defined in app-schema mapping.
 I believe these are from the 'parent' GML schema???  (not sure of
terminology.)

http://maps.dgs.udel.edu/geoserver/gsmlp/wms?service=WMSversion=1.1.0request=GetMaplayers=gsmlp:GeologicUnitViewstyles=bbox=168047.207459393,50089.3156893812,232116.679903062,204218.617080925width=212height=512srs=EPSG:26957format=application/openlayers

As FYI, to create a valid idExpression (one without a leading integer and
not using a CQL function), I need to create a column in my database view to
represent the id.  An example output of id would be fid.sand.898.  I
concatenated fields in my Postgres view as below.

CREATE myView AS
SELECT (('fid.'::text || datatable.formationCode::text) || '.'::text) ||
spatialtable.gid AS id, .


Thanks again.

- John


John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
john.calla...@udel.edu



On Mon, Sep 2, 2013 at 11:56 PM, rini.angre...@csiro.au wrote:

  Hi John,

 ** **

 This looks like a bug when idExpression is not specified:
 https://jira.codehaus.org/browse/GEOT-4554.

 While I’m fixing the bug, you can use a workaround by specifying
 idExpression to your database id column.


 http://docs.geoserver.org/latest/en/user/data/app-schema/mapping-file.html#idexpression-optional
 

 ** **

 Cheers

 Rini

 ** **

 *From:* John Callahan [mailto:john.calla...@udel.edu]
 *Sent:* Monday, 2 September 2013 2:24 PM
 *To:* Angreani, Rini (CESRE, Kensington)
 *Cc:* geoserver-users@lists.sourceforge.net
 *Subject:* Re: [Geoserver-users] OpenLayers with App-Schemas

 ** **

 I have the same problem as Christy.  The bug fix you reference looks
 promising.  As FYI., from looking in the geoserver log file, I see the
 following error:

 ** **

 2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - CREATE CONNECTION

 2013-09-02 01:48:30,367 TRACE [geotools.core] - ENTRY 4

 2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting PropertyName**
 **

 2013-09-02 01:48:30,367 DEBUG [geotools.filter] - exporting
 LiteralExpression

 2013-09-02 01:48:30,367 DEBUG [geotools.jdbc] - SELECT
 public.geosci_geolunitview100k.identifier,encode(ST_AsEWKB(public.geosci_geolunitview100k.geom),'base64')
 as geom FROM public.geosci_geolunitview100k INNER JOIN ( SELECT
 DISTINCT  FROM public.geosci_geolunitview100k WHERE geom 
 ST_GeomFromText('POLYGON ((135058.6446566685 -28179.470173503414,
 135058.6446566685 282487.40294382145, 265105.24270579155
 282487.40294382145, 265105.24270579155 -28179.470173503414,
 135058.6446566685 -28179.470173503414))', 26957) )
 temp_alias_used_for_filter ON (  ) 

 2013-09-02 01:48:30,382 DEBUG [geotools.jdbc] - CLOSE CONNECTION

 2013-09-02 01:48:30,382 ERROR [geotools.rendering] - java.io.IOException**
 **

 java.lang.RuntimeException: java.io.IOException

at
 org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:168)
 

..

..

 ... 116 more

 Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or
 near FROM

   Position: 206

 ** **

 ** **

 I confirm this error by executing the SQL SELECT statement directly to
 postgis.  Coordinate ordering seems fine and the exact same data table
 works well through a non-app-schema based service.  

 ** **

 ** **


 

 - John

 ** **

 ** **

 John Callahan

 Research Scientist

 Delaware Geological Survey

 University of Delaware
 http://www.dgs.udel.edu

 john.calla...@udel.edu 

 ** **

 ** **

 On Mon, Sep 2, 2013 at 1:13 AM, Rini Angreani rini.angre...@csiro.au
 wrote:

 Hi Christy,

 Apart from Ben's suggestions, I also made a very recent bug fix relating to
 WMS with app-schema: https://jira.codehaus.org/browse/GEOT-4550.
 Please try the latest from trunk if you're not already using it.

 Cheers
 Rini



 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/OpenLayers-with-App-Schemas-tp5075263p5075509.html
 

 Sent from the GeoServer - User mailing list archive at Nabble.com.


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 

Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for app-schema WFS service

2013-09-02 Thread Ben Caradoc-Davies
Oiva,

if you have not installed the app-schema plugin, you will not be 
affected by this bug, and it is safe for you to continue using 
per-workspace service URLs.

The app-schema plugin maps simple features (the normal features you 
get from shapefiles/postgis/...) into complex information models defined 
by application schemas:
http://docs.geoserver.org/latest/en/user/data/app-schema/index.html

Kind regards,
Ben.

On 03/09/13 12:59, Hakala Oiva (MTT) wrote:

 Thanks Ben.

 However I do not know anything about app-schema layers. I have published 
 layers in a very basic way from shapes and mostly from Postgis database. So 
 maybe I am not concerned, when talking about this specific bug. Maybe I get 
 to know later what an app-schema layer is ;)

 Best regards,

 Oiva


 Oiva,

 this is unsafe with app-schema layers as accessing these via a
 workspace-specific URL appears to cause the problem. I strongly
 recommend using only the top-level service URLs for app-schema layers
 until this bug is fixed. Exposing workspace GetCapabilities will cause
 workspace service URLs to be discovered.

 Kind regards,
 Ben.

 On 02/09/13 18:21, Hakala Oiva (MTT) wrote:
 Hmm, but is it safe to use per workspace GetCapabilities? I think that is 
 necessary, if one workspace is for WMS, and the other for WFS. We have a 
 confiruration here, where common WMS and WFS are turned off and those 
 services are configured by workspace.

 Oiva Hakala, Agrifood Research Finland



 
 Lähettäjä: Ben Caradoc-Davies [ben.caradoc-dav...@csiro.au]
 Lähetetty: 2. syyskuuta 2013 11:59
 Vastaanottaja: John Callahan
 Kopio: Rini Angreani; geoserver-users@lists.sourceforge.net
 Aihe: Re: [Geoserver-users] [ExternalEmail] Re: prefix null problem for 
 app-schema WFSservice

 John,

 thanks very much for your detailed bug report. I can now reliably
 reproduce this behaviour. I have created a Jira issue:
 https://jira.codehaus.org/browse/GEOS-6014

 Per-workspace URLs are a relatively new feature. These are the URLs
 containing geoserver/gsmlp/ows or similar instead of the top-level
 geoserver/ows or similar. It looks like there is a bug in app-schema,
 and that app-schema per-workspace URLs cause corruption of other
 namespaces, if and only if they are the first layer accessed after a
 GeoServer restart.

 The workaround is to not use per-workspace URLs like this:

 http://maps.dgs.udel.edu/geoserver/gsmlp/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

 Instead only use top-level URLs like this:

 http://maps.dgs.udel.edu/geoserver/ows?service=WFSversion=1.1.0request=GetFeaturetypeName=gsmlp:GeologicUnitViewmaxFeatures=1

 Thanks again.

 Kind regards,
 Ben.


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


 --
 Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
 Software Engineer
 CSIRO Earth Science and Resource Engineering
 Australian Resources Research Centre



-- 
Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] How to avoid security filter chain file being overwrite during server start ?

2013-09-02 Thread Christian Mueller
The config file may be  rewritten when GeoServer is started the first time
and your

GEOSERVER_DATA_DIR/security  directory is from a previous major version.
Migration code is triggered if you switch from

2.1.x to 2.2.x
2.2.x to 2.3.x
2.3.x to 2.4.x

Cheers
Christian



On Tue, Sep 3, 2013 at 5:55 AM, cmaul christian.m...@dse.vic.gov.au wrote:

 Hi Ravi,

 the war file is just a zip file. You can delete the config.xml and insert
 your new config.xml (obviously at the same place) and distribute this war
 file.
 No need to recompile the entire thing.

 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.x6.nabble.com/How-to-avoid-security-filter-chain-file-being-overwrite-during-server-start-tp5075656p5075716.html
 Sent from the GeoServer - User mailing list archive at Nabble.com.


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users




-- 
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users