[OpenLayers-Users] rules[i].symbolizer has no properties - Another trunk bug?

2008-02-13 Thread Jon Britton

Hi,
Yesterday I was not getting this error, but today I am. It's seems to be
caused when I add a WFS layer.

FireBug displays the following, the bottom couple of items items are just my
own classes.

findPropertyStyles()Style.js (line 226)
setDefaultStyle(Object fillColor=#ee9900 fillOpacity=0.4)Style.js (line 259)
initialize(Object fillColor=#ee9900 fillOpacity=0.4, undefined)Style.js
(line 80)
Class()Class.js (line 32)
initialize(undefined, undefined)StyleMap.js (line 43)
Class()Class.js (line 32)
initialize(Polygons, Object typename=editpolygon)Vector.js (line 170)
initialize(Polygons, /geoserver/wfs, Object typename=fr:editpolygon,
Object typename=editpolygon)WFS.js (line 123)
Class()Class.js (line 32)
initialize(ccEditingPanel)EditingPanel.js (line 23)
Class()Class.js (line 32)
initialize(controlpanel)ControlPanel.js (line 33)
Class()Class.js (line 32)
init()cdstable.html (line 32)
onload(load )
-- 
View this message in context: 
http://www.nabble.com/%22rules-i-.symbolizer-has-no-properties%22---Another-trunk-bug--tp15452848p15452848.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] rules[i].symbolizer has no properties - Another trunk bug?

2008-02-13 Thread Andreas Hocevar
Jon,

you may be using ExtJs, Prototype, Dojo or something that overwrites the 
Array object? If so, there is already a ticket filed for this issue: 
http://trac.openlayers.org/ticket/1362

Please check if the (second) patch for this ticket solves your problem.

Regards,
Andreas.

Jon Britton wrote:
 Hi,
 Yesterday I was not getting this error, but today I am. It's seems to be
 caused when I add a WFS layer.

 FireBug displays the following, the bottom couple of items items are just my
 own classes.

 findPropertyStyles()Style.js (line 226)
 setDefaultStyle(Object fillColor=#ee9900 fillOpacity=0.4)Style.js (line 259)
 initialize(Object fillColor=#ee9900 fillOpacity=0.4, undefined)Style.js
 (line 80)
 Class()Class.js (line 32)
 initialize(undefined, undefined)StyleMap.js (line 43)
 Class()Class.js (line 32)
 initialize(Polygons, Object typename=editpolygon)Vector.js (line 170)
 initialize(Polygons, /geoserver/wfs, Object typename=fr:editpolygon,
 Object typename=editpolygon)WFS.js (line 123)
 Class()Class.js (line 32)
 initialize(ccEditingPanel)EditingPanel.js (line 23)
 Class()Class.js (line 32)
 initialize(controlpanel)ControlPanel.js (line 33)
 Class()Class.js (line 32)
 init()cdstable.html (line 32)
 onload(load )
   

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] how to use POST instead of GET in MapServer layers?

2008-02-13 Thread Maik Finsterbusch
hi out there,

my request string ist growing and growing,...

openlayers uses the get - method fireing the mapserver. but the allowed
byteslength of the url is limited, so there will be a problem.
a solution is to use post instead of get.
but how to use on mapserver (httprequest) layers?
even if the cgi cant interpret post parameters, there is used a mapscript
wrapper for this handling.

thanks to all,
maik darkwood.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] rules[i].symbolizer has no properties - Another trunk bug?

2008-02-13 Thread Jon Britton

That's fixed it, thanks. Not sure what would cause it though I haven't
changed anything since yesterday.

Cheers,
Jon


Andreas Hocevar-2 wrote:
 
 Jon,
 
 you may be using ExtJs, Prototype, Dojo or something that overwrites the 
 Array object? If so, there is already a ticket filed for this issue: 
 http://trac.openlayers.org/ticket/1362
 
 Please check if the (second) patch for this ticket solves your problem.
 
 Regards,
 Andreas.
 
 

-- 
View this message in context: 
http://www.nabble.com/%22rules-i-.symbolizer-has-no-properties%22---Another-trunk-bug--tp15452848p15454437.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] rules[i].symbolizer has no properties - Another trunk bug?

2008-02-13 Thread Pierre GIRAUD
Please notice that this is now fixed in trunk.
Thanks to Andreas !

Pierre

On Feb 13, 2008 11:53 AM, Jon Britton [EMAIL PROTECTED] wrote:

 That's fixed it, thanks. Not sure what would cause it though I haven't
 changed anything since yesterday.

 Cheers,
 Jon


 Andreas Hocevar-2 wrote:
 
  Jon,
 
  you may be using ExtJs, Prototype, Dojo or something that overwrites the
  Array object? If so, there is already a ticket filed for this issue:
  http://trac.openlayers.org/ticket/1362
 
  Please check if the (second) patch for this ticket solves your problem.
 
  Regards,
  Andreas.
 
 

 --
 View this message in context: 
 http://www.nabble.com/%22rules-i-.symbolizer-has-no-properties%22---Another-trunk-bug--tp15452848p15454437.html
 Sent from the OpenLayers Users mailing list archive at Nabble.com.

 ___

 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Is there an example of using layers with differing source projections.. ie using Proj4?

2008-02-13 Thread Lance Dyas
Mike Adair wrote:
 EPSG:3003 uses a tmerc projection and is supported by Proj4js.  Did you 
 remember to include the Proj4js library with a script tag in your 
 application?

 Mike

 Andrea Maschio wrote:
   
 Ok, you're right 3003 isn't supported. But giving the Proj4 definition  
 i have in my proj4 (java) epsg file, which is

 3003 +proj=tmerc +lat_0=0 +lon_0=9 +k=0.999600 +x_0=150 +y_0=0  
 +ellps=intl +units=m +no_defs  

 i could simply add my definition like this

 Proj4js.defs[EPSG:3003] = +title=Gauss Boaga EPSG:3003 \
+proj=tmerc
+lat_0=0
+lon_0=9
+k=0.999600
+x_0=150
+y_0=0
+ellps=intl
+units=m
+no_defs;

 ? And as I see, OpenLayers actually doesn't use proj4.js for  
 reprojecting, am I right? How can I perform the client side  
 reprojection?

 Geoserver does it correctly but when my map is in utm coordinates  
 (these are the googlish one, right?) if I try to get a feature via  
 BBOX the BBOX it is not in the original feature's projection  
 coordinates.

 Thanks a lot
 Andrea Maschio

 Il giorno 13/feb/08, alle ore 06:56, Eric Lemoine ha scritto:

   
 
 Hi,

 You need the proj4.js library to do reprojection in OpenLayers.

 https://svn.codehaus.org/mapbuilder/cscs/trunk/proj4js/lib

 Even with that I'm not sure EPSG:3003 will be supported. I recall that
 the author of proj4.js (Mike Adair) gave a list of supported
 projections on the OpenLayers mailing list but I can't find his email.
 Searching the mailing on nabble you should be able to find this list
 http://www.nabble.com/OpenLayers-f15906.html.

 Hope this helps;
 --
 Eric




 On Feb 13, 2008 1:31 AM, Andrea Maschio [EMAIL PROTECTED]  
 wrote:
 
   
 Hi all, I suppose that the method Bounds.transform(ProjA, ProjB)
 should transform the coordinates between differents EPSG codes.

 Now I was trying this:

var p = bounds
 console.log(p)
 p = bounds.transform(new OpenLayers.Projection(EPSG:
 900913), new OpenLayers.Projection(EPSG:3003))
 console.log(p)

 But p has always the same coords. Btw I am working in a projected
 layer (projected from 3003 to 900913) and my wfs layers are ok, but
 being my coords in the Gauss Boaga metric system, I cannot get them
 correctly trying for example a GetFeatureInfo call using a BBOX.

 Shall I perform a linear translation of the coordinates?

 Thanks



 Andrea Maschio
 http://www.superandrew.it

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users

   
 
 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users

   
 
 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users


   

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Free Basic Layers

2008-02-13 Thread koyner

Hi,

Can someone please tell me where I can find a list of basic free layers that
can be used in a commercial application?

Specifically, we need layers detailing countries with cities, towns,
villages etc. and plain blue oceans and water bodies. That's all. No roads,
mountains, contours, ocean-depths or anything like that. The application
needs to be graphically minimal.

If there's nothing free out there that anyone can recommend, we'd be
interested in anything similar that's cost-effective.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Free-Basic-Layers-tp15292161p15292161.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Is there an example of using layers with differing source projections.. ie using Proj4?

2008-02-13 Thread Mike Adair
An example that doesn't do much but demonstrates how to include Proj4js 
and use the OpenLayers objects to do coordinate transformations:

script src=../lib/OpenLayers.js type=text/javascript/script
script src=../lib/proj4js/proj4js-compressed.js 
type=text/javascript/script

script type=text/javascript
Proj4js.defs[EPSG:3003] = +title=Gauss Boaga EPSG:3003 +proj=tmerc 
+lat_0=0 +lon_0=9 +k=0.999600 +x_0=150 +y_0=0 +ellps=intl +units=m  
+no_defs;

  function init() {
var point = new OpenLayers.Geometry.Point(9.5, 30.0);
var src = new OpenLayers.Projection('EPSG:4326');
var dest = new OpenLayers.Projection('EPSG:3003');
OpenLayers.Projection.transform(point, src, dest);
alert('coordinates transformed:'+point.toString());
  }
  window.onload = init;
/script

The point to be transformed is any object that has  .x and  .y properties.

Mike



Lance Dyas wrote:
 Mike Adair wrote:
   
 EPSG:3003 uses a tmerc projection and is supported by Proj4js.  Did you 
 remember to include the Proj4js library with a script tag in your 
 application?

 Mike

 

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Coordinates systems transformations?

2008-02-13 Thread David E. Reksten
This is how I reproject LL to UTM32:

var destProj = new Proj4js.Proj(map.getProjection()); // Euref89 UTM32
var sourceProj = new Proj4js.Proj(EPSG:4326); // WGS84 LonLat
var position = new OpenLayers.Geometry.Point(lon, lat);
Proj4js.transform(sourceProj, destProj, position);

Thereafter, position.x and position.y will contain the reprojected coordinates.

Using trunk versions of OL and Proj4js. Hope this helps.

.david

On 13/02/2008, Andrea Maschio [EMAIL PROTECTED] wrote:
 Hi all, I suppose that the method Bounds.transform(ProjA, ProjB)
 should transform the coordinates between differents EPSG codes.

 Now I was trying this:

 var p = bounds
  console.log(p)
  p = bounds.transform(new OpenLayers.Projection(EPSG:
 900913), new OpenLayers.Projection(EPSG:3003))
  console.log(p)

 But p has always the same coords. Btw I am working in a projected
 layer (projected from 3003 to 900913) and my wfs layers are ok, but
 being my coords in the Gauss Boaga metric system, I cannot get them
 correctly trying for example a GetFeatureInfo call using a BBOX.

 Shall I perform a linear translation of the coordinates?

 Thanks



 Andrea Maschio
 http://www.superandrew.it

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Coordinates systems transformations?

2008-02-13 Thread Ruben Pardo
hi,
does proj4js support EPSG:23030 to WGS84 transformation or viceversa?
i didn't see in the proj4js docs, is it going to support  it?
Thanks very much.

best regards


2008/2/13, David E. Reksten [EMAIL PROTECTED]:

 This is how I reproject LL to UTM32:

 var destProj = new Proj4js.Proj(map.getProjection()); // Euref89 UTM32
 var sourceProj = new Proj4js.Proj(EPSG:4326); // WGS84 LonLat
 var position = new OpenLayers.Geometry.Point(lon, lat);
 Proj4js.transform(sourceProj, destProj, position);

 Thereafter, position.x and position.y will contain the reprojected
 coordinates.

 Using trunk versions of OL and Proj4js. Hope this helps.

 .david

 On 13/02/2008, Andrea Maschio [EMAIL PROTECTED] wrote:
  Hi all, I suppose that the method Bounds.transform(ProjA, ProjB)
  should transform the coordinates between differents EPSG codes.
 
  Now I was trying this:
 
  var p = bounds
   console.log(p)
   p = bounds.transform(new OpenLayers.Projection(EPSG:
  900913), new OpenLayers.Projection(EPSG:3003))
   console.log(p)
 
  But p has always the same coords. Btw I am working in a projected
  layer (projected from 3003 to 900913) and my wfs layers are ok, but
  being my coords in the Gauss Boaga metric system, I cannot get them
  correctly trying for example a GetFeatureInfo call using a BBOX.
 
  Shall I perform a linear translation of the coordinates?
 
  Thanks
 
 
 
  Andrea Maschio
  http://www.superandrew.it
 
  ___
  Users mailing list
  Users@openlayers.org
  http://openlayers.org/mailman/listinfo/users
 
 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] how to use POST instead of GET in MapServer layers?

2008-02-13 Thread Eric Lemoine
Hi. In OL tile images are requested through the use of img tags, so
there is to my knowledge no way to use something else than GET. Eric

2008/2/13, Maik Finsterbusch [EMAIL PROTECTED]:
 hi out there,

 my request string ist growing and growing,...

 openlayers uses the get - method fireing the mapserver. but the allowed
 byteslength of the url is limited, so there will be a problem.
 a solution is to use post instead of get.
 but how to use on mapserver (httprequest) layers?
 even if the cgi cant interpret post parameters, there is used a mapscript
 wrapper for this handling.

 thanks to all,
 maik darkwood.

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Free Basic Layers

2008-02-13 Thread koyner

To clarify: we need global mapping information. If the user is zoomed out
completely, they will be able to see all continents at once.

But users will also be able to zoom in and view towns and villages. At this
scale, they will be able to view distinct user locations within a town,
depending on zip code or post code.


koyner wrote:
 
 Can someone please tell me where I can find a list of basic free layers
 that can be used in a commercial application?
 
 Specifically, we need layers detailing countries with cities, towns,
 villages etc. and plain blue oceans and water bodies. That's all. No
 roads, mountains, contours, ocean-depths or anything like that. The
 application needs to be graphically minimal.
 
 If there's nothing free out there that anyone can recommend, we'd be
 interested in anything similar that's cost-effective.
 

-- 
View this message in context: 
http://www.nabble.com/Free-Basic-Layers-tp15292161p15460064.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] how to use POST instead of GET in MapServer layers?

2008-02-13 Thread David R Robison
Also, img tags are not restricted to the same domain as an AJAX POST 
call would be. David


Christopher Schmidt wrote:

On Wed, Feb 13, 2008 at 05:34:33PM +0100, Eric Lemoine wrote:
  

Hi. In OL tile images are requested through the use of img tags, so
there is to my knowledge no way to use something else than GET. Eric



Similarly to the Tile.WFS, it would be possible to create a
Tile.XMLHttpRequestImage which filled the bytes using a responseStream
to set the src. No efforts are planned in this area at this time.

Regards,
  


--

David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: [EMAIL PROTECTED]
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579



___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] how to use POST instead of GET in MapServer layers?

