Re: [Geoserver-users] ArcGrid output file extension ...

2011-08-29 Thread Andrea Aime
On Mon, Aug 29, 2011 at 10:31 PM, quan huynh  wrote:
> Hi all,
>
>     I am new to Geoserver, and try to evaluate it. I downloaded the
> latest source code, compiled, and deployed. When using the demo
> program for getting WCS ArcGrid output file format (1.0.0), the
> generated file has the following format
> "geoserver-GetCoverage.application". Can anyone point me to where the
> output file name + extension get generated.

They are generated in the Response class and subclasses.
The WCS output formats do not override the base behavior and end up
with the base class behavior, which does
geoserver-.
... which is probably a bug... the code should probably use the second part,
it would end up with geoserver-GetCoverage.arcgrid instead of
geoserver-GetCoverage.application (Ian, what do you think?).

It would be better if all WCS output formats could override that method
and provide proper name and extension though

Cheers
Andrea

-- 
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

---

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] How to know the buildings number that located along a line segment

2011-08-29 Thread Andrea Aime
2011/8/29 marwa El-said :
> Hi all,
>
>
> I'm struggling to find a way to get the line direction stored on shape file
> from its geometry, is there any tool can get it for me?
>
> Also, I have two layers of map: Roads layer (of type polyline), Building
> layer (of type polygon)
>
> I wanna to get the number of buildings located on the left or right sides of
> a street segment,Is there any way to do that?
>
> how can i do that through the geometric analysis.

Hmm... this sounds like a WPS (Web Processing Service) application,
though how this needs to get implemented depends a lot on the
data structure.

You may get away with a simple proximity query if you use the "querylayer"
extension, though it won't tell you if a building is right or left and might
intercept unrelated buildings at crossroads.
http://docs.geoserver.org/latest/en/user/extensions/querylayer/index.html

Cheers
Andrea

> Reagrds,
>
> Marwa Elsaid
>
> --
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>



-- 
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

---

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Trainagular Irregular Network (TIN) Documentation?

2011-08-29 Thread Andrea Aime
On Mon, Aug 29, 2011 at 10:19 PM, Curran, Terry
 wrote:
> We are attempting to load our 52-layer TIN of ocean temperature and salinity
> seasonal climatology onto Geoserver.
>
> Can someone please point me toward documentation for storing TINs?

GeoServer does not support TIN data as far as I know. To publish it you
probably have to turn it into a raster.

Out of curiosity, what data format is the TIN stored in?

Cheers
Andrea


-- 
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

---

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Image pyramidal plugin

2011-08-29 Thread Jim White
I am unable to add a store for ImagePyramid. I get the error:

  Could not list layers for this store, an error occurred retrieving 
them: null

geoserver 2.1-RC5
Red Hat 5
tomcat-6.0.33

Jim White

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Trainagular Irregular Network (TIN) Documentation?

2011-08-29 Thread Curran, Terry
We are attempting to load our 52-layer TIN of ocean temperature and salinity 
seasonal climatology onto Geoserver.

Can someone please point me toward documentation for storing TINs?

Terry Curran

Fisheries and Oceans Canada | Pêches et Océans Canada



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] ArcGrid output file extension ...

2011-08-29 Thread quan huynh
Hi all,

 I am new to Geoserver, and try to evaluate it. I downloaded the
latest source code, compiled, and deployed. When using the demo
program for getting WCS ArcGrid output file format (1.0.0), the
generated file has the following format
"geoserver-GetCoverage.application". Can anyone point me to where the
output file name + extension get generated. The ".application" file
extension seems to have issue with IE (Internet Explorer). Thanks for
helping.

Quan

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Horizontal spatial shift and inconsistent behaviour when overlaying WMS and Google satellite

2011-08-29 Thread Andrea Aime
On Mon, Aug 29, 2011 at 1:04 PM, Viola Anne  wrote:
> Hello list,
> I am trying to overlay wms on google satellite, I have read a few articles
> on the same and finally what i have is
> ONE: the WMS layers overlaying vertically but there seems to be a spatial
> shift horizontally (to the right).
> TWO: the WMS does NOT overlay AT ALL at certain zoom levels, while at other
> zoom levels works as described in ONE. attached a screenshot of the shift
> i have downloaded proj4js folder and copied into openlayers folder then
> included the  src="openlayers/proj4js/lib/proj4js-combined.js"> just before
> openlayers.js script. In geoserver i have set the SRS to EPSG:32737 and
> below is relevant piece of openlayers code and a screenshot of the wms &
> google overlay

Often this kind of shift is due to setting the wrong source projection for your
data. Maybe the data layer is based on the same projection, but on a different
ellipsoid (aka the datum)?


Cheers
Andrea


-- 
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

---

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Fwd: Random colors in SLD templates

2011-08-29 Thread Håvard Wahl Kongsgård
Thanks, that solved the problem.

-Håvard

2011/8/29 Andrea Aime :
> 2011/8/29 Håvard Wahl Kongsgård :
>
>>
>> "The requested Style can not be used with this layer. The style
>> specifies an attribute of color and the layer is: :"
>>
>> What have I done wrong?
>
> Wild guess: you added the column to postgis on geoserver back, but
> GS does not know. Try going to the server status page and hit
> the "clear" button  in the "resource cache" row, and then try it again.
>
> Cheers
> Andrea
>
>
>
> --
> ---
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:      +39 0584 962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> --

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Fwd: Random colors in SLD templates

