[Geoserver-users] GEOSERVER AND CQL FILETR

2017-10-27 Thread annalisa
Hi to everyone!
Please can tou help me?
I have a map populate by a layer wms loaded in geoserver, that takes points
from a db.
The layer regulary appears on my map, but if i set same filter (for example
i want to see all the points that have name='anna') the layer regulary is
refreshed, but if i clicked on the map where there are now (after filter)
points, the description of my point appears.
It seems like if the points stay on my map but only are hidden, meanwhile i
want to remove them.
I can i do?
thank you!
<http://osgeo-org.1560.x6.nabble.com/file/t381050/mappa.png> 



-
annalisa
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GEOSERVER AND ZOOM

2017-10-09 Thread annalisa
Hi guy!
I'm using geoserver and in my map, clicking on a button, I filter the
markers basing on state name.
The problem is that the zoom is always the same, meanwhile i want to zoom
and center the map based on my filters.
I can i do?

Here my code to filter data

  var filterParams = {
  'FILTER': null,
  'CQL_FILTER': null,
  'FEATUREID': null
  };
   if (filterType == "cql") {
  filterParams["CQL_FILTER"] = "states_code='IT'";
  }
   
 
   

  map.getLayers().forEach(function (lyr) {
   
  lyr.getSource().updateParams(filterParams);
  });


and the script formy map is here


 var map = new ol.Map({
  controls: ol.control.defaults({
  attribution: false
  }).extend([mousePositionControl]),
  layers: [base  ],
  overlays: [overlay],
  target: 'map',
  view: new ol.View({
  projection: projection
  })
  });
  
  //  map.addLayer(gruppo);
   map.addLayer(untiled); 

i filter my markers based on my  ol.source.ImageWMS.


thanks



-
annalisa
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geoserver and CQL FILTER

2017-10-09 Thread annalisa
Hi guy!
I'm working with geoserver and i have understood how to filter markers on a
map using CQL FILER.
After a search, geoserver filters rightly my markers, but if i clicked on
the map in a point where there are not markers (before filters there are
markers, after no correctly)  a infowindow appears, describing the marker
that not exists visually.
Anyone can help me? why clicking on the map where there is not a marker
appear me a description?
Thanks...



-
annalisa
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver getGetFeatureInfoUrl 403 error

2017-06-15 Thread annalisa
Hi guy
i'm working with singleclick and i used the following code


 map.on('singleclick', function (evt) {


  // Attempt to find a marker from the planningAppsLayer
  var feature = map.forEachFeatureAtPixel(evt.pixel, function
(feature, layer) {
  return feature;
  });

  if (feature) {

  var coord = feature.getGeometry().getCoordinates();
  var props = feature.getProperties();
  var info = "
" + props.casereference + " <" + props.caseurl + ">  
";
  info += "" + props.locationtext + "";
  info += "Status: " + props.status + " " + props.statusdesc
+ "";
  alert(info);


  } else {
   var view = map.getView();
  var viewResolution = view.getResolution();
  var url = tiled.getSource().getGetFeatureInfoUrl(
evt.coordinate, viewResolution, view.getProjection(),
{
'INFO_FORMAT': 'application/json',
'propertyName': 'ID,cod_istat',
'STYLES':'point',
'FEATURE_COUNT': 1
});
 
   
  reqwest({
  url: url,
  type: 'json',
  }).then(function (data) {

  var feature = data.features[0];
  var props = feature.properties;
  var info = "
" + props.ID + "
" + props.cod_istat + "";
   alert(info);


  });

  }

  });


the probles is that if a see browser console i receive the following message
when i call the url
OPTIONS 
XHR 
http://localhost:8080/geoserver/ANANLISA/wms [HTTP/1.1 403 Forbidden 1ms]
meanwhile if a call the url by browser i see the correct result


type"FeatureCollection"
totalFeatures   "unknown"
features
0   
type"Feature"
id  "view_point_1804.fid--51e9cd92_15caaa945f0_-762f"
geometry
properties  
ID  37387
cod_istat   "057040"
crs