2008-02-13 Thread Christopher Schmidt
On Wed, Feb 13, 2008 at 05:34:33PM +0100, Eric Lemoine wrote:
 Hi. In OL tile images are requested through the use of img tags, so
 there is to my knowledge no way to use something else than GET. Eric

Similarly to the Tile.WFS, it would be possible to create a
Tile.XMLHttpRequestImage which filled the bytes using a responseStream
to set the src. No efforts are planned in this area at this time.

Regards,
-- 
Christopher Schmidt
MetaCarta
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How do you represent multiple layers

2008-02-13 Thread Arnd Wippermann
Hi,
 
i would think, it must look 
 
layers:'states_poly,states_line' as one string.

Also I would suggest, because it is a MapServer layer the title should be
OpenLayers Mapserver.


Mit freundlichen GrĂ¼ssen

Arnd Wippermann
http://gis.ibbeck.de/ginfo/




Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Matt Priour
Gesendet: Dienstag, 12. Februar 2008 23:41
An: users@openlayers.org
Betreff: Re: [OpenLayers-Users] How do you represent multiple layers


Actually that is not a very good idea and bad coding practice.
Your problem was including {layers:'basic'} the word basic is not some
variable relating to type or styule of layers it is an actual layer name in
the example WMS. Instead of basic you should have your layer names listed
there. So your code should be:
var loadedMap = new OpenLayers.Layer.MapServer( OpenLayers WMS,
http://localhost:8085/cgi-bin/mapserv.exe?
http://localhost:8085/cgi-bin/mapserv.exe?layer=states_polylayer=states_li
ne ,
{map: '/ms4w/apps/app/test.map', mode:'map', format: 'png',
transparent:'false', layers: 'states_poly','states_line'},
{gutter: 15});

 hope that helps