2011-08-29 Thread Andrea Aime
2011/8/29 Håvard Wahl Kongsgård :

>
> "The requested Style can not be used with this layer. The style
> specifies an attribute of color and the layer is: :"
>
> What have I done wrong?

Wild guess: you added the column to postgis on geoserver back, but
GS does not know. Try going to the server status page and hit
the "clear" button  in the "resource cache" row, and then try it again.

Cheers
Andrea



-- 
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

---

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Fwd: Random colors in SLD templates

2011-08-29 Thread Håvard Wahl Kongsgård
Thanks, I tried this code


http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
Simple polygon

  SLD Cook Book: Simple polygon
  

  


  
  color
  




 
   #FF
   2
 


  

  

  



"The requested Style can not be used with this layer. The style
specifies an attribute of color and the layer is: :"

What have I done wrong?

the content of color is

 color
-
 #f4b5f
 #a6be4c
 #31abb5
 #c98180
 #b1558c
 #db686c
 #672474
 #309cae
 #ddb933
 #1c9fea
 #871c67
 #4611fa
 #743229
 #5b1610
 #47ea59
 #8e341e


-Håvard

2011/8/29 David Winslow :
>  name="fill">the_random_property
>
> There's some other nice techniques in the SLD cookbook section of the
> manual, highly recommended reading for GeoServer stylists.
> http://docs.geoserver.org/stable/en/user/styling/index.html
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> 2011/8/29 Håvard Wahl Kongsgård 
>>
>> >If you can modify your data, it might make sense to just add a column of
>> > random values to it and reference those from the SLD - that would allow you
>> > a bit more control if you find that the colors need tweaking (two similar
>> > colors in adjacent polygons, etc.)
>>
>> That would be a simple solution, in the SLD template how do I simply
>> set the color equal to database field value?
>>
>> -Håvard
>>
>> 2011/8/29 David Winslow :
>> > If I wanted to achieve such a thing in Java, I would try something along
>> > the
>> > lines of:
>> >
>> > int hash = feature.getFeatureId().hashCode();
>> > String colorCode = String.format("#%06x", hash & 0xFF);
>> >
>> > I believe there is a format function exposed in GeoServer's SLD
>> > implementation - but I am not sure about a good SLD substitute for
>> > .hashCode.  If you have to, it's not hard for a Java developer to add a
>> > filter function.
>> >
>> > If you can modify your data, it might make sense to just add a column of
>> > random values to it and reference those from the SLD - that would allow
>> > you
>> > a bit more control if you find that the colors need tweaking (two
>> > similar
>> > colors in adjacent polygons, etc.)
>> >
>> > --
>> > David Winslow
>> > OpenGeo - http://opengeo.org/
>> >
>> > 2011/8/28 Håvard Wahl Kongsgård 
>> >>
>> >> Hi, I have a layer with multiple bordering polygons which needs to be
>> >> visually separated.
>> >>
>> >> One possibility is to create a massive SLD template, defining random
>> >> colors for specific polygons.
>> >>
>> >> However, I noticed this post
>> >>
>> >>
>> >> http://osgeo-org.1803224.n2.nabble.com/Random-function-in-SLD-td6125434.html
>> >>
>> >> The problem with that approach is that polygons change colors when
>> >> zooming, and when map tiles are enabled, polygons crossing different
>> >> tiles have multiple colors. With SLD templates is there another way to
>> >> do this?
>> >>
>> >>
>> >> 
>> >> > >>  xsi:schemaLocation="http://www.opengis.net/sld
>> >> StyledLayerDescriptor.xsd"
>> >>  xmlns="http://www.opengis.net/sld";
>> >>  xmlns:ogc="http://www.opengis.net/ogc";
>> >>  xmlns:xlink="http://www.w3.org/1999/xlink";
>> >>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>> >>  
>> >>  
>> >>    default_polygon
>> >>    
>> >>    
>> >>      Default Polygon
>> >>      A sample style that draws a polygon
>> >>      
>> >>      
>> >>      
>> >>        
>> >>          rule1
>> >>          
>> >>                 
>> >>                   
>> >>                     
>> >>                       '#'00
>> >>                       
>> >>                         
>> >>                         100
>> >>                       
>> >>                     
>> >>                   
>> >>                   0.7
>> >>                 
>> >>            
>> >>              #00
>> >>              1
>> >>            
>> >>          
>> >>        
>> >>      
>> >>    
>> >>  
>> >> 
>> >>
>> >> --
>> >> Håvard Wahl Kongsgård
>> >>
>> >>
>> >>
>> >> --
>> >> EMC VNX: the world's simplest storage, starting under $10K
>> >> The only unified storage solution that offers unified management
>> >> Up to 160% more powerful than alternatives and 25% more efficient.
>> >> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
>> >> ___
>> >> Geoserver-users mailing list
>> >> Geoserver-users@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >
>> >
>>
>>
>> --
>> EMC VNX: the world's simplest storage, starting under $10K
>> The only unified storage solution th

Re: [Geoserver-users] SLD-Style for oracle's data

2011-08-29 Thread Andrey Maraev
My problem is the columns of oracle tables have lowercase names, because I
imported tables from postgresql via ogr2ogr. But oracle tables must have the
uppercase column names. Does anyone know what I should to do that the
propertiesname parameter would be like "COLUMNNAME" (with Double inverted
commas) something like this:

