Re: [OpenLayers-Users] which is the best way to display a set of points coming from database?

2010-08-31 Thread Piero Campa
I've been working on something like 'display georeferenced point', and I did like that: - associate the X/Y coordinates with a geometry in the database (using PostGIS extension to a PostgreSQL database; - import the database in an istance of GeoServer (which can reproject your points in all the

Re: [OpenLayers-Users] International date line and bounds [SEC=UNCLASSIFIED]

2010-08-06 Thread Piero Campa
Hence this.LIMIT and this.GLOBE_LON need to be set in accordance to the map projection. This case was for the Google Mercator projection, for WGS84 they should be e.g. 180 and 360 of course. Bye Piero -- View this message in context:

Re: [OpenLayers-Users] International date line and bounds [SEC=UNCLASSIFIED]

2010-08-05 Thread Piero Campa
Thank you David, anyway in these days I've been writing a customized RegularPolygon Handler so to draw polygons across/beyond the IDL. It may be useful for somebody, waiting for the OL developers to implement a better way to go. If you will want to use it and have questions, you can contact me!

Re: [OpenLayers-Users] overwriting functions

2010-07-29 Thread Piero Campa
Well I'm doing like Paul suggested, without renaming the function: OpenLayers.Layer.prototype.getLonLatFromViewPortPx = function (viewPortPx) { alert('Overwritten!'); }; No way. But if it is the correct way, I'll manage somehow. Thank you guys! Piero -- View this message in context:

Re: [OpenLayers-Users] overwriting functions

2010-07-29 Thread Piero Campa
I'm seeing that functions are not overwritten if the function is not directly on a certain OL class, but on an inherited class. I mean, if I overwrite a function in OpenLayers.Layer, it's not seen by OpenLayers.Layer.Google for example. Any clues? Piero -- View this message in context:

Re: [OpenLayers-Users] International date line and bounds [SEC=UNCLASSIFIED]

2010-07-28 Thread Piero Campa
Thank you David, ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the default behaviour? Moreover, I was trying to see the effect of maxExtent property of the map (I think I have to set it wider to just 1 globe, so to go beyond the IDL), but nothing changes, even for very

Re: [OpenLayers-Users] Satellite Maps for free or low cost?

2010-07-28 Thread Piero Campa
http://onearth.jpl.nasa.gov/ http://onearth.jpl.nasa.gov/ returns '403 FORBIDDEN' now, guess it's no more available, or need a kind of subscription. Do you know an other good satellite worldwide WMS? Piero -- View this message in context:

Re: [OpenLayers-Users] International date line and bounds [SEC=UNCLASSIFIED]

2010-07-28 Thread Piero Campa
Thank you David, ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the default behaviour? Moreover, I was trying to see the effect of maxExtent property of the map (I think I have to set it wider to just 1 globe, so to go beyond the IDL), but nothing changes, even for very

Re: [OpenLayers-Users] Satellite Maps for free or low cost?

2010-07-28 Thread Piero Campa
http://onearth.jpl.nasa.gov/ returns '403 FORBIDDEN' now, guess it's no more available, or need a kind of subscription. Do you know an other good satellite worldwide WMS? Piero -- View this message in context:

Re: [OpenLayers-Users] International date line and bounds [SEC=UNCLASSIFIED]

2010-07-28 Thread Piero Campa
Thank you David, ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the default behaviour? Moreover, I was trying to see the effect of maxExtent property of the map (I think I have to set it wider to just 1 globe, so to go beyond the IDL), but nothing changes, even for very

Re: [OpenLayers-Users] International date line and bounds [SEC=UNCLASSIFIED]

2010-07-28 Thread Piero Campa
Thank you David, ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the default behaviour? Moreover, I was trying to see the effect of maxExtent property of the map (I think I have to set it wider to just 1 globe, so to go beyond the IDL), but nothing changes, even for very

Re: [OpenLayers-Users] Can't restrict Openlayers.Layer.OSM to use specific zoom levels

2010-07-28 Thread Piero Campa
Hi, I'm not bringing answers. :) I can't see the OpenLayers.Layer.OSM class in the API reference, nor it gets recognized whether I implement it. Guess the last stable OL version 2.9.1 is not supporting this class yet...? Piero -- View this message in context:

Re: [OpenLayers-Users] HOW TO USE LOGICAL FILTERS

2010-07-28 Thread Piero Campa
I think you're on the right way. Maybe you now have to create a rule on the 'rules' logical filter you created, then add it to the style of the feature layer. Think you should read here:

Re: [OpenLayers-Users] overwriting functions

2010-07-28 Thread Piero Campa
Hi Paul, is there a specific place where to put the overwritten prototype? Because I'm trying to, but the default method is still called. Thanks. Piero -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/overwriting-functions-tp1825571p5345898.html Sent from the OpenLayers

