Re: [pmapper-users] MAXSCALE and Identify

2007-03-15 Thread Armin Burger
Could you check if this problem still appears with the patch provided 
some days ago by Alessandro Pasotti? It's available for p.mapper 3.1 at

http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/query/query.php

or just take the lines

$this->map->setSize($this->mapwidth, $this->mapheight);
$this->map->preparequery();

and insert them below line 190 in your query.php (below the line 
starting with "$this->map->setExtent($this->GEOEX...").
If this solves your problem could you report this back to the list?

Armin


Richie Pierce wrote:
> I've got a pmapper viewer up and running.  One of the Queryable layers
> within my map file is acting a bit strange.  The MAXSCALE for the layer is
> set to 18000 which works fine, the layer turns on appropriately.  However,
> the query-ability is not enabled until 11000.  I'm not sure why this is
> happening and I am unable to locate any configuration that would cause this.
> I double checked to make sure the "RESULT_FIELDS" is in my map file and that
> doesn't seem to be working either.  It still returns all the attributes from
> the table.  To clarify just in case, when I zoom on the map within the 18000
> MAXSCALE threshold, the layer becomes visible in the viewer, but it does not
> return any records unless I am within 11000.  I'm not sure if this is an
> issue but the dataset is extremely large (350,000+ records).  I have built a
> spatial index and it is not causing any problems for Mapserver.  Thanks in
> advance for any help.
> 
>  
> 
> Richie Pierce
> 
> Sr GIS Analyst
> 
> a.c.t.GeoSpatial, Inc.
> 
> 2900 Percy Machin Drive, Suite One
> 
> North Little Rock, AR 72114
> 
> Ph(501) 771-2985
> 
> [EMAIL PROTECTED]
> 
> www.actgeospatial.com
> 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-15 Thread Richie Pierce
Great.  It looks like that solved the problem.  I am still having an issue
with the attributes that are returned.  Within my map file I have specified 

LAYER
TEMPLATE 'void'
..
METADATA
  "RESULTS_FIELDS" "MUNAME COUNTY LCU ACD Crop Rice Pasture Timber" 
END #METADATA
...
END


But using the identify tool still returns all the attributes for the Layer.
Thanks for your help.


Richie Pierce
Sr GIS Analyst
a.c.t.GeoSpatial, Inc.
2900 Percy Machin Drive, Suite One
North Little Rock, AR 72114
Ph(501) 771-2985
[EMAIL PROTECTED]
www.actgeospatial.com
 
-Original Message-
From: Armin Burger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 3:12 PM
To: Richie Pierce
Cc: pmapper-users@lists.sourceforge.net
Subject: Re: [pmapper-users] MAXSCALE and Identify

Could you check if this problem still appears with the patch provided 
some days ago by Alessandro Pasotti? It's available for p.mapper 3.1 at

http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/query/query.php

or just take the lines

$this->map->setSize($this->mapwidth, $this->mapheight);
$this->map->preparequery();

and insert them below line 190 in your query.php (below the line 
starting with "$this->map->setExtent($this->GEOEX...").
If this solves your problem could you report this back to the list?

Armin


Richie Pierce wrote:
> I've got a pmapper viewer up and running.  One of the Queryable layers
> within my map file is acting a bit strange.  The MAXSCALE for the layer is
> set to 18000 which works fine, the layer turns on appropriately.  However,
> the query-ability is not enabled until 11000.  I'm not sure why this is
> happening and I am unable to locate any configuration that would cause
this.
> I double checked to make sure the "RESULT_FIELDS" is in my map file and
that
> doesn't seem to be working either.  It still returns all the attributes
from
> the table.  To clarify just in case, when I zoom on the map within the
18000
> MAXSCALE threshold, the layer becomes visible in the viewer, but it does
not
> return any records unless I am within 11000.  I'm not sure if this is an
> issue but the dataset is extremely large (350,000+ records).  I have built
a
> spatial index and it is not causing any problems for Mapserver.  Thanks in
> advance for any help.
> 
>  
> 
> Richie Pierce
> 
> Sr GIS Analyst
> 
> a.c.t.GeoSpatial, Inc.
> 
> 2900 Percy Machin Drive, Suite One
> 
> North Little Rock, AR 72114
> 
> Ph(501) 771-2985
> 
> [EMAIL PROTECTED]
> 
> www.actgeospatial.com
> 





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-15 Thread Armin Burger
Fine and thanks for the report. A quiet strange error seems to have 
disappeared with that. Maybe one should post this once on the Mapserver 
list.