*"*place*"*
city
   




2011/8/29 Harikumar Reddy 

> Hi,
>
> It may help you.
>
> http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html
>
> Regards,
> Hari.
>
> On Mon, Aug 29, 2011 at 2:17 PM, Andrey Maraev  wrote:
>
>> Hello list!
>>
>> Could you please help me? First, I imported osm data in oracle and got
>> some tables like (planet_osm_line,planet_osm_point,planet_osm_polygon).
>> Then  I connected to oracle spatial base via geoserver and saw some picture.
>>
>> Finally I want to create some style for my tables(point,polygon,line). Can
>> you show me an example of SLD-style or something else how I can use
>> geoserver with oracle base?
>> I have some style like:
>> 
>> 
>> place
>> city
>>
>> 
>>  But I get the error:
>> code:"internalError"rendering process failed java.io.IOExeption null
>>  ORA-00904: PLACE invalid indentifier
>>
>> But I see the place in Feature Type Details of Layer's settings
>>
>> --
>> lernen,lernen und lernen
>>
>>
>>
>> --
>> EMC VNX: the world's simplest storage, starting under $10K
>> The only unified storage solution that offers unified management
>> Up to 160% more powerful than alternatives and 25% more efficient.
>> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
>> ___
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>


-- 
lernen,lernen und lernen
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SLD-Style for oracle's data

2011-08-29 Thread Harikumar Reddy
Hi,

It may help you.

http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html

Regards,
Hari.

On Mon, Aug 29, 2011 at 2:17 PM, Andrey Maraev  wrote:

> Hello list!
>
> Could you please help me? First, I imported osm data in oracle and got some
> tables like (planet_osm_line,planet_osm_point,planet_osm_polygon). Then  I
> connected to oracle spatial base via geoserver and saw some picture.
> Finally I want to create some style for my tables(point,polygon,line). Can
> you show me an example of SLD-style or something else how I can use
> geoserver with oracle base?
> I have some style like:
> 
> 
> place
> city
>
> 
>  But I get the error:
> code:"internalError"rendering process failed java.io.IOExeption null
>  ORA-00904: PLACE invalid indentifier
>
> But I see the place in Feature Type Details of Layer's settings
>
> --
> lernen,lernen und lernen
>
>
>
> --
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] dynamic adaption of quantity parameter

2011-08-29 Thread Hecke Andreas
Hi to all,

I'm new to the list and right now facing a problem with the style manager. I 
have a GeoTiff representing a actual temperature values for my region and I 
recalculate this layer on a regular basis with an ArcGIS Python script. Most 
obviously, the values in the raster do change when I recalculate it. Now I have 
the problem that I'm only able to define a style where I have fixed quantity 
values that span a very wide area (-40°C to 40°C), because there might be low 
temperatures in winter and very high ones in summer.
The min-max span of the raster itself most of the time is not more than 5°C so 
I get a simple rectangle colored in a very solid way.

Back to my question: I would need some sort of function, so that in the SLD 
description the quantity of my lowest value is set to the actual minimum of the 
raster and the quantity of my highest value is set to the actual maximum of the 
raster, so that it gets easier to distinguish between the areas.

I don't know if that is possible at all and if so, how can I accomplish this 
task?

Best regards


DI(FH) Andreas Hecke
Studienbereich Geoinformation/Wissenschaftlicher Projektmitarbeiter

Fachhochschule Kärnten
gemeinnützige Privatstiftung

Europastr. 4,
9524 Villach/St. Magdalen
T: +43 (0)5/90500-2245
F: +43 (0)5/90500-2010
a.he...@fh-kaernten.at

www.fh-kaernten.at



"Diese Nachricht kann vertrauliche Informationen enthalten und ist nur für die 
namentlich bezeichneten Empfänger bestimmt. Falls Sie nicht namentlich als 
Empfänger dieser Mitteilung angeführt sind, sollten Sie diese Mitteilung nicht 
weiterverbreiten, kopieren oder weiterleiten. Bitte informieren Sie uns 
umgehend per E-Mail, falls Sie diese Mitteilung fälschlicherweise erhalten 
haben und löschen Sie dieses E-Mail endgültig aus Ihrem System.
This message may contain confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail-message by mistake and 
delete this e-mail-message from your system."

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Fwd: Random colors in SLD templates

2011-08-29 Thread David Winslow
the_random_property

There's some other nice techniques in the SLD cookbook section of the
manual, highly recommended reading for GeoServer stylists.
http://docs.geoserver.org/stable/en/user/styling/index.html

--
David Winslow
OpenGeo - http://opengeo.org/

2011/8/29 Håvard Wahl Kongsgård 

