RE: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript

2012-02-16 Thread Ian Walberg
Nick,

 

I believe we had an issue when we moved to MS 6.x.

 

Try opening from php an empty.map file with just MAP and END it.

 

Then add whatever you need to the map object and use it.

 

This has reminded me we need to go back and work out what our issue was.

 

Regards

 

Ian

 

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz
Sent: Thursday, February 16, 2012 5:05 PM
To: Nick Friedrich; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript

 

Nick,

 

Try the mapObj->save method to see what Mapserver dumps.

 

Cheers from México

 

IC Carlos Ruiz



From: Nick Friedrich 
To: mapserver-users@lists.osgeo.org 
Sent: Thursday, February 16, 2012 10:25 AM
Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript


Hello,

I have a problem with Mapserver 6.0.1 and PHP Mapscript.
Until now I am working with Mapserver 5.2.

For testing purposes I created a minimal mapfile, just with name and symbolset. 
The symbolset file contains just one simple filled circle.
When I create a mapObj (tried old an new constructors) I get an empty Object 
(var_dump or print_r).  Non-object members like name or status are still there, 
when accessing them directly.
Set methods are also working for non-object members. Members, that are objects 
themselves, like projection, are not accessible.

I have no clue what could be the problem. The system configuration is the same 
as when using Mapserver 5.2.
PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, ...) 
meet the requirements.

Thanks for your help,
Nick


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript

2012-02-16 Thread Carlos Ruiz
Nick,

Try the mapObj->save method to see what Mapserver dumps.

Cheers from México

 
IC Carlos Ruiz




 From: Nick Friedrich 
To: mapserver-users@lists.osgeo.org 
Sent: Thursday, February 16, 2012 10:25 AM
Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript
 
Hello,

I have a problem with Mapserver 6.0.1 and PHP Mapscript.
Until now I am working with Mapserver 5.2.

For testing purposes I created a minimal mapfile, just with name and symbolset. 
The symbolset file contains just one simple filled circle.
When I create a mapObj (tried old an new constructors) I get an empty Object 
(var_dump or print_r).  Non-object members like name or status are still there, 
when accessing them directly.
Set methods are also working for non-object members. Members, that are objects 
themselves, like projection, are not accessible.

I have no clue what could be the problem. The system configuration is the same 
as when using Mapserver 5.2.
PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, ...) 
meet the requirements.

Thanks for your help,
Nick


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Mapcache Seed / libpng error?

2012-02-16 Thread Andrew Cowie
Ticket created:

http://trac.osgeo.org/mapserver/ticket/4192


-Original Message-
From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
Sent: Wednesday, 15 February 2012 10:43 p.m.
To: Andrew Cowie
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapcache Seed / libpng error?

Is the error always reproducible ?
From the logs it seems that the png data received by mapcache from the
wms server is corrupt. More investigation would be needed to determine
if the network or the wms server is at fault for this.

regards,

--
thomas

On Wed, Feb 15, 2012 at 04:45, Andrew Cowie
 wrote:
> Hello List,
>
>
>
> We’ve been using mapcache_seed ( mapcache SVN checkout 13002 ) to build our
> caches mostly successfully so far, but recently have come up against an
> error which has only cropped up with a certain layer which includes our text
> & labels
>
>
>
> www-data@server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml
> -t 2012-02-02_text_cache_nztm  -g portalgridnztm1 -z 7,8
>
> found old lockfile /tmp/_gc_lock9-175-1233-slope_cache_nztm.lck, deleting it
>
> found old lockfile /tmp/_gc_lock7-7-9-2012-02-02_text_cache_nztm.lck,
> deleting it
>
> found old lockfile /tmp/_gc_lock9-136-179-terr_auth_cache_nztm.lck, deleting
> it
>
> found old lockfile /tmp/_gc_lock9-138-86-wards_cache_nztm.lck, deleting it
>
> seeding tile 65 25 7libpng error: IDAT: CRC error
>
> failed to setjmp(png_jmpbuf(png_ptr))
>
> failed to load image data from metatile
>
> failed to setjmp(png_jmpbuf(png_ptr))
>
> failed to load image data from metatile
>
> seeding tile 130 50 8
>
> www-data@server$
>
>
>
> or...
>
>
>
> www-data@server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml
> -t 2012-02-02_text_cache_nztm  -g portalgridnztm1 -z 6,7
>
> found old lockfile /tmp/_gc_lock9-137-51-terr_auth_cache_nztm.lck, deleting
> it
>
> found old lockfile /tmp/_gc_lock9-182-1201-slope_cache_nztm.lck, deleting it
>
> found old lockfile /tmp/_gc_lock9-138-197-wards_cache_nztm.lck, deleting it
>
> seeding tile 25 15 6libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng warning: Ignoring bad adaptive filter type
>
> libpng error: IDAT: CRC error
>
> failed to setjmp(png_jmpbuf(png_ptr))
>
> failed to load image data from metatile
>
> seeding tile 50 35 7failed to setjmp(png_jmpbuf(png_ptr))
>
> failed to load image data from metatile
>
> www-data@server$
>
>
>
>
>
> The next step will be to checkout the latest SVN version. But we are
> currently mid-build with some other layers, so are waiting for them to
> finish before we do that. But thought  we’d fire it out to the list to see
> if anyone has any ideas as to what might be causing this?
>
>
>
>
>
> Below is the mapcache config:
>
>
>
>
>
>   
>
>  http://server/cgi-bin/mapserv601?
>
>   
>
>   
>
>  
>
> image/png
>
> text
>
> /opt/mapserver/mapfiles/m6scenz_topo_new.map
>
> true
>
>  
>
>   
>
>
>
>
>
>
>
>   src_text_update
>
>   disk
>
>   PNG
>
>   portalgridnztm1
>
>   5 5
>
>   10
>
>
>
>
>
>
>
> "labelcache_map_edge_buffer""-10"is set in mapserver
> WEB METADATA
>
>
>
>
>
> Cheers
>
>
>
>
>
> Andrew
>
>
>
>
>
>
>
>
>
>
> 
> Please consider the environment before printing this email
> Warning: This electronic message together with any attachments is
> confidential. If you receive it in error: (i) you must not read, use,
> disclose, copy or retain it; (ii) please contact the sender immediately by
> reply email and then delete the emails.
> The views expressed in this email may not be those of Landcare Research New
> Zealand Limited. http://www.la