Re: [OpenLayers-Users] google map v3

2010-07-27 Thread Piero Campa
Now, it does. http://openlayers.org/blog/2010/07/10/google-maps-v3-for-openlayers/ http://openlayers.org/blog/2010/07/10/google-maps-v3-for-openlayers/ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/google-map-v3-tp3314597p5341512.html Sent from the OpenLayers Users

Re: [OpenLayers-Users] International date line and bounds [SEC=UNCLASSIFIED]

2010-07-27 Thread Piero Campa
Hi all, I'm drawing polygon over a Google base layer. Even though I set wrapDateLine to true in the Google base layer, the Vector layer AND the temporary layer created by the RegularPolygon handler, still when I draw a polygon I cannot cross the IDL. Any idea guys? Thank you, Piero -- View

Re: [OpenLayers-Users] Capturing mouse events

2010-07-23 Thread Piero Campa
Well, regarding the mouse 'clicks' you should take a look at the source of this example: http://openlayers.org/dev/examples/click-handler.html It's something about defining a class OpenLayers.Control.Click inheriting from OpenLayers.Control, then defining the click Handlers. Whether you'd like

Re: [OpenLayers-Users] Help with changing the color of drawn features ?

2010-07-23 Thread Piero Campa
Hi Koveras, have you tried: var myFeatures = new OpenLayers.Layer.Vector(myVectors, { styleMap: myStyleMap, strategies: [myStrategy], protocol: etc. } Then: var myStyleMap = new OpenLayers.StyleMap({

Re: [OpenLayers-Users] wfs

2010-07-23 Thread Piero Campa
You can get them as raster via WMS (if you have a web map service...), or as vector features via OpenLayers.Layer.Vector or OpenLayers.Layer.WFS. I used to get the PNG raster of my shapefile like this (I have GeoServer as WMS): var myShapeFile = new OpenLayers.Layer.WMS('Name',

Re: [OpenLayers-Users] wfs

2010-07-23 Thread Piero Campa
I can see (http://www.skylinesoft.com/SkylineGlobe/Corporate/Products/TerraGateSFSServices.aspx) that TerraGate SFS Manager provides WFS/WMS services, so it's just a matter of getting the WFS URL (or WMS URL), and the name of the shapefile as it is stored in TerraGate. If you want to retrieve

Re: [OpenLayers-Users] Augmenting a method?

2010-07-21 Thread Piero Campa
Hi all, I've been reading about different ways on how to override an existing method. That are, e.g.: * OpenLayer.Control.myControl = OpenLayers.Class.create(); * OpenLayers.Control.myControl.prototype = OpenLayers.Class.inherit( OpenLayers.Control.Navigation, { * * defaultDblClick: function

Re: [OpenLayers-Users] Smooth panning and zoom problem

2010-07-20 Thread Piero Campa
Hi Paul, what did you mean with that the fourth paramter ... ? I set the transitionEffect to a Google base layer without success, no smooth zoom/pan yet. var gmap = new OpenLayers.Layer.Google( Google Streets, { sphericalMercator:

Re: [OpenLayers-Users] Smooth panning and zoom problem

2010-07-20 Thread Piero Campa
It seems it's not an OL feature for Google layers. http://osgeo-org.1803224.n2.nabble.com/Zoom-effect-like-google-map-possible-td3898241.html#a3898393 OL developers: do you know if it will be an available feature for Google Layers also, some day? Thank you anyway. Piero -- View this message in

Re: [OpenLayers-Users] disable double click

2010-07-20 Thread Piero Campa
Hi Ian, I am trying to apply your method. I think I misunderstood something about it because in the end I get a OpenLayers.Control.AM_Navigation is not a constructor, as I create the map. I'm linked to the online OL library. I have anyway a copy of it in my file system in ./OpenLayers dir: I

Re: [OpenLayers-Users] disable double click

2010-07-20 Thread Piero Campa
Sorry, I made a mistake in the javascript include. It works. Piero -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/disable-double-click-tp1824832p5316506.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

[OpenLayers-Users] Override 'click' event of RegularPolygon handler

2010-07-20 Thread Piero Campa
Hi all, I was trying to personalize the behaviout of my DrawFeature control, but I can't find the function defining the 'click' trigger in the RegularPolygon handler. I tried to define separately an OpenLayers.Control.Click (http://openlayers.org/dev/examples/click.html) but it's not working

Re: [OpenLayers-Users] change only one attribute in style?

2010-07-19 Thread Piero Campa
I guess that whether you create your own styleMap, the values that you don't explicitly set are then set to their default. I think it's a standard way of working, but maybe I didn't get 100% your intentions... Piero -- View this message in context:

Re: [OpenLayers-Users] Set Bbox of WMS request

2010-07-16 Thread Piero Campa
Any clues about this? I'm trying with: myLayer = new OpenLayers.Layer.WMS('myLabel' WMSURL, {layers: myMap.geotiff, transparent: 'true',

Re: [OpenLayers-Users] How to get get the WMS-layer's parameters

2010-07-16 Thread Piero Campa
Hi Tim, ok so you can get the HTTP WMS request URL of a certain layer with that: var request = layer.getURL(map.getExtent()); where you input the BBOX. But whether I want to test which was the actual BBOX I requested when I did the HTTP request? How do I get the HTTP WMS GetMap request I did

Re: [OpenLayers-Users] Set Bbox of WMS request

2010-07-16 Thread Piero Campa
Ok Ian, right. (Thanks) So you mean that you would download also data outside the viewport in certain cases? But, especially if the BBOX is small, this wouldn't be a huge problem. Or am I missing something? -- View this message in context:

Re: [OpenLayers-Users] Set Bbox of WMS request

2010-07-16 Thread Piero Campa
Good point Bart, but I'd like to select a small portion of the map instead. Putting a ratio1 the layer would be reduced indeed, but centered with respect to the viewport. I'd rather specify where exactly to extract the data. -- View this message in context:

Re: [OpenLayers-Users] Set Bbox of WMS request

2010-07-16 Thread Piero Campa
Uhm... yes, I can see that you can specify the bounds of an Image layer. But I don't have an URL of the raster (I'm trying to catch it without success), I can retrieve it only via WMS. -- View this message in context:

Re: [OpenLayers-Users] Set Bbox of WMS request

2010-07-16 Thread Piero Campa
Actually with the OpenLayers.Layer.Image you download the WHOLE image then you decide where to put it... I'd like to exploit the WMS BBOX ability to extract portions of rasters... -- View this message in context:

Re: [OpenLayers-Users] changing color of a feature

2010-04-02 Thread Piero Campa
Hi Sunny, if you want to do this I think it's better if you create a feature layer via WFS, because a WMS layer is a raster. Try with something like: myFeaturesLayer = new OpenLayers.Layer.Vector(name, { styleMap: myStyle,

Re: [OpenLayers-Users] changing color of a feature

2010-04-02 Thread Piero Campa
1) WFS strategies: http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Strategy-js.html http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Strategy-js.html For example try with: wfsstrategy = new OpenLayers.Strategy.BBOX(); 2) the

Re: [OpenLayers-Users] changing color of a feature

2010-04-02 Thread Piero Campa
First I think you'd better try to test your server with some explicit HTTP WFS request (spec: http://portal.opengeospatial.org/modules/admin/license_agreement.php?suppressHeaders=0access_license_id=3target=http://portal.opengeospatial.org/files/index.php?artifact_id=8339

Re: [OpenLayers-Users] OpenLayers 2.9 Release Candidate 1

2010-04-01 Thread Piero Campa
I first have to say that my web-page doen't work on IE8: I can see that data is downloaded but no map is displayed. Anyway I tried again but including this new version of OL, and IE8 told me: 'null' is null or not an object (in OpenLayers.js, line 289, char 1322) (with Firefox and Chrome and

Re: [OpenLayers-Users] how to control the style of a WFS layer?

2010-04-01 Thread Piero Campa
I don't know wether the OpenLayers.Layer.WFS actually allows for styleMaps, but I'm sure OpenLayers.Layer.Vector does: try creating a feature-layer with this latter method. Ex. myWfsLayer = new OpenLayers.Layer.Vector(layerName, { styleMap: myStyle,

Re: [OpenLayers-Users] OpenLayers 2.9 Release Candidate 1

2010-04-01 Thread Piero Campa
The page is not working on IE8 with OL 2.9, neither is working with OL. 2.8. But the behaviour is different: - with OL 2.8 no error is declared by IE8 , I can see on the bottom bar of the browser that something is being downloaded but the page remains totally white; - with OL 2.9, if I click

Re: [OpenLayers-Users] OpenLayers 2.9 Release Candidate 1

2010-04-01 Thread Piero Campa
(just a breaking news: I removed my CSS style description on the main page and the maps appear with IE8 finally, with OL 2.8. With OL 2.9 instead the same 'null' error is showed!) Piero -- View this message in context:

Re: [OpenLayers-Users] GeoServer Proxy Extension OpenLayers

2010-03-29 Thread Piero Campa
Hi guys, I'm just asking for an explanation of the set-up of a proxy with Geoserver/OpenLayers stack. I installed the user friendly Geoserver Proxy Extension, then I set the allowed hosts and MIMEtypes. Reading this thread I learned that I have to specify the proxy in the script:

Re: [OpenLayers-Users] GeoServer Proxy Extension OpenLayers

2010-03-29 Thread Piero Campa
(Additionally I would say, Everything works fine... in Firefox, Safari, Chrome and Opera (...). Does it sound familiar to you? ) Piero -- View this message in context: http://n2.nabble.com/GeoServer-Proxy-Extension-OpenLayers-tp3998936p4817134.html Sent from the OpenLayers Users mailing list

Re: [OpenLayers-Users] Uncaught Exception when I'm not on localhost

2010-03-29 Thread Piero Campa
That's it. Piero -- View this message in context: http://n2.nabble.com/Uncaught-Exception-when-I-m-not-on-localhost-tp4802761p4817171.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ___ Users mailing list Users@openlayers.org

[OpenLayers-Users] Uncaught Exception when I'm not on localhost

2010-03-26 Thread Piero Campa
Hi people, after working on a webpage which embeds OpenLayers maps, I said to my collegues: Come on, try it!. It doesn't work. On Firefox, this is the Firebug message: uncaught exception: [Exception... Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]

Re: [OpenLayers-Users] Uncaught Exception when I'm not on localhost

2010-03-26 Thread Piero Campa
This is the line 1102 in OpenLayers.js: OpenLayers.Ajax.Responders.dispatch('onCreate',this,response);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous){window.setTimeout(OpenLayers.Function.bind(this.respondToReadyState,this,1),10);}

Re: [OpenLayers-Users] Uncaught Exception when I'm not on localhost

2010-03-26 Thread Piero Campa
I guess it's because I didn't set up a proxy. Due to security restrictions in Javascript, it is not possible to retrieve information from remote domains via an XMLHttpRequest. Classes like WFS and GeoRSS use XMLHTTPRequest to get their data. If they are querying a remote server (anything other

Re: [OpenLayers-Users] Format WMSGetFeatureInfo response

2010-03-15 Thread Piero Campa
Hi, I insert myself in the topic for a little question: I can't understand how to read the content of the HTTP response which contains the WMS feature info. Is it a field in the variable controlInfo or whatelse? Thank you guys. =) Piero -- View this message in context:

Re: [OpenLayers-Users] WMS - GeoServer

2010-03-12 Thread Piero Campa
I have a similar problem too: I want to retrieve a GeoTiff Map from Geoserver. My map projection is EPSG:900913, while the native projection of the GeoTiff map is EPSG:32633. If I make a direct HTTP request, my browser shows the reprojected GeoTiff map,

Re: [OpenLayers-Users] WMS - GeoServer

2010-03-12 Thread Piero Campa
(Just a note: I'm trying to add that WMS layer in a map with the same EPSG:32633 projection, but still no GeoTiff is returned. There is simply some kind of error in the new OpenLayers.Layer.WMS( ), independently of the reprojection issue) -- View this message in context:

Re: [OpenLayers-Users] WMS - GeoServer

2010-03-12 Thread Piero Campa
After hours of pure pleasure I found a correct syntax for the Geotiff to be visualized: var pmmap = new OpenLayers.Layer.WMS( 'MEEO PM10', 'http://localhost:8080/geoserver/wms', {layers: 'myWorkspace:myGeoTiff.geo',

[OpenLayers-Users] No Simple Popups on WFS features

2010-03-09 Thread Piero Campa
Hi everybody, I'm a beginner to Openlayers and Javascripts. =) I'm now at the stage Try to open popups over WFS features but I'm having problems. My template is the example in the Openlayers Documentation: http://docs.openlayers.org/library/overlays.html#displaying-popups but the problem is in

Re: [OpenLayers-Users] WFS layer over Google Map layer projection problem

2010-03-08 Thread Piero Campa
Guess who? It's me. Just letting you know I realized it was not just a matter of that '/' in the feaureNS URI: WFS features doesn't appear also if I open the HTML page directly from the filesystem, that is if I open file:///GEOSERVER DIR/webapps/geoserver/MyExample.html instead of

Re: [OpenLayers-Users] WFS layer over Google Map layer projection problem

2010-03-08 Thread Piero Campa
Oh I just don't want to work directly from the filesystem, I just worked that way because I used to click on the .html file on the filesystem to see it on the browser. My question was just curiosity, and I found that probably it's a matter of a Geoserver policy which lets you retrieve data only

Re: [OpenLayers-Users] WFS layer over Google Map layer projection problem

2010-03-05 Thread Piero Campa
Hi again, it's still me. I think I found the solution: I switched to WFS 1.0.0 and this time the HTTP response from Geoserver showed and Exception saying it could not locate {http://www.nurc.nato.int/}groundlocation (groundlocation is the point-feature and that URI is the featureNS...), so I