> >If you can modify your data, it might make sense to just add a column of
> random values to it and reference those from the SLD - that would allow you
> a bit more control if you find that the colors need tweaking (two similar
> colors in adjacent polygons, etc.)
>
> That would be a simple solution, in the SLD template how do I simply
> set the color equal to database field value?
>
> -Håvard
>
> 2011/8/29 David Winslow :
> > If I wanted to achieve such a thing in Java, I would try something along
> the
> > lines of:
> >
> > int hash = feature.getFeatureId().hashCode();
> > String colorCode = String.format("#%06x", hash & 0xFF);
> >
> > I believe there is a format function exposed in GeoServer's SLD
> > implementation - but I am not sure about a good SLD substitute for
> > .hashCode.  If you have to, it's not hard for a Java developer to add a
> > filter function.
> >
> > If you can modify your data, it might make sense to just add a column of
> > random values to it and reference those from the SLD - that would allow
> you
> > a bit more control if you find that the colors need tweaking (two similar
> > colors in adjacent polygons, etc.)
> >
> > --
> > David Winslow
> > OpenGeo - http://opengeo.org/
> >
> > 2011/8/28 Håvard Wahl Kongsgård 
> >>
> >> Hi, I have a layer with multiple bordering polygons which needs to be
> >> visually separated.
> >>
> >> One possibility is to create a massive SLD template, defining random
> >> colors for specific polygons.
> >>
> >> However, I noticed this post
> >>
> >>
> http://osgeo-org.1803224.n2.nabble.com/Random-function-in-SLD-td6125434.html
> >>
> >> The problem with that approach is that polygons change colors when
> >> zooming, and when map tiles are enabled, polygons crossing different
> >> tiles have multiple colors. With SLD templates is there another way to
> >> do this?
> >>
> >>
> >> 
> >>  >>  xsi:schemaLocation="http://www.opengis.net/sldStyledLayerDescriptor.xsd";
> >>  xmlns="http://www.opengis.net/sld";
> >>  xmlns:ogc="http://www.opengis.net/ogc";
> >>  xmlns:xlink="http://www.w3.org/1999/xlink";
> >>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >>  
> >>  
> >>default_polygon
> >>
> >>
> >>  Default Polygon
> >>  A sample style that draws a polygon
> >>  
> >>  
> >>  
> >>
> >>  rule1
> >>  
> >> 
> >>   
> >> 
> >>   '#'00
> >>   
> >> 
> >> 100
> >>   
> >> 
> >>   
> >>   0.7
> >> 
> >>
> >>  #00
> >>  1
> >>
> >>  
> >>
> >>  
> >>
> >>  
> >> 
> >>
> >> --
> >> Håvard Wahl Kongsgård
> >>
> >>
> >>
> --
> >> EMC VNX: the world's simplest storage, starting under $10K
> >> The only unified storage solution that offers unified management
> >> Up to 160% more powerful than alternatives and 25% more efficient.
> >> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> >> ___
> >> Geoserver-users mailing list
> >> Geoserver-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
> >
>
>
> --
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Fwd: Random colors in SLD templates

2011-08-29 Thread Håvard Wahl Kongsgård
>If you can modify your data, it might make sense to just add a column of 
>random values to it and reference those from the SLD - that would allow you a 
>bit more control if you find that the colors need tweaking (two similar colors 
>in adjacent polygons, etc.)

That would be a simple solution, in the SLD template how do I simply
set the color equal to database field value?

-Håvard

2011/8/29 David Winslow :
> If I wanted to achieve such a thing in Java, I would try something along the
> lines of:
>
> int hash = feature.getFeatureId().hashCode();
> String colorCode = String.format("#%06x", hash & 0xFF);
>
> I believe there is a format function exposed in GeoServer's SLD
> implementation - but I am not sure about a good SLD substitute for
> .hashCode.  If you have to, it's not hard for a Java developer to add a
> filter function.
>
> If you can modify your data, it might make sense to just add a column of
> random values to it and reference those from the SLD - that would allow you
> a bit more control if you find that the colors need tweaking (two similar
> colors in adjacent polygons, etc.)
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> 2011/8/28 Håvard Wahl Kongsgård 
>>
>> Hi, I have a layer with multiple bordering polygons which needs to be
>> visually separated.
>>
>> One possibility is to create a massive SLD template, defining random
>> colors for specific polygons.
>>
>> However, I noticed this post
>>
>> http://osgeo-org.1803224.n2.nabble.com/Random-function-in-SLD-td6125434.html
>>
>> The problem with that approach is that polygons change colors when
>> zooming, and when map tiles are enabled, polygons crossing different
>> tiles have multiple colors. With SLD templates is there another way to
>> do this?
>>
>>
>> 
>> >  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
>>  xmlns="http://www.opengis.net/sld";
>>  xmlns:ogc="http://www.opengis.net/ogc";
>>  xmlns:xlink="http://www.w3.org/1999/xlink";
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>>  
>>  
>>    default_polygon
>>    
>>    
>>      Default Polygon
>>      A sample style that draws a polygon
>>      
>>      
>>      
>>        
>>          rule1
>>          
>>                 
>>                   
>>                     
>>                       '#'00
>>                       
>>                         
>>                         100
>>                       
>>                     
>>                   
>>                   0.7
>>                 
>>            
>>              #00
>>              1
>>            
>>          
>>        
>>      
>>    
>>  
>> 
>>
>> --
>> Håvard Wahl Kongsgård
>>
>>
>> --
>> EMC VNX: the world's simplest storage, starting under $10K
>> The only unified storage solution that offers unified management
>> Up to 160% more powerful than alternatives and 25% more efficient.
>> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
>> ___
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Printing google maps

2011-08-29 Thread David Winslow
The GeoServer extension for Mapfish printing is a pretty tiny one - we don't
modify its behavior at all, just make it listen to requests under
GeoServer.  This sort of question is, I think, better suited for the mapfish
mailing list.  But please let us (me) know if they need more information
about how we use the module or it turns out this error is a problem with
code in GeoServer.