The "setExtent()" is necessary if you want to apply correct query 
tolerances defined in pixels (which usually makes more sense than in 
absolute values like meters). But the side effect seems to be that the 
scale is not correct any more afterwards and has to be set again.

For the second question: I guess its just a typo, try
"RESULT_FIELDS" (removing the "S" from "RESULTS") and it should work.

armin

Richie Pierce wrote:
> Great.  It looks like that solved the problem.  I am still having an issue
> with the attributes that are returned.  Within my map file I have specified 
> 
> LAYER
> TEMPLATE 'void'
> ..
> METADATA
>   "RESULTS_FIELDS" "MUNAME COUNTY LCU ACD Crop Rice Pasture Timber" 
> END #METADATA
> ...
> END
> 
> 
> But using the identify tool still returns all the attributes for the Layer.
> Thanks for your help.
> 
> 
> Richie Pierce
> Sr GIS Analyst
> a.c.t.GeoSpatial, Inc.
> 2900 Percy Machin Drive, Suite One
> North Little Rock, AR 72114
> Ph(501) 771-2985
> [EMAIL PROTECTED]
> www.actgeospatial.com
>  
> -Original Message-
> From: Armin Burger [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 15, 2007 3:12 PM
> To: Richie Pierce
> Cc: pmapper-users@lists.sourceforge.net
> Subject: Re: [pmapper-users] MAXSCALE and Identify
> 
> Could you check if this problem still appears with the patch provided 
> some days ago by Alessandro Pasotti? It's available for p.mapper 3.1 at
> 
> http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/query/query.php
> 
> or just take the lines
> 
> $this->map->setSize($this->mapwidth, $this->mapheight);
> $this->map->preparequery();
> 
> and insert them below line 190 in your query.php (below the line 
> starting with "$this->map->setExtent($this->GEOEX...").
> If this solves your problem could you report this back to the list?
> 
> Armin
> 
> 
> Richie Pierce wrote:
>> I've got a pmapper viewer up and running.  One of the Queryable layers
>> within my map file is acting a bit strange.  The MAXSCALE for the layer is
>> set to 18000 which works fine, the layer turns on appropriately.  However,
>> the query-ability is not enabled until 11000.  I'm not sure why this is
>> happening and I am unable to locate any configuration that would cause
> this.
>> I double checked to make sure the "RESULT_FIELDS" is in my map file and
> that
>> doesn't seem to be working either.  It still returns all the attributes
> from
>> the table.  To clarify just in case, when I zoom on the map within the
> 18000
>> MAXSCALE threshold, the layer becomes visible in the viewer, but it does
> not
>> return any records unless I am within 11000.  I'm not sure if this is an
>> issue but the dataset is extremely large (350,000+ records).  I have built
> a
>> spatial index and it is not causing any problems for Mapserver.  Thanks in
>> advance for any help.
>>
>>  
>>
>> Richie Pierce
>>
>> Sr GIS Analyst
>>
>> a.c.t.GeoSpatial, Inc.
>>
>> 2900 Percy Machin Drive, Suite One
>>
>> North Little Rock, AR 72114
>>
>> Ph(501) 771-2985
>>
>> [EMAIL PROTECTED]
>>
>> www.actgeospatial.com
>>
> 
> 
> 
> 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-15 Thread Alessandro Pasotti
Il 22:19, giovedì 15 marzo 2007, Armin Burger ha scritto:
> Fine and thanks for the report. A quiet strange error seems to have
> disappeared with that. Maybe one should post this once on the Mapserver
> list.

Sorry for cross posting, 

there is another issue, more related to php_mapscript than p.mapper, but maybe 
of interest here as well.

A few weeks ago I reported a bug:
https://sourceforge.net/tracker/?func=detail&atid=570606&aid=1600980&group_id=83770

Yesterday I noticed a similar bug in mapserver bugzilla:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2047

The symptom is that even if MINSCALE is set to x and slidermin is set to x, 
user is not able to zoompoint exactly to x, but is "bounced" to a larger 
scale (a fixed value but apparently unrelated to x).

I really cannot understand why it happens, but the values set in MINSCALE and 
slidermin must be honored in order to have a coherent GUI behaviour in 
p.mapper as in any other webgis.

I patched pmap_zoompoint() in map.php and now it works as expected:

After:
http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/map.php#L519

// ABP: check scale
$minscale = $this->map->web->minscale;
//error_log($minscale);
$new_scale =  ($this->zoom_factor > 0) ? $this->old_geo_scale / 
$this->zoom_factor : $this->old_geo_scale * ( - $this->zoom_factor);
if($new_scale < $minscale){
return $this->map->zoomscale($minscale + 0.1, $xy_pix, 
$this->mapwidth, $this->mapheight, $this->geoext0, $this->maxextent);
}


This seems a mapserver bug and not a p.mapper bug, but meanwhile it is fixed, 
this patch allows us to solve the problem.


Regards.
-- 
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3:  www.itopen.it
Linux User# 167502

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-16 Thread Alessandro Pasotti
Il 08:47, venerdì 16 marzo 2007, Alessandro Pasotti ha scritto:
>
> I patched pmap_zoompoint() in map.php and now it works as expected:
>
> After:
> http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/map.php#L519
>
> // ABP: check scale
> $minscale = $this->map->web->minscale;
> //error_log($minscale);
> $new_scale =  ($this->zoom_factor > 0) ? $this->old_geo_scale /
> $this->zoom_factor : $this->old_geo_scale * ( - $this->zoom_factor);
> if($new_scale < $minscale){
> return $this->map->zoomscale($minscale + 0.1, $xy_pix,
> $this->mapwidth, $this->mapheight, $this->geoext0, $this->maxextent);
> }
>
>

An additional check ($this->zoom_factor != 1) should be added to ensure we are 
really trying to zoom:


// ABP: check scale
$minscale = $this->map->web->minscale;
$new_scale =  ($this->zoom_factor > 0) ? $this->old_geo_scale / 
$this->zoom_factor : $this->old_geo_scale * ( - $this->zoom_factor);
if($this->zoom_factor != 1 && $this->old_geo_scale && $new_scale < 
$minscale){
return $this->map->zoomscale($minscale + 0.1, $xy_pix, 
$this->mapwidth, $this->mapheight, $this->geoext0, $this->maxextent);
}


-- 
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3:  www.itopen.it
Linux User# 167502

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-16 Thread Armin Burger
The easiest way to solve this problem without any code modifications (I'm tired 
of permanently applying workarounds for Mapscript bugs...) is to set the 
MINSCALE to 4999 (or 4999.999) if you want to have a maximum (or minimum in MS 
logic) scale of 5000 used for the slider. I do not see any drawbacks for this 
setting. 

armin

> [pmapper-users] MAXSCALE and Identify

> Il 22:19, giovedì 15 marzo 2007, Armin Burger ha scritto:
> > Fine and thanks for the report. A quiet strange error seems to have
> > disappeared with that. Maybe one should post this once on the Mapserver
> > list.
> 
> Sorry for cross posting, 
> 
> there is another issue, more related to php_mapscript than p.mapper, but
> maybe 
> of interest here as well.
> 
> A few weeks ago I reported a bug:
> https://sourceforge.net/tracker/?func=detail&atid=570606&aid=1600980&group_id=83770
> 
> Yesterday I noticed a similar bug in mapserver bugzilla:
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2047
> 
> The symptom is that even if MINSCALE is set to x and slidermin is set to
> x, 
> user is not able to zoompoint exactly to x, but is "bounced" to a larger 
> scale (a fixed value but apparently unrelated to x).
> 
> I really cannot understand why it happens, but the values set in MINSCALE
> and 
> slidermin must be honored in order to have a coherent GUI behaviour in 
> p.mapper as in any other webgis.
> 
> I patched pmap_zoompoint() in map.php and now it works as expected:
> 
> After:
> http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/map.php#L519
> 
> // ABP: check scale
> $minscale = $this->map->web->minscale;
> //error_log($minscale);
> $new_scale =  ($this->zoom_factor > 0) ? $this->old_geo_scale / 
> $this->zoom_factor : $this->old_geo_scale * ( - $this->zoom_factor);
> if($new_scale < $minscale){
> return $this->map->zoomscale($minscale + 0.1, $xy_pix, 
> $this->mapwidth, $this->mapheight, $this->geoext0, $this->maxextent);
> }
> 
> 
> This seems a mapserver bug and not a p.mapper bug, but meanwhile it is
> fixed, 
> this patch allows us to solve the problem.
> 
> 
> Regards.
> -- 
> Alessandro Pasotti
> itOpen - "Open Solutions for the Net Age"
> w3:  www.itopen.it
> Linux User# 167502

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-16 Thread Alessandro Pasotti
Il 11:18, venerdì 16 marzo 2007, Armin Burger ha scritto:
> The easiest way to solve this problem without any code modifications (I'm
> tired of permanently applying workarounds for Mapscript bugs...) is to set
> the MINSCALE to 4999 (or 4999.999) if you want to have a maximum (or
> minimum in MS logic) scale of 5000 used for the slider. I do not see any
> drawbacks for this setting.

Neither I do, but it simply is'nt enough.

Setting scale to MINSCALE -1 does'nt solve the problem for me.

BTW this is definitely a mapscript bug so we all hope they will fix it, in the 
meantime I'm not asking to integrate my patch in p.mapper, just posted it 
here in case somebody else run into this problem.


-- 
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3:  www.itopen.it
Linux User# 167502

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-16 Thread Armin Burger
Setting the MINSCALE tag under WEB in the map file to 1 less than needed works 
fine for me on all MS versions tested. 

armin


> Neither I do, but it simply is'nt enough.
> 
> Setting scale to MINSCALE -1 does'nt solve the problem for me.
> 
> BTW this is definitely a mapscript bug so we all hope they will fix it, in
> the 
> meantime I'm not asking to integrate my patch in p.mapper, just posted it 
> here in case somebody else run into this problem.
> 
> 
> -- 
> Alessandro Pasotti
> itOpen - "Open Solutions for the Net Age"
> w3:  www.itopen.it
> Linux User# 167502

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-19 Thread Pfeiffer Michael
Hi Armin, Alessandro
I have the same problems with minscale. Armin are you sure everything
works fine for you with minscale? Maybe there is a misunderstanding:
Minscale is working but if I zoom in to a scale bigger then minscale eg
with the zoomin tool Mapserver gives back a map with a scale smaller
then minscale (for example Minscale is 1:1. I zoom in to 1:8000.
Mapserver is giving back a map with a scale like 1:14000) . Setting
minscale to 1 less then needed doesn't solve the problem.
I think too it is a mapscript problem because i tested it with a simple
code snippet and had the same problems
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2047).
So thanks to Alessandro for the patch. I will test it and hope it works
for me too.