Matt Priour
 
A variation on your theme worked. I put the multiple layers in the URL

this 
http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.maplayer=
states_polylayer=states_linemode=map
http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.maplayer
=states_polylayer=states_linemode=map 

seems to equal this

var loadedMap = new OpenLayers.Layer.MapServer( OpenLayers WMS,
http://localhost:8085/cgi-bin/mapserv.exe?layer=states_polylayer=states_li
ne
http://localhost:8085/cgi-bin/mapserv.exe?layer=states_polylayer=states_li
ne ,
{map: '/ms4w/apps/app/test.map', mode:'map', format: 'png',
transparent:'false'},
 {layers: 'basic'},
{gutter: 15});

Thanks!

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How do you represent multiple layers

2008-02-13 Thread Matt Priour
Arnd is correct about the layer name list being enclosed in a single string. 
sorry for any confusion.

The OpenLayers WMS or OpenLayers Mapserver is simply a label for the 
layer in the layer switch box and should actually probably be something more 
meaningful that either of these titles.

Matt Priour

--
From: Arnd Wippermann [EMAIL PROTECTED]
Sent: Wednesday, February 13, 2008 4:38 PM
To: 'Matt Priour' [EMAIL PROTECTED]
Cc: users@openlayers.org
Subject: AW: [OpenLayers-Users] How do you represent multiple layers

 Hi,

 i would think, it must look

 layers:'states_poly,states_line' as one string.

 Also I would suggest, because it is a MapServer layer the title should be
 OpenLayers Mapserver.


 Mit freundlichen GrĂ¼ssen

 Arnd Wippermann
 http://gis.ibbeck.de/ginfo/


 

 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
 Auftrag von Matt Priour
 Gesendet: Dienstag, 12. Februar 2008 23:41
 An: users@openlayers.org
 Betreff: Re: [OpenLayers-Users] How do you represent multiple layers


 Actually that is not a very good idea and bad coding practice.
 Your problem was including {layers:'basic'} the word basic is not some
 variable relating to type or styule of layers it is an actual layer name 
 in
 the example WMS. Instead of basic you should have your layer names 
 listed
 there. So your code should be:
 var loadedMap = new OpenLayers.Layer.MapServer( OpenLayers WMS,
 http://localhost:8085/cgi-bin/mapserv.exe?
 http://localhost:8085/cgi-bin/mapserv.exe?layer=states_polylayer=states_li
 ne ,
 {map: '/ms4w/apps/app/test.map', mode:'map', format: 'png',
 transparent:'false', layers: 'states_poly','states_line'},
 {gutter: 15});

 hope that helps
 Matt Priour

 A variation on your theme worked. I put the multiple layers in the URL

 this
 http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.maplayer=
 states_polylayer=states_linemode=map
 http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.maplayer
 =states_polylayer=states_linemode=map

 seems to equal this

 var loadedMap = new OpenLayers.Layer.MapServer( OpenLayers WMS,
 http://localhost:8085/cgi-bin/mapserv.exe?layer=states_polylayer=states_li
 ne
 http://localhost:8085/cgi-bin/mapserv.exe?layer=states_polylayer=states_li
 ne ,
 {map: '/ms4w/apps/app/test.map', mode:'map', format: 'png',
 transparent:'false'},
 {layers: 'basic'},
 {gutter: 15});

 Thanks!

 
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users