RE: [mapserver-users] RE: Circles around points in miles

2012-02-16 Thread Ian Walberg
This does not work in all cases as we hoped,  or we may not  understand
how to use the overall ma projection correctly.

All the layers have the projection set to "proj=latlong,ellps=WGS84".

However if we set the overall map projection from this to "proj=ortho"
the layer with the sizeunits set disappears.

Is this an issue related to the projection or that the map units are now
different.

If we remove the sizeunits from the layer with the circles they reappear
but of course are not the correct size (in miles).

Many thanks

Ian

-Original Message-
From: Ian Walberg 
Sent: Wednesday, February 15, 2012 11:40 AM
To: Stephen Woodbridge; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Circles around points in miles

Stephen,

That appears to do the trick.

Many thanks

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Wednesday, February 15, 2012 10:36 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Circles around points in miles

On 2/15/2012 1:23 PM, Ian Walberg wrote:
> Steve,
>
> Thanks again for the info so far.
>
> Testing this today we realise (not surprisingly) that both the size 
> and width of the symbol are now in miles.
>
> Ideally we would like to set the radius of the circle in miles and the

> width in pixels.
>
> Is there any way of doing this?

Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel.

-Steve W

> Regards
>
> Ian
>
> -Original Message-
> From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
> Sent: Monday, February 13, 2012 2:57 PM
> To: Ian Walberg; mapserver-users@lists.osgeo.org
> Subject: RE: Circles around points in miles
>
> I jumped the gun on the geomtransform idea. The support is there but 
> because it operates at the style level buffer distances must be given 
> in pixels and there's no easy way to convert a map distance (e.g. 10
> miles) to pixels. I really should make some runtime constants (for 
> example, extent, scale and cellsize) available to expressions- then 
> you could do this.
>
> Glad you picked option 2 to start.
>
> Steve
>
> -Original Message-
> From: Ian Walberg [mailto:ian.walb...@airborne.aero]
> Sent: Monday, February 13, 2012 4:38 PM
> To: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
> Subject: RE: Circles around points in miles
>
> Steve,
>
> Many thanks for the help and we have just tested option 2 and that 
> works.
>
> We are using 6.x but are not exactly sure how to use the geomtransform

> to do this. Do you have  an example?
>
> Regards
>
> Ian
>
> -Original Message-
> From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
> Sent: Monday, February 13, 2012 9:37 AM
> To: Ian Walberg; mapserver-users@lists.osgeo.org
> Subject: RE: Circles around points in miles
>
> Couple of options depending on version:
>
>1) 6.x: buffer the points using a style geomtransform
>2) all versions: use layer SIZEUNITS to draw a circle symbol in 
> miles
>
> I think option 1 is more flexible but option 2 is probably faster.
>
> Steve
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ian 
> Walberg
> Sent: Saturday, February 11, 2012 10:06 PM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Circles around points in miles
>
>
> We need to draw circles of 50 and 100 miles around a list of points.
>
> How can we do this?
>
> Thanks
>
> Ian
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] I have a problem with layerObj (mapscript C#), MapServer 6.0.1 (and 6.0.2)

2012-02-16 Thread mmypost mmypost
Hi
Sorry for my bad English.

I downloaded mapserver package 3.0.3 (then 3.0.4) from MS4W site .
My old code trying to get shapeObj by layerObj .getFeature.
But new mapscript not contains getFeature mathod (although new mapscript 
documentation contains layerObj .getFeature description ).
Can I to get shapeObj  by shape id in new mapscript?


Yours sincerely,
Sev

PS:
  layerObj.getResult(i) return resultObj now.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript

2012-02-16 Thread Alan Boudreault

Hi Nick,

It is normal that the var_dump and/or print_r returns nothing. IIRC, 
those functions haven't been implemented in the extension (yet?). 
However, you should not be able to set/get a properties that is not a 
member of the mapObj. I guess you map is really an empty object. Enable 
error log and debug in your mapfile to see if something is wrong.. 
though an error is normally thrown when the mapfile cannot be loaded.


Alan

On 12-02-16 11:25 AM, Nick Friedrich wrote:

Hello,

I have a problem with Mapserver 6.0.1 and PHP Mapscript.
Until now I am working with Mapserver 5.2.

For testing purposes I created a minimal mapfile, just with name and
symbolset. The symbolset file contains just one simple filled circle.
When I create a mapObj (tried old an new constructors) I get an empty
Object (var_dump or print_r). Non-object members like name or status are
still there, when accessing them directly.
Set methods are also working for non-object members. Members, that are
objects themselves, like projection, are not accessible.

I have no clue what could be the problem. The system configuration is
the same as when using Mapserver 5.2.
PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd,
...) meet the requirements.