why i'm not able to see the result in my single click event?
I suppose it's a problem of roles but i don't know how to resolve it.

thanks

Annalisa





-
annalisa
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-getGetFeatureInfoUrl-403-error-tp5324305.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver singleclick

2017-06-12 Thread annalisa
Hi guy
anyone can help me?
In my page i have a layer  that is connected with a geoserver layer, but i
want that, clicking a point on the map, i want to extract a property (es. in
my layer i have id, city, cap and i want to extract city) but i'm not able
to...
My actual situation is this
<http://osgeo-org.1560.x6.nabble.com/file/n5323887/Immagine.png> 

but i want to see not all the proprities but only one (and to modify css
style) like this

<http://osgeo-org.1560.x6.nabble.com/file/n5323887/Immagine2.png> 
how can i do???

that's my code

  map.on('singleclick', function (evt) {

  var view = map.getView();
  var viewResolution = view.getResolution();
  var source = untiled.get('visible') ? untiled.getSource() :
tiled.getSource();
  var url = source.getGetFeatureInfoUrl(
evt.coordinate, viewResolution, view.getProjection(),
{ 'INFO_FORMAT': 'text/html', 'FEATURE_COUNT': 50 });
  if (url) {
var coordinate = evt.coordinate;
content.innerHTML = 'my test '+'';
overlay.setPosition(coordinate);
 }
 }

I think my problem is info format and how to read data...


Another question: i have to use wms o wfs?? sorry i'm so confused!
please help me!!





-
annalisa
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-singleclick-tp5323887.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver and sld rest services

2017-05-03 Thread annalisa
hi guy
please help me!
I'm working in progress with geoserver but i want to style my layer in
geoserver.
I understand how to style using data section and styles, and i tried to
change my points based on a parameter (id_point) but now i want to change
the image of my points using a sql server data table, how can i do?
yust for now i have a style like this

   id 1
   coloreid_point 1
   
 
   id_point
   1
 
   
   
 
   
 circle
 
   #ff
 
   
   8
 
   
 




thanks!!




-
annalisa
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-and-sld-rest-services-tp5319252.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] geoserver install css plugin

2017-04-27 Thread annalisa
thank!!!



-
annalisa
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-install-css-plugin-tp5318568p5318691.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver install css plugin

2017-04-27 Thread annalisa
hi guy
anyone can help me?
i'm new in geoserver. 
I want to install css plugin in geoserver but after installation no new
items appears in my left-menu.
I have geoserver 2.10.2, so i downloaded css plugin 2.10. after this i
extract my jar files and copy to my geoserver/web-inf/lib folder, i restart
geoserver but nothing happens; so i restart tomcat and also restart my pc
but no changes appear. Why i'm not able to install this plugin?
Nothing appears in my geoserver log..



-
annalisa
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-install-css-plugin-tp5318568.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver call layer and filter CQL

2017-04-19 Thread annalisa
hi guy,
another question please!
i understand how generate layer in geoserver and and how filter them but if
in my visual studio project i want to call my layer in geoserver how can i
do?
i've tried to copy javascript code from openlayer preview and paste it to my
html page, and that all ok!
the problem is that if i want to filter data, the CQL filters work well in
geoserver layer preview but not in visual studio.
is my steps good to recall a geoserver layer or exists a simple way?
thanks a lot
 



-
annalisa
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-call-layer-and-filter-CQL-tp5317744.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver query WMS

2017-04-18 Thread annalisa
hi guy
someone can help me?
i've installed geoserver and i connected to my database and table tbl_places
(sql server) in which i have my points.
In my table i have one column for my point and one column for my category
(for example bank, museaum, station).
Now i want to filter points in my map  by category: how can i do?
thank you




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-query-WMS-tp5317640.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] geoserver connect to sql server

2017-04-18 Thread annalisa
Good afternoon!
Thanks so much for your help!
Another question... 
I have included in my table a new column that contains
geometry::Point(lon,lat) and now geoserver see my points.
The second ( and third) problem is that the reference system is not the
right one ( my point are in italy and in geoserver they refer to atlantic
ocean) and that i have to zoom to much to see distinct point, meanwhile is
not right.
I underline that in my table i have coordinates like <43.789789;11.898989>
from google maps...



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-connect-to-sql-server-tp5317579p5317621.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver connect to sql server