Regards 

Michael 

-Ursprüngliche Nachricht-
Von: Armin Burger [mailto:[EMAIL PROTECTED]
Gesendet am: Freitag, 16. März 2007 14:39
An: Alessandro Pasotti; pmapper-users@lists.sourceforge.net
Betreff: Re: [pmapper-users] MAXSCALE and Identify

Setting the MINSCALE tag under WEB in the map file to 1 less than needed
works fine for me on all MS versions tested. 

armin


> Neither I do, but it simply is'nt enough.
> 
> Setting scale to MINSCALE -1 does'nt solve the problem for me.
> 
> BTW this is definitely a mapscript bug so we all hope they will fix
it, in
> the 
> meantime I'm not asking to integrate my patch in p.mapper, just posted
it 
> here in case somebody else run into this problem.
> 
> 
> -- 
> Alessandro Pasotti
> itOpen - "Open Solutions for the Net Age"
> w3:  www.itopen.it
> Linux User# 167502

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-19 Thread Armin Burger
I think the patch from Alessandro will work for several zoom functions, 
but not for all. E.g. not for zoom via a rectangle (zoombox) on the map.

armin

Pfeiffer Michael wrote:
> Hi Armin, Alessandro
> I have the same problems with minscale. Armin are you sure everything
> works fine for you with minscale? Maybe there is a misunderstanding:
> Minscale is working but if I zoom in to a scale bigger then minscale eg
> with the zoomin tool Mapserver gives back a map with a scale smaller
> then minscale (for example Minscale is 1:1. I zoom in to 1:8000.
> Mapserver is giving back a map with a scale like 1:14000) . Setting
> minscale to 1 less then needed doesn't solve the problem.
> I think too it is a mapscript problem because i tested it with a simple
> code snippet and had the same problems
> (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2047).
> So thanks to Alessandro for the patch. I will test it and hope it works
> for me too.
> 
> Regards 
> 
> Michael 
> 
> -Ursprüngliche Nachricht-
> Von: Armin Burger [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 16. März 2007 14:39
> An: Alessandro Pasotti; pmapper-users@lists.sourceforge.net
> Betreff: Re: [pmapper-users] MAXSCALE and Identify
> 
> Setting the MINSCALE tag under WEB in the map file to 1 less than needed
> works fine for me on all MS versions tested. 
> 
> armin
> 
> 
>> Neither I do, but it simply is'nt enough.
>>
>> Setting scale to MINSCALE -1 does'nt solve the problem for me.
>>
>> BTW this is definitely a mapscript bug so we all hope they will fix
> it, in
>> the 
>> meantime I'm not asking to integrate my patch in p.mapper, just posted
> it 
>> here in case somebody else run into this problem.
>>
>>
>> -- 
>> Alessandro Pasotti
>> itOpen - "Open Solutions for the Net Age"
>> w3:  www.itopen.it
>> Linux User# 167502
> 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2007-03-21 Thread Alessandro Pasotti
Il 21:58, lunedì 19 marzo 2007, Armin Burger ha scritto:
> I think the patch from Alessandro will work for several zoom functions,
> but not for all. E.g. not for zoom via a rectangle (zoombox) on the map.

Yes, Armin you're right,
here is the patch for zoombox:

Insert after
http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/map.php#L483

// ABP: check scale
$x_pix = ($pix_maxx + $pix_minx) / 2;
$y_pix = ($pix_maxy + $pix_miny) / 2;
$xy_pix = ms_newPointObj();
$xy_pix->setXY($x_pix, $y_pix);
$minscale = $this->map->web->minscale;
$zoom_factor = $this->mapwidth / ($pix_maxx - $pix_minx);
if($zoom_factor < 1){
$zoom_factor = - 1 / $zoom_factor;
}
//error_log("$zoom_factor");
$new_scale =  ($zoom_factor > 0) ? $this->old_geo_scale / 
$zoom_factor : $this->old_geo_scale * ( - $zoom_factor);
//error_log("$new_scale < $minscale");
if($zoom_factor != 1 && $this->old_geo_scale && $new_scale < 
$minscale){
return $this->map->zoomscale($minscale + 0.1, $xy_pix, 
$this->mapwidth, $this->mapheight, $this->geoext0, $this->maxextent);
}
// ABP: End


---
Also a small fix to the previous zoompoint patch:

Insert after
http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/map.php#L519

// ABP: check scale
$minscale = $this->map->web->minscale;
//error_log($minscale);
//error_log($this->zoom_factor);
$new_scale =  ($this->zoom_factor > 0) ? $this->old_geo_scale / 
$this->zoom_factor : $this->old_geo_scale * ( - $this->zoom_factor);
//error_log($this->old_geo_scale);
if($this->zoom_factor != 1 && $this->old_geo_scale && $new_scale < 
$minscale){
return $this->map->zoomscale($minscale + 0.1, $xy_pix, 
$this->mapwidth, $this->mapheight, $this->geoext0, $this->maxextent);
}
//*/




-- 
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3:  www.itopen.it
Linux User# 167502

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2011-04-06 Thread Sandro Ferrara
Hi,
the patch in this thread, 
http://www.mail-archive.com/pmapper-users@lists.sourceforge.net/msg01245.html 
, perhaps is what i'm searching, but it's very old.

How can i use this with this configuration?
PHP Version 5.2.10-2ubuntu6.7
MapServer version 5.6.5
Ubuntu 9.10
Pmapper 4.0

I added a tag in mine map file MAP->WEB-> MINSCALEDENOM 499 (as 
suggested by Armin Burger)
i also added MINSCALEDENOM 499 to all my layers

But when i zoom to a scale bigger than 1:499 i get a map with an extent 
1:1040

Any help for me?
Thanks in advance
Sandro

/
/




-- 
Consider the environment. Please don't print this e-mail unless you really need 
to.

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Informativa ai sensi del d.lgs. 196/03
Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque, destinate esclusivamente alle 
persone o Società sopraindicati. La diffusione, distribuzione e/o copiatura de 
documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è 
proibita, sia ai sensi dell'art. 616 c.p. che ai sensi del D. Lgs. n. 196/2003. 
Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e 
di informarci immediatamente inviando un messaggio al presente indirizzo.

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2011-04-06 Thread Armin Burger
Try to replace in incphp/map/map.php line 590
  if ($minscale = $this->map->web->minscale) {
with
  if ($minscale = $this->map->web->minscaledenom) {

and see if it helps. I just recently replaced all min/maxscale with
min/maxscaledenom in the dev version which is the recommended setting.

alternatively you could try the other way round for a test and define
  MAP->WEB-> MINSCALE
instead.

armin

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2011-04-06 Thread Sandro Ferrara
Thanks, but unfortunately it does not work in both ways.

Sandro


Il 06/04/2011 17:30, Armin Burger ha scritto:
> Try to replace in incphp/map/map.php line 590
>if ($minscale = $this->map->web->minscale) {
> with
>if ($minscale = $this->map->web->minscaledenom) {
>
> and see if it helps. I just recently replaced all min/maxscale with
> min/maxscaledenom in the dev version which is the recommended setting.
>
> alternatively you could try the other way round for a test and define
>MAP->WEB->  MINSCALE
> instead.
>
> armin
>


-- 
Consider the environment. Please don't print this e-mail unless you really need 
to.

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Informativa ai sensi del d.lgs. 196/03
Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque, destinate esclusivamente alle 
persone o Società sopraindicati. La diffusione, distribuzione e/o copiatura de 
documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è 
proibita, sia ai sensi dell'art. 616 c.p. che ai sensi del D. Lgs. n. 196/2003. 
Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e 
di informarci immediatamente inviando un messaggio al presente indirizzo.


--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2011-04-10 Thread Armin Burger
Sandro

I checked the code, and the solution I suggested will work only in very 
rare cases where an explicit zoom to an extent is performed (which is 
rarely the case).

Otherwise it seems Mapserver has a very special way to handle this 
MINSCALE/MINSCALEDENOM. It works if the map width is lower than the map 
height (you can easily try this effect). Otherwise it usually sets a 
higher value for the resulting scale. This seems to be a "feature" (I'd 
call it a bug) of Mapserver/Mapscript and cannot easily overcome in 
p.mapper (or would require adding lots of additional checks for all the 
various zoom functions).

armin

On 06/04/2011 19:22, Sandro Ferrara wrote:
> Thanks, but unfortunately it does not work in both ways.
>
> Sandro
>
>
> Il 06/04/2011 17:30, Armin Burger ha scritto:
>> Try to replace in incphp/map/map.php line 590
>> if ($minscale = $this->map->web->minscale) {
>> with
>> if ($minscale = $this->map->web->minscaledenom) {
>>
>> and see if it helps. I just recently replaced all min/maxscale with
>> min/maxscaledenom in the dev version which is the recommended setting.
>>
>> alternatively you could try the other way round for a test and define
>> MAP->WEB->   MINSCALE
>> instead.
>>
>> armin
>>
>
>

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] MAXSCALE and Identify

2013-05-26 Thread Bogumił Szady
Hello,

http://www.mail-archive.com/pmapper-users@lists.sourceforge.net/msg03914.html

Is there any solution regarding "feature" or as you said "bug" of 
mapserver or php mapscript
relating MINSCALEDENOM paramater. I am trying to use zoom to minscale, 
but it doesn't work well...

kind regards and thanks for help in advance

Bogumił

sz...@kul.lublin.pl 
hgis.kul.lublin.pl 
geohistoria.pl 

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users