--
David Winslow
OpenGeo - http://opengeo.org/

On Mon, Aug 29, 2011 at 5:01 AM, Robert Buckley wrote:

> Hi,
>
> I think i could have posted this in either the geoext/openlayers or mapfish
> lists, but have decided to post it here as the print module is installed
> into geoserver on my setup.
>
> I am in the process of create a print function for my client app, which
> makes use of config.yaml and the mapfish print module.
>
> As I have google maps in my application, I would also like to print these
> as baselayers under my wms data.
>
> I always thought that the use of these basemaps for print purposes without
> a google licence was prohibited, but reading this google guide...
>
> http://maps.google.com/support/bin/static.py?page=ts.cs&ts=1342531
>
> ... I am now not so sure.
>
> As far as I can understand as long as the google attribution is present(ie
> the google logo) I can print for "Professional Use" purposes.
>
> Has anyone any experience in this matter?
>
> yours,
>
> Rob
>
>
> --
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Random colors in SLD templates

2011-08-29 Thread David Winslow
If I wanted to achieve such a thing in Java, I would try something along the
lines of:

int hash = feature.getFeatureId().hashCode();
String colorCode = String.format("#%06x", hash & 0xFF);

I believe there is a format function exposed in GeoServer's SLD
implementation - but I am not sure about a good SLD substitute for
.hashCode.  If you have to, it's not hard for a Java developer to add a
filter function.

If you can modify your data, it might make sense to just add a column of
random values to it and reference those from the SLD - that would allow you
a bit more control if you find that the colors need tweaking (two similar
colors in adjacent polygons, etc.)

--
David Winslow
OpenGeo - http://opengeo.org/

2011/8/28 Håvard Wahl Kongsgård 

> Hi, I have a layer with multiple bordering polygons which needs to be
> visually separated.
>
> One possibility is to create a massive SLD template, defining random
> colors for specific polygons.
>
> However, I noticed this post
>
> http://osgeo-org.1803224.n2.nabble.com/Random-function-in-SLD-td6125434.html
>
> The problem with that approach is that polygons change colors when
> zooming, and when map tiles are enabled, polygons crossing different
> tiles have multiple colors. With SLD templates is there another way to
> do this?
>
>
> 
>   xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
>  xmlns="http://www.opengis.net/sld";
>  xmlns:ogc="http://www.opengis.net/ogc";
>  xmlns:xlink="http://www.w3.org/1999/xlink";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  
>  
>default_polygon
>
>
>  Default Polygon
>  A sample style that draws a polygon
>  
>  
>  
>
>  rule1
>  
> 
>   
> 
>   '#'00
>   
> 
> 100
>   
> 
>   
>   0.7
> 
>
>  #00
>  1
>
>  
>
>  
>
>  
> 
>
> --
> Håvard Wahl Kongsgård
>
>
> --
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] editing several wfs-t in different SRS via web client

2011-08-29 Thread maning sambale
I have a geoext-based webclient for editing wfs-t.  Good practice
dictates that all data overlays should be in a similar SRS.  However,
in this case, I have several layers in various SRS which Geoserver
elegantly re-project into either 4326 or 900913.  When combining the
layers in a single webclient, is it OK to edit them without any major
projection issues?

-- 
cheers,
maning
--
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
--

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Splitting labels onto a new line in an SLD

2011-08-29 Thread Ricardo Bayley
Hi Alison,

You can try with line breaks \n in your label text. Not sure how to colour
differently each line.

My really long label  --> My \n really \long \n label

It will create a line break for every \n


rb


2011/8/23 Alison Thomson 

>  Hi,
>
> ** **
>
> Is it possible to split apart a label where a space occurs and replace the
> space with a carriage return in an SLD file. For example the text string
> would be Red Green and this should appear like this:
>
> ** **
>
> Red
>
> Green
>
> ** **
>
> We have tried to use the strReplace but with limited success.
>
> ** **
>
> Any help on this will be very much appreciated.
>
> ** **
>
> Alison
>
> *Simplify. Automate. Integrate.*
>
> *Dotted Eyes*
> Hanbury Court, Harris Business Park, Stoke Prior, Bromsgrove, B60 4JJ, UK
>
> *Join us at seminars and exhibitions*
> View our event calendar 
>
> *Data sharing simplified for staff and contractors*
> How the National Trust saved 300 man hours in 6 
> weeks
>
> *Buy support or register for training online*
> Visit our website 
>
> ResponseMX dynamic web maps: www.dottedeyes.com/rmx
> Spatial data loading: www.dottedeyes.com/spatial
> Ready-to-use digital maps & data: www.dottedeyes.com/data
> For a sales enquiry email: sa...@dottedeyes.com
> For technical support login to: http://dottedeyes.helpserve.com
>
>
> --
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] How to know the buildings number that located along a line segment

2011-08-29 Thread marwa El-said

Hi all,


I'm struggling to find a way to get the line direction stored on shape file 
from its geometry, is there any tool can get it for me?

Also, I have two layers of map: Roads layer (of type polyline), Building layer 
(of type polygon)

I wanna to get the number of buildings located on the left or right sides of a 
street segment,Is there any way to do that?

how can i do that through the geometric analysis.

Reagrds,  

Marwa Elsaid

  --
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] mapfish scalebar seems to be wrong