2017-04-18 Thread annalisa
hi guy,
i'm new in GeoServer but i want to ask you: how to take coordinates from a
sql server database where i have a column called lat and a column called lon
where the reference system is google maps?
To be more specific:
i have a sql server database and i have a table, called tbl_places in witch
i have a lot of records as <43.89898;11.989898> , <22.89898;12.909>
I want geoserver recognize my google maps coordinates and show me in a
openlayer maps.

I've already installed geoserver and the connection to sql server is ok, but
i don't know how to tell geoserver that my column lat and lon( double type)
are my coordinates.
Anybody can help me?
Thanks you 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/geoserver-connect-to-sql-server-tp5317579.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] error on using svg or png in style

2016-07-18 Thread Annalisa Schiavon
Oh, the matter was "se:Title"  I've added that line to the original sld
saved by QGIS. Thank you so much!

Yes the scaled image was not very good ... now I'll try with an svg.

There is a suggested place where to download free svg / png for QGIS and /
or for Geoserver?
Someone told me about a project to share free QGIS styles between users,
maybe there is already something for geoserver?

Thanks

2016-07-18 13:57 GMT+02:00 Andrea Aime :

> Hi Annalisa,
> weird, I've tried the style on a 2.9.x (2.7.x is not supported anymore)
> and I get this validation error:
>
> line 7: cvc-complex-type.2.4.a: Invalid content was found starting with
> element 'se:Title'. One of '{"http://www.opengis.net/se":Description, "
> http://www.opengis.net/sld":IsDefault, 
> "http://www.opengis.net/se":FeatureTypeStyle,
> "http://www.opengis.net/se":CoverageStyle, 
> "http://www.opengis.net/se":OnlineResource}'
> is expected.
>
> This modified style appears to validate and work instead:
>
> 
> http://www.opengis.net/sld"; xmlns:ogc="
> http://www.opengis.net/ogc"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; version="1.1.0" xmlns:xlink="
> http://www.w3.org/1999/xlink"; xsi:schemaLocation="
> http://www.opengis.net/sld
> http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"; xmlns:se="
> http://www.opengis.net/se";>
>   
> srb_nero
> 
>   
> 
>   Single symbol
>   
> 
>   
> http://geomap.arpa.veneto.it/static/img/ico/antenna-with-signal-transmission.png
> "/>
> image/png
>   
>   15
> 
>   
> 
>   
> 
>   
> 
>
> See this getmap:
>
>
> http://demo.geo-solutions.it/geoserver/sf/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf:archsites&styles=srb_nero&bbox=589851.437048,4914490.882968263,608346.4603107043,4926501.8980334345&width=768&height=498&srs=EPSG:26713&format=application/openlayers
>
> The original symbol is really large compared to the target one, the scaled
> down version does not look so good... better use SVGs or a pre-scaled-down
> symbol that you can use at its native size instead (we could try with a
> different interpolation, but it's hard/impossible to make everybody happy,
> we used to have a different one and people complained the output looked
> foggy...)... thinking out loud, could be a place for people to add a vendor
> option to tell us which rescaling algorithm to use.
>
> Cheers
> Andrea
>
>
>
> On Mon, Jul 18, 2016 at 12:46 PM, Annalisa Schiavon <
> annalisa.schia...@gmail.com> wrote:
>
>> Hi all, sorry for the late reply.
>> I attach the full log after having applied the PNG symbol.
>> The full sld file is:
>>
>> *Name*
>> srb_nero
>>
>> 
>> http://www.opengis.net/sld"; xmlns:ogc="
>> http://www.opengis.net/ogc"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"; version="1.1.0" xmlns:xlink="
>> http://www.w3.org/1999/xlink"; units="mm" xsi:schemaLocation="
>> http://www.opengis.net/sld
>> http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd";
>> xmlns:se="http://www.opengis.net/se";>
>>   
>> srb_nero
>> 
>>   srb_nero
>>   srb_nero
>>   
>> 
>>   Single symbol
>>   
>> 
>>   
>> http://geomap.arpa.veneto.it/static/img/ico/antenna-with-signal-transmission.png
>> "/>
>> image/png
>>   
>>   15
>> 
>>   
>> 
>>   
>> 
>>   
>> 
>>
>> On the Style Editor page, with this style select, if I choose "validate"
>> button, it's ok and if I choose "Preview legend" button, I correctly view
>> the symbol.
>>
>> Thank you so much
>>
>> Annalisa
>>
>> 2016-07-11 21:15 GMT+02:00 Andrea Aime :
>>
>>> Ciao Annalisa,
>>> the exception is not familiar to me, could you check the GeoServer logs
>>> and find the full
>>> stack trace for that issue?
>>>
>>> Hi all.
>>> I've tried to create a sld style using an external graphic:
>>> ...
>>> 
>>>   Single