Thanks for your help,
Nick


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Alan Boudreault
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript

2012-02-16 Thread Nick Friedrich

Hello,

I have a problem with Mapserver 6.0.1 and PHP Mapscript.
Until now I am working with Mapserver 5.2.

For testing purposes I created a minimal mapfile, just with name and 
symbolset. The symbolset file contains just one simple filled circle.
When I create a mapObj (tried old an new constructors) I get an empty 
Object (var_dump or print_r).  Non-object members like name or status 
are still there, when accessing them directly.
Set methods are also working for non-object members. Members, that are 
objects themselves, like projection, are not accessible.


I have no clue what could be the problem. The system configuration is 
the same as when using Mapserver 5.2.
PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, 
...) meet the requirements.


Thanks for your help,
Nick


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP max_input_vars can effect Mapbender administration and block requests

2012-02-16 Thread Astrid Emde

sorry, wrong list.

A.

Am 16.02.2012 11:33, schrieb Astrid Emde:

Hello,

some of you may have problems saving changes within the Mapbender
administration for example when you have a WMS with many layers. I 
wrote a mail before about Suhosin blocking requests when the 
Suhosin-variables are set too restrictive  [1].


The problem can also occur, when the PHP variable max_input_vars [2] 
is not set.


You may get a log message like this:

"PHP Warning:  Unknown: Input variables exceeded 1000. To increase the 
limit change max_input_vars in php.ini."



The default of this variable is 1000. If you have WMS with many layer 
you may have to increase this variable.


I added this information to the Mapbender wiki [3][4].

[1] 
http://lists.osgeo.org/pipermail/mapbender_users/2011-December/004046.html

[2] http://php.net/manual/en/info.configuration.php
[3] http://mapbender.org/PHP_Configuration#PHP_Configuration
[4] http://mapbender.org/Suhosin



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] PHP max_input_vars can effect Mapbender administration and block requests

2012-02-16 Thread Astrid Emde

Hello,

some of you may have problems saving changes within the Mapbender
administration for example when you have a WMS with many layers. I wrote 
a mail before about Suhosin blocking requests when the Suhosin-variables 
are set too restrictive  [1].


The problem can also occur, when the PHP variable max_input_vars [2] is 
not set.


You may get a log message like this:

"PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change 
max_input_vars in php.ini."


The default of this variable is 1000. If you have WMS with many layer 
you may have to increase this variable.


I added this information to the Mapbender wiki [3][4].

[1] 
http://lists.osgeo.org/pipermail/mapbender_users/2011-December/004046.html

[2] http://php.net/manual/en/info.configuration.php
[3] http://mapbender.org/PHP_Configuration#PHP_Configuration
[4] http://mapbender.org/Suhosin

--

Mit freundlichen Grüßen

Astrid Emde


FOSSGIS Konferenz 2012
20.-22. März 2012 in Dessau
http://www.fossgis.de/konferenz/2012

--

 Astrid Emde
 WhereGroup GmbH&  Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.e...@wheregroup.com
 www.wheregroup.com

Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
 pgp-public key:
 http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS format=application/openlayers and following image/svg+xml requests

2012-02-16 Thread Rahkonen Jukka
Hi,

I can see from the logs that if application/openlayers is selected as WMS 
outputformat, the simple OpenLayers client will repeat the GetMap request with 
outputformat image/svg+xml.  This works fine and fast with close zoom but leads 
to time out when zoomed to full extents. Obviously converting thousands of 
objects into SVG vectors is too heavy operation. Is there some big advantage in 
having the Simple client to ask for image/svg+xml format instead of, for 
example, image/png?  Is there some easy way to change this setting?

It would be also nice if the Simple client would keep the WMS vendor parameters 
if the original GetMap contains such.

-Jukka Rahkonen-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users