2011-08-29 Thread Robert Buckley
Actually after inspecting the printed map, It seems the scalebar and scale text 
are ok, but the map is scaled down so that they are not compatible.

Where should I look to solve this?

yours,

Rob




Von: Robert Buckley 
An: geoserver-users@lists.sourceforge.net
Gesendet: Montag, den 29. August 2011, 12:10:03 Uhr
Betreff: [Geoserver-users] mapfish scalebar seems to be wrong


Hi,

I have found nothing on this subject in the mapfish user lists, but my scalebar 
is wrong when I export to pdf using the mapfish print module

I´m sure this is a newbie question but can´t see how to configure this in 
config.yaml 

any help would be great,

yours,

Rob--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] mapfish scalebar seems to be wrong

2011-08-29 Thread Robert Buckley
Hi,

I have found nothing on this subject in the mapfish user lists, but my scalebar 
is wrong when I export to pdf using the mapfish print module

I´m sure this is a newbie question but can´t see how to configure this in 
config.yaml 

any help would be great,

yours,

Rob--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SLD-Style for oracle's data

2011-08-29 Thread Andrea Aime
On Mon, Aug 29, 2011 at 10:47 AM, Andrey Maraev  wrote:
> Hello list!
>
> Could you please help me? First, I imported osm data in oracle and got some
> tables like (planet_osm_line,planet_osm_point,planet_osm_polygon). Then  I
> connected to oracle spatial base via geoserver and saw some picture.
> Finally I want to create some style for my tables(point,polygon,line). Can
> you show me an example of SLD-style or something else how I can use
> geoserver with oracle base?
> I have some style like:
> 
> 
>             place
>             city
>            
> 
>  But I get the error:
> code:"internalError"rendering process failed java.io.IOExeption null
>  ORA-00904: PLACE invalid indentifier
>
> But I see the place in Feature Type Details of Layer's settings

In Oracle identifiers are normally uppercase... have you tried PLACE
instead of place?

Cheers
Andrea

>
> --
> lernen,lernen und lernen
>
>
> --
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>



-- 
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

---

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Printing google maps

2011-08-29 Thread Robert Buckley
Hi,

I think i could have posted this in either the geoext/openlayers or mapfish 
lists, but have decided to post it here as the print module is installed into 
geoserver on my setup.

I am in the process of create a print function for my client app, which makes 
use of config.yaml and the mapfish print module.

As I have google maps in my application, I would also like to print these as 
baselayers under my wms data.

I always thought that the use of these basemaps for print purposes without a 
google licence was prohibited, but reading this google guide...

http://maps.google.com/support/bin/static.py?page=ts.cs&ts=1342531

... I am now not so sure.

As far as I can understand as long as the google attribution is present(ie the 
google logo) I can print for "Professional Use" purposes.

Has anyone any experience in this matter?

yours,

Rob--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] SLD-Style for oracle's data

2011-08-29 Thread Andrey Maraev
Hello list!

Could you please help me? First, I imported osm data in oracle and got some
tables like (planet_osm_line,planet_osm_point,planet_osm_polygon). Then  I
connected to oracle spatial base via geoserver and saw some picture.
Finally I want to create some style for my tables(point,polygon,line). Can
you show me an example of SLD-style or something else how I can use
geoserver with oracle base?
I have some style like:


place
city
   

 But I get the error:
code:"internalError"rendering process failed java.io.IOExeption null
 ORA-00904: PLACE invalid indentifier

But I see the place in Feature Type Details of Layer's settings

-- 
lernen,lernen und lernen
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Error performing update over wfs-t

2011-08-29 Thread David Alda Fernandez de Lezea
Jukka,

I haven't got any control over that. I use an openlayers layer with WFS 
Protocol and a SaveStrategy, and it does all the updating process on it's own. 
Maybe I can take the request and modify it manually.

Anyway, it seems quite strange if the problem is what you mentioned, moreover 
knowing that the insertion process works, isn't it?

Besides, while configurating the SaveStrategy, I set the schema of the 
typename, so it should know all the fields.

I've noticed in the GeoServer's SQL sentence that there are 2 fields missing 
(PARCELA_AG,GRUPO) but they might be null.

The GeoServer sentence is as follows

UPDATE USRCARTO.GT_ARLOGIS_UG_ED50 SET GEOMETRY = ?,CODEX = ?,UG = ?,VERSION = 
?,TOPONIMO = ?,PROVINCIA = ?,MUNICIPIO = ?,AGREGADO = ?,ZONA = ?,POLIGONO = 
?,PARCELA = ?,RECINTO = ?,CONUSUCOD = ?,CONMODFEC = ?  WHERE (GID = ?)

Do I have to set those fields to some other value, just in case??

Thanks.

Regards,
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Enviado el: lunes, 29 de agosto de 2011 9:07
Para: 'geoserver-users@lists.sourceforge.net'
Asunto: Re: [Geoserver-users] Error performing update over wfs-t

Hi, 

One idea is that the list of properties in WFS is a sequence so attributes 
should be in the same order than they are listed in the schema. In your schema 
GEOMETRY is the last attribute. I do not know if this is your trouble now but I 
have fased the property order issue with a certain GIS software which ordered 
attributes into nice alphabetical order. Rather good idea for a user selecting 
attributes to be fetched but it lead to failing GetFeature requests.

-Jukka Rahkonen-