Re: [Geoserver-users] error on using svg or png in style

2016-07-18 Thread Annalisa Schiavon
Hi all, sorry for the late reply.
I attach the full log after having applied the PNG symbol.
The full sld file is:

*Name*
srb_nero


http://www.opengis.net/sld"; xmlns:ogc="
http://www.opengis.net/ogc"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; version="1.1.0" xmlns:xlink="
http://www.w3.org/1999/xlink"; units="mm" xsi:schemaLocation="
http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"; xmlns:se="
http://www.opengis.net/se";>
  
srb_nero

  srb_nero
  srb_nero
  

  Single symbol
  

  
http://geomap.arpa.veneto.it/static/img/ico/antenna-with-signal-transmission.png
"/>
image/png
  
  15

  

  

  


On the Style Editor page, with this style select, if I choose "validate"
button, it's ok and if I choose "Preview legend" button, I correctly view
the symbol.

Thank you so much

Annalisa

2016-07-11 21:15 GMT+02:00 Andrea Aime :

> Ciao Annalisa,
> the exception is not familiar to me, could you check the GeoServer logs
> and find the full
> stack trace for that issue?
>
> Hi all.
> I've tried to create a sld style using an external graphic:
> ...
> 
>   Single symbol
>   
> 
>   
>  xlink:href="file:///var/www/geonode/static/img/ico/poi_tower_communications.svg"/>
> image/svg+xml
>   
>   15
> 
>   
> 
> ...
> and than:
> ...
> 
>   Single symbol
>   
> 
>   
> http://geomap.arpa.veneto.it/static/img/ico/antenna-with-signal-transmission.png
> "/>
> image/png
>   
>   15
> 
>   
> 
> 
>
> In both cases, into style editor the preview works fine, but the layer
> preview of geoserver returns an error:
>
> java.io.IOException: java.lang.RuntimeException: Parsing failed for
> UserStyle: java.lang.ClassCastException: java.util.HashMap cannot be cast
> to org.opengis.util.International
>
> Geoserver ver.: 2.7.4  (with Geonode project, ver. 2.4)
>
> It is the first time I try to use external graphics. Any ideas to resolve
> error?
>
> Thanks
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


geoserver.log
Description: Binary data
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] error on using svg or png in style

2016-07-07 Thread Annalisa Schiavon
Hi all.
I've tried to create a sld style using an external graphic:
...

  Single symbol
  

  

image/svg+xml
  
  15

  

...
and than:
...

  Single symbol
  

  
http://geomap.arpa.veneto.it/static/img/ico/antenna-with-signal-transmission.png
"/>
image/png
  
  15

  



In both cases, into style editor the preview works fine, but the layer
preview of geoserver returns an error:

java.io.IOException: java.lang.RuntimeException: Parsing failed for
UserStyle: java.lang.ClassCastException: java.util.HashMap cannot be cast
to org.opengis.util.International

Geoserver ver.: 2.7.4  (with Geonode project, ver. 2.4)

It is the first time I try to use external graphics. Any ideas to resolve
error?

Thanks
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users