David Alda Fernandez de Lezea wrote:

 
> Hi list,
> 
> Once I managed to get working inserting and deleting geometries I'm on 
> the task of making updating work. Both options, alphanumeric and 
> geometry modification, are required. I send the following update 
> request:
> 
> http://www.opengis.net/wfs"; 
> service="WFS" version="1.1.0" 
> xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd
> http://192.168.3.15/ikt
> http://192.168.3.15/geoserver/wfs?request=DescribeFeatureType&;
version=1.1.0&typename=IKT:UnidadesGestion" > 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  xmlns:feature="http://192.168.3.15/ikt";>
> 
> GEOMETRY
> 
> http://www.opengis.net/gml"; 
> srsName="EPSG:23030">
> 
> 
> ...
> 
> 
> 
> 
> 
> 
> GID
> 104
> 
> 
> CODEX
> 010130050002
> 
> 
> UG
> 13
> 
> 
> VERSION
> 1
> 
> 
> TOPONIMO
> UG_13
> 
> 
> PROVINCIA
> 1
> 
> 
> MUNICIPIO
> 13
> 
> 
> AGREGADO
> 0
> 
> 
> ZONA
> 0
> 
> 
> POLIGONO
> 3
> 
> 
> PARCELA
> 481
> 
> 
> RECINTO
> 6
> 
> 
> CONUSUCOD
> lursail
> 
> 
> CONMODFEC
> 09-ago-2011
> 
> http://www.opengis.net/ogc";>
> 
> 
> 
> 
> 
> And I get the following error response:
> 
> 2011-08-29 08:21:35,687 TRACE [org.geotools.core] -
> condition: Filter.INCLUDE
> 2011-08-29 08:21:35,687 DEBUG [org.geotools.jdbc] - CREATE CONNECTION
> 2011-08-29 08:21:35,687 TRACE [org.geotools.core] - ENTRY 22
> 2011-08-29 08:21:35,687 DEBUG [org.geotools.jdbc] - SELECT 
> GID,CODEX,UG,VERSION,TOPONIMO,PROVINCIA,MUNICIPIO,AGREGADO,ZON
> A,POLIGONO,PARCELA,RECINTO,PARCELA_AG,CONUSUCOD,CONMODFEC,GRUP
> O,GEOMETRY as GEOMETRY FROM USRCARTO.GT_ARLOGIS_UG_ED50 WHERE (GID = 
> ?)
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - 1 = 103
> 2011-08-29 08:21:35,703 INFO [org.geoserver.gwc.GWCCleanser]
> - Deleting GWC cache for IKT:UnidadesGestion
> 2011-08-29 08:21:35,703 TRACE [org.geotools.core] - ENTRY 22
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - SELECT 
> GID,CODEX,UG,VERSION,TOPONIMO,PROVINCIA,MUNICIPIO,AGREGADO,ZON
> A,POLIGONO,PARCELA,RECINTO,PARCELA_AG,CONUSUCOD,CONMODFEC,GRUP
> O,GEOMETRY as GEOMETRY FROM USRCARTO.GT_ARLOGIS_UG_ED50 WHERE (GID = 
> ?)
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - 1 = 103
> 2011-08-29 08:21:35,703 TRACE [org.geotools.core] - ENTRY 22
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - Updating features 
> with prepared statement: UPDATE USRCARTO.GT_ARLOGIS_UG_ED50 SET 
> GEOMETRY = ?,CODEX = ?,UG = ?,VERSION = ?,TOPONIMO = ?,PROVINCIA = 
> ?,MUNICIPIO = ?,AGREGADO = ?,ZONA = ?,POLIGONO = ?,PARCELA = ?,RECINTO 
> = ?,CONUSUCOD = ?,CONMODFEC = ?  WHERE (GID = ?)
> 2011-08-29 08:21:35,703 TRACE [org.geotools.data.oracle.sdo

Re: [Geoserver-users] Error performing update over wfs-t

2011-08-29 Thread Rahkonen Jukka
Hi, 

One idea is that the list of properties in WFS is a sequence so attributes 
should be in the same order than they are listed in the schema. In your schema 
GEOMETRY is the last attribute. I do not know if this is your trouble now but I 
have fased the property order issue with a certain GIS software which ordered 
attributes into nice alphabetical order. Rather good idea for a user selecting 
attributes to be fetched but it lead to failing GetFeature requests.

-Jukka Rahkonen-

David Alda Fernandez de Lezea wrote:

 
> Hi list,
> 
> Once I managed to get working inserting and deleting 
> geometries I'm on the task of making updating work. Both 
> options, alphanumeric and geometry modification, are 
> required. I send the following update request:
> 
> http://www.opengis.net/wfs"; 
> service="WFS" version="1.1.0" 
> xsi:schemaLocation="http://www.opengis.net/wfs 
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd 
> http://192.168.3.15/ikt 
> http://192.168.3.15/geoserver/wfs?request=DescribeFeatureType&;
version=1.1.0&typename=IKT:UnidadesGestion" > 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  xmlns:feature="http://192.168.3.15/ikt";>
> 
> GEOMETRY
> 
> http://www.opengis.net/gml"; 
> srsName="EPSG:23030">
> 
> 
> ...
> 
> 
> 
> 
> 
> 
> GID
> 104
> 
> 
> CODEX
> 010130050002
> 
> 
> UG
> 13
> 
> 
> VERSION
> 1
> 
> 
> TOPONIMO
> UG_13
> 
> 
> PROVINCIA
> 1
> 
> 
> MUNICIPIO
> 13
> 
> 
> AGREGADO
> 0
> 
> 
> ZONA
> 0
> 
> 
> POLIGONO
> 3
> 
> 
> PARCELA
> 481
> 
> 
> RECINTO
> 6
> 
> 
> CONUSUCOD
> lursail
> 
> 
> CONMODFEC
> 09-ago-2011
> 
> http://www.opengis.net/ogc";>
> 
> 
> 
> 
> 
> And I get the following error response:
> 
> 2011-08-29 08:21:35,687 TRACE [org.geotools.core] - 
> condition: Filter.INCLUDE
> 2011-08-29 08:21:35,687 DEBUG [org.geotools.jdbc] - CREATE CONNECTION
> 2011-08-29 08:21:35,687 TRACE [org.geotools.core] - ENTRY 22
> 2011-08-29 08:21:35,687 DEBUG [org.geotools.jdbc] - SELECT 
> GID,CODEX,UG,VERSION,TOPONIMO,PROVINCIA,MUNICIPIO,AGREGADO,ZON
> A,POLIGONO,PARCELA,RECINTO,PARCELA_AG,CONUSUCOD,CONMODFEC,GRUP
> O,GEOMETRY as GEOMETRY FROM USRCARTO.GT_ARLOGIS_UG_ED50 WHERE 
> (GID = ?)
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - 1 = 103
> 2011-08-29 08:21:35,703 INFO [org.geoserver.gwc.GWCCleanser] 
> - Deleting GWC cache for IKT:UnidadesGestion
> 2011-08-29 08:21:35,703 TRACE [org.geotools.core] - ENTRY 22
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - SELECT 
> GID,CODEX,UG,VERSION,TOPONIMO,PROVINCIA,MUNICIPIO,AGREGADO,ZON
> A,POLIGONO,PARCELA,RECINTO,PARCELA_AG,CONUSUCOD,CONMODFEC,GRUP
> O,GEOMETRY as GEOMETRY FROM USRCARTO.GT_ARLOGIS_UG_ED50 WHERE 
> (GID = ?)
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - 1 = 103
> 2011-08-29 08:21:35,703 TRACE [org.geotools.core] - ENTRY 22
> 2011-08-29 08:21:35,703 DEBUG [org.geotools.jdbc] - Updating 
> features with prepared statement: UPDATE 
> USRCARTO.GT_ARLOGIS_UG_ED50 SET GEOMETRY = ?,CODEX = ?,UG = 
> ?,VERSION = ?,TOPONIMO = ?,PROVINCIA = ?,MUNICIPIO = 
> ?,AGREGADO = ?,ZONA = ?,POLIGONO = ?,PARCELA = ?,RECINTO = 
> ?,CONUSUCOD = ?,CONMODFEC = ?  WHERE (GID = ?)
> 2011-08-29 08:21:35,703 TRACE [org.geotools.data.oracle.sdo] 
> - ordinates D:2
> 2011-08-29 08:21:35,703 TRACE [org.geotools.data.oracle.sdo] 
> - ordinates L:0
> 2011-08-29 08:21:35,718 INFO [org.geoserver.gwc.GWCCleanser] 
> - GWC cache for IKT:UnidadesGestion deleted successfully
> 2011-08-29 08:21:35,734 DEBUG [org.geotools.data.oracle.sdo] 
> - Using layer SRID: 82337
> 2011-08-29 08:21:35,734 DEBUG [org.geotools.jdbc] - Setting 
> parameter 1 as 
> MDSYS.SDO_GEOMETRY(2003,82337,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1
> ,1003,1),MDSYS.SDO_ORDINATE_ARRAY(542216.31591797,4748814.0424
> 8047,542216.28972476,4748813.84688567,542200.58086508,4748820.
> 57352164,542196.9625809,4748822.38507369,542192.22516798,47488
> 24.75757372,542186.22449539,4748827.75529862,542182.42511197,4
> 748831.19472488,542179.5618309,4748833.78352006,542176.8017896
> 8,4748836.27986538,542166.03220318,4748841.21243124,542155.674
> 90729,4748843.65287875,542150.78073412,4748844.80503932,542137
> .76901441,4748844.79973343,542127.45126087,4748847.49179368,54
> 2110.84715069,4748857.3687093,542109.20888496,4748858.87594993
> ,542094.57454906,4748872.35803089,542093.79674258,4748873.0700
> 1813,542082.60047153,4748878.40036373,542074.95319467,4748882.
> 04900404,542052.0660327,4748885.185525,542039.81161435,4748885
> .59460792,542038.60671716,4748885.63378137,542020.2138498,4748
> 878.0094084,541998.67244229,4748872.618491,541966.36974969,474
> 8866.34279196,541946.62701146,4748862.30343564,541946.55964653
> ,4748862.12616417,541941.67252765,4748849.79058353,541942.4266
> 9678,4748848.46411133,541950.85528565,4748831.2019043,541955.8
> 8287354,4748820.52789307,541959.51867676,4748810.2177124,54196
> 5.34631348,4748788.45288086,541975.26971436,4748742.72528076,5
> 41982.57769775,4748710.60913086,541984.38189697,4748704.355712
> 89,541985.69873047,4748700.53790283,541