[mapserver-users] Re: mapserver documentation: unique gid using srid=x ?

2010-02-08 Thread Ivan Mincik
Hi,
according Mapserver docs: http://mapserver.org/input/vector/postgis.html there 
is different syntax of using USING 
UNIQUE gid USING SRID=x string in DATA  line in similar cases.

In simple case example:
DATA the_geom from the_database USING unique gid using srid=4326

In case of using a SQL subquery example:
DATA the_geom from (select g.gid, g.the_geom, a.attr1, a.attr2 from geotable 
g join attrtable a on g.gid = a.aid) as 
subquery unique gid using srid=4326

When comparing these two examples, second example (SQL subquery example) is 
missing first USING keyword. Shouldn't be 
second example as following:
DATA the_geom from (select g.gid, g.the_geom, a.attr1, a.attr2 from geotable 
g join attrtable a on g.gid = a.aid) as 
subquery USING unique gid using srid=4326

When testing on Mapserver 5.2.x, it seems to be typo in documentation. If I am 
correct, would You please fix it ?

Thanks. Ivan


signature.asc
Description: This is a digitally signed message part.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] many raster projections

2010-02-08 Thread Andy Colson
Ok, I'm confused.  Most of the problem is probably because I'm a 
programmer, not a mapper.


I have arial imagery of Minnesota, multiple sets, each seeming to be in 
a different projection.


At the top of my mapfile I have this:

MAP
  EXTENT 1285920 1377857 1426390 1506589

  PROJECTION
+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3 
+x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs

  END

There are no other PROJECTION settings.  Most of the images seem to 
work.  I got the projtext above from loading one of the shapefiles into 
qgis and looking at its properties.  I just kinda hoped they'd all be 
the same.  I did try adding a PROJECTION to the raster layer, but it 
didnt seem to work.  So I thought I'd just re-project the imagery.



Three sets of imagery seem to work (I didnt touch them, they always 
worked), they have (again copied from qgis) proj text's of:


+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3 
+x_0=50.01 +y_0=0 +ellps=GRS80 +datum=NAD83 
+to_meter=0.3048006096012192 +no_defs


+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

and

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

One set is displayed way off the map, way far away from where its 
supposed to be.  Its projtext is:


+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs

I attempted to use gdal_translate and gdal_warp.

gdal_translate made a new image, with projtext:
+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3 
+x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs


but its in the exact same spot, it didnt re-position to where images are 
supposed to be.


A gdalwarp moved it, but not to the right place.

So I'm confused, and not sure what I'm doing.  Hopefully there is some 
info in here someone can use to set me on the right path.  Any help 
would be appreciated.


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


RE: [mapserver-users] Re: Making labels appear less often on adjacent tiles

2010-02-08 Thread Lime, Steve D (DNR)
Sounds like you might want to use the MINDISTANCE label parameter in this case. 
I think if you see it to a value close to the size of your metatiles you'd get 
sparse labeling of those features but not simply the single label that 
pre-clipping computation gives you. That's the approach I take with things like 
National Forests in Minnesota where 1 polygon covers ~3 million acres...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of windfreak 
[martijnvanderp...@gmail.com]
Sent: Friday, February 05, 2010 7:32 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Re: Making labels appear less often on adjacent  
tiles

Now I have an intermediate example.
What if I have a large polygon or a large polyline. I don't want to see the
labels for every tile of 250 x 250 pixels, but I don't like it when there's
only one label when the polygon or polyline spans 40 tiles for example.

-
http://www.topspots.org
--
View this message in context: 
http://n2.nabble.com/Making-labels-appear-less-often-on-adjacent-tiles-tp3822139p4519886.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
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] many raster projections

2010-02-08 Thread Fawcett, David (MPCA)
Andy, 

It looks like you have data in at least two or three different projections.  If 
you want to display them in the same map using MapServer, you need:

- a projection block at the MAP level.  This defines your output projection.  
The map UNITS and EXTENT need tobe consistent with this projection.  

- a projection block for each layer.  This is used to tell MapServer what 
projection the data for that layer is currently in.  

MapServer then uses this info to warp all of the layers into the same output 
projection.  

Does this help?  

Are these all publicly available datasets?

David.



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson
Sent: Monday, February 08, 2010 10:11 AM
To: mapserver-users
Subject: [mapserver-users] many raster projections

Ok, I'm confused.  Most of the problem is probably because I'm a 
programmer, not a mapper.

I have arial imagery of Minnesota, multiple sets, each seeming to be in 
a different projection.

At the top of my mapfile I have this:

MAP
   EXTENT 1285920 1377857 1426390 1506589

   PROJECTION
 +proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3 
+x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs
   END

There are no other PROJECTION settings.  Most of the images seem to 
work.  I got the projtext above from loading one of the shapefiles into 
qgis and looking at its properties.  I just kinda hoped they'd all be 
the same.  I did try adding a PROJECTION to the raster layer, but it 
didnt seem to work.  So I thought I'd just re-project the imagery.


Three sets of imagery seem to work (I didnt touch them, they always 
worked), they have (again copied from qgis) proj text's of:

+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3 
+x_0=50.01 +y_0=0 +ellps=GRS80 +datum=NAD83 
+to_meter=0.3048006096012192 +no_defs

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

and

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

One set is displayed way off the map, way far away from where its 
supposed to be.  Its projtext is:

+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs

I attempted to use gdal_translate and gdal_warp.

gdal_translate made a new image, with projtext:
+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3 
+x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs

but its in the exact same spot, it didnt re-position to where images are 
supposed to be.

A gdalwarp moved it, but not to the right place.

So I'm confused, and not sure what I'm doing.  Hopefully there is some 
info in here someone can use to set me on the right path.  Any help 
would be appreciated.

-Andy
___
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] many raster projections

2010-02-08 Thread Andy Colson

Thank you, but that didnt seem to help.

I left the main PROJECTION as is, and I changed my raster to this:

LAYER
NAME raster07
STATUS off
TILEINDEX raster07.shp
TILEITEM location
TYPE RASTER
PROJECTION
+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs
END
END


Now, here's another problem (to add to the layers of projections).  I'm 
using OpenLayers on the front end (for the website), and I have no idea 
what all this projection stuff means, and wasnt sure how to set it in 
OpenLayers.


I create the map like this:

map = new OpenLayers.Map(map, {
controls: [
new OpenLayers.Control.Navigation( {zoomWheelEnabled: false} ),
new OpenLayers.Control.PanZoomBar(),
ls
],
numZoomLevels: 12,
maxExtent: new OpenLayers.Bounds([%minx%], [%miny%], [%maxx%], 
[%maxy%]),
maxResolution: 250,
unit: 'm',
projection: EPSG:2816}
);

It seems to work.  I totally guessed at EPSG:2816, I have no idea if it 
matches:
+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3 
+x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs


The shapefiles show up, as do most of the arials.

 Are these all publicly available datasets?

I dont know, they are from the Livingston county Missouri Assessors 
office.  Hum... did I say Minnesota before?  That was wrong, its MO not 
MN.  Its about 2 gig, and I could email and ask them if it really comes 
down to it.


-Andy

On 2/8/2010 10:36 AM, Fawcett, David (MPCA) wrote:

Andy,

It looks like you have data in at least two or three different
projections.  If you want to display them in the same map using
MapServer, you need:

- a projection block at the MAP level.  This defines your output
projection.  The map UNITS and EXTENT need tobe consistent with this
projection.

- a projection block for each layer.  This is used to tell MapServer
what projection the data for that layer is currently in.

MapServer then uses this info to warp all of the layers into the same
output projection.

Does this help?

Are these all publicly available datasets?

David.



-Original Message- From:
mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy
Colson Sent: Monday, February 08, 2010 10:11 AM To: mapserver-users
Subject: [mapserver-users] many raster projections

Ok, I'm confused.  Most of the problem is probably because I'm a
programmer, not a mapper.

I have arial imagery of Minnesota, multiple sets, each seeming to be
in a different projection.

At the top of my mapfile I have this:

MAP EXTENT 1285920 1377857 1426390 1506589

PROJECTION +proj=tmerc +lat_0=35.84 +lon_0=-92.5
+k=0.3 +x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs
END

There are no other PROJECTION settings.  Most of the images seem to
work.  I got the projtext above from loading one of the shapefiles
into qgis and looking at its properties.  I just kinda hoped they'd
all be the same.  I did try adding a PROJECTION to the raster layer,
but it didnt seem to work.  So I thought I'd just re-project the
imagery.


Three sets of imagery seem to work (I didnt touch them, they always
worked), they have (again copied from qgis) proj text's of:

+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3
+x_0=50.01 +y_0=0 +ellps=GRS80 +datum=NAD83
+to_meter=0.3048006096012192 +no_defs

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

and

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

One set is displayed way off the map, way far away from where its
supposed to be.  Its projtext is:

+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs

I attempted to use gdal_translate and gdal_warp.

gdal_translate made a new image, with projtext: +proj=tmerc
+lat_0=35.84 +lon_0=-92.5 +k=0.3 +x_0=50
+y_0=0 +ellps=GRS80 +units=m +no_defs

but its in the exact same spot, it didnt re-position to where images
are supposed to be.

A gdalwarp moved it, but not to the right place.

So I'm confused, and not sure what I'm doing.  Hopefully there is
some info in here someone can use to set me on the right path.  Any
help would be appreciated.

-Andy ___ 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] many raster projections

2010-02-08 Thread Andy Colson
To take OpenLayers out of the equation, I made myself a test.map file 
that just included two layers and used shp2img.


If I switch on the 2007 (raster07) then I get no arial (the result image 
is just a gray slate).


If I switch on raster09_chil, the result image has the arial's as expected.


Hopefully the attachment will make it through.

-Andy



On 2/8/2010 11:05 AM, Andy Colson wrote:

Thank you, but that didnt seem to help.

I left the main PROJECTION as is, and I changed my raster to this:

LAYER
NAME raster07
STATUS off
TILEINDEX raster07.shp
TILEITEM location
TYPE RASTER
PROJECTION
+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs
END
END


Now, here's another problem (to add to the layers of projections). I'm
using OpenLayers on the front end (for the website), and I have no idea
what all this projection stuff means, and wasnt sure how to set it in
OpenLayers.

I create the map like this:

map = new OpenLayers.Map(map, {
controls: [
new OpenLayers.Control.Navigation( {zoomWheelEnabled: false} ),
new OpenLayers.Control.PanZoomBar(),
ls
],
numZoomLevels: 12,
maxExtent: new OpenLayers.Bounds([%minx%], [%miny%], [%maxx%], [%maxy%]),
maxResolution: 250,
unit: 'm',
projection: EPSG:2816}
);

It seems to work. I totally guessed at EPSG:2816, I have no idea if it
matches:
+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3
+x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs

The shapefiles show up, as do most of the arials.

  Are these all publicly available datasets?

I dont know, they are from the Livingston county Missouri Assessors
office. Hum... did I say Minnesota before? That was wrong, its MO not
MN. Its about 2 gig, and I could email and ask them if it really comes
down to it.

-Andy

On 2/8/2010 10:36 AM, Fawcett, David (MPCA) wrote:

Andy,

It looks like you have data in at least two or three different
projections. If you want to display them in the same map using
MapServer, you need:

- a projection block at the MAP level. This defines your output
projection. The map UNITS and EXTENT need tobe consistent with this
projection.

- a projection block for each layer. This is used to tell MapServer
what projection the data for that layer is currently in.

MapServer then uses this info to warp all of the layers into the same
output projection.

Does this help?

Are these all publicly available datasets?

David.



-Original Message- From:
mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy
Colson Sent: Monday, February 08, 2010 10:11 AM To: mapserver-users
Subject: [mapserver-users] many raster projections

Ok, I'm confused. Most of the problem is probably because I'm a
programmer, not a mapper.

I have arial imagery of Minnesota, multiple sets, each seeming to be
in a different projection.

At the top of my mapfile I have this:

MAP EXTENT 1285920 1377857 1426390 1506589

PROJECTION +proj=tmerc +lat_0=35.84 +lon_0=-92.5
+k=0.3 +x_0=50 +y_0=0 +ellps=GRS80 +units=m +no_defs
END

There are no other PROJECTION settings. Most of the images seem to
work. I got the projtext above from loading one of the shapefiles
into qgis and looking at its properties. I just kinda hoped they'd
all be the same. I did try adding a PROJECTION to the raster layer,
but it didnt seem to work. So I thought I'd just re-project the
imagery.


Three sets of imagery seem to work (I didnt touch them, they always
worked), they have (again copied from qgis) proj text's of:

+proj=tmerc +lat_0=35.84 +lon_0=-92.5 +k=0.3
+x_0=50.01 +y_0=0 +ellps=GRS80 +datum=NAD83
+to_meter=0.3048006096012192 +no_defs

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

and

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

One set is displayed way off the map, way far away from where its
supposed to be. Its projtext is:

+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs

I attempted to use gdal_translate and gdal_warp.

gdal_translate made a new image, with projtext: +proj=tmerc
+lat_0=35.84 +lon_0=-92.5 +k=0.3 +x_0=50
+y_0=0 +ellps=GRS80 +units=m +no_defs

but its in the exact same spot, it didnt re-position to where images
are supposed to be.

A gdalwarp moved it, but not to the right place.

So I'm confused, and not sure what I'm doing. Hopefully there is
some info in here someone can use to set me on the right path. Any
help would be appreciated.

-Andy ___ 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


MAP
NAME LivingstonMO
SIZE 800 800
UNITS feet
SHAPEPATH '/pub/maps/LivingstonMO/shape'
FONTSET /pub/www/fonts/fonts.txt

EXTENT 1285920 

Re: [mapserver-users] php mapscript loadQuery problem

2010-02-08 Thread Moen, Paul T.
The query file parser will throw a detailed error message if it has a parsing 
problem.


Where would I look for the errors that the query file parser throws?  I don't 
see any in the error_log for apache, which is where all my php errors are 
logged.  Does that mean that the parser is having no problems parsing the file, 
but something else goes awry?

I added some information hoping it may help.

This is my command from php
$test = $map-saveQuery(/tmp/testfile.txt);
error_log($test. .MS_SUCCESS);
The output from the error_log line above is Testing save query: 0 0

I then try to load the query file with the following commands.
$test = $map-loadQuery(/tmp/testfile.txt);
error_log(Testing load = .$test. - .MS_SUCCESS);
The output from the error_log line above is Testing load = 1 - 0

Thanks,

Paul

On Feb 1, 2010, at 3:55 PM, Lime, Steve D (DNR) wrote:

I’ll send you more details when I get time tonite (I hope) and can test things. 
I’ve been using 5.6 save/load query functions a ton via the CGI but not PHP. I 
tested a bunch with Perl MapScript and will have to check those methods against 
what PHP is doing. Here’s what the lines mean:

Line – Contents
0 - magic string
1 - mode, type (single or multiple), qlayer, slayer
2 - point x, point y, buffer, max results (queryByPoint)
3 - query rect (minx, miny, maxx, maxy) (queryByRect)
4 - shp index, tile index, clear cache flag (queryByIndex)
5 - qitem or NULL (queryByAttribute)
6 - qstring or NULL
7 - operator (used by WFS)
8+ - query shape (queryByShape)

Basically each line or so after the first couple match a MapServer query method 
and it’s parameters. The file contents look fine to me. The query file parser 
will throw a detailed error message if it has a parsing problem.

Steve

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T.
Sent: Monday, February 01, 2010 2:42 PM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] php mapscript loadQuery problem

I have not been able to get loadQuery to work.  The saveQuery command creates 
the file and returns MS_SUCCESS.  When I try to load the file using loadQuery, 
it always returns MS_FAILURE.  I get no other errors.   The permissions are 
good.  Is there a way to enable more verbose error logging to find out what is 
going on?  Is there any documentation on what should be in the saved file?

The following is the text from one of the saved query files.

MapServer Query - Generated by msSaveQuery()
1 2 83 -1
-1 -1 0 0
2183769.22727273 944435.909090909 2331977.40909091 1066349.09090909
-1 -1 1
NULL
NULL
-1
0

This is my version.

MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER 
SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Thanks,


Paul

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


[mapserver-users] Continuing problem with WCS and ENVI Multi-band files

2010-02-08 Thread Peter Willis

Hello,

I continue to have a problem selecting
a single band from a multi-band (563 bands)
ENVI format BSQ file.

Using the following URL mapserver gives me a FLOAT32 GTiff
file but it is always filled with zeros.

http://wcs.foo.com/cgi-bin/wcs?REQUEST=GetCoverageSERVICE=WCSVERSION=1.0.0COVERAGE=NDVICRS=EPSG:4326BBOX=-135,55,-121,46WIDTH=256HEIGHT=256FORMAT=GEOTIFF_FLOATBand=122

Is there any documentation that clearly
shows how WCS can be set up to do this?

My current LAYER definition is as follows:

LAYER
  NAME VegetationIndex
  STATUS OFF
  DEBUG ON
  TYPE RASTER
  METADATA
wcs_label   Data/NDVI
wcs_rangeset_name   'bands'
wcs_rangeset_label  NDVI
ows_extent '-135 55 -121 46'
wcs_resolution '0.08332 -0.083332'
ows_srs 'EPSG:4326'
wcs_srs 'EPSG:4326'
wcs_formats 'GEOTIFF_FLOAT,GEOTIFF_INT16'
wcs_nativeformat 'ENVI'

  END
  DATA /NDVI/ndvi.img
  PROJECTION
init=epsg:4623
  END
  DUMP TRUE
END

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


[mapserver-users] Adding a SLD for a WMS Service

2010-02-08 Thread David Martinez Morata
Hello.

I have a map file to Serve some layers, and I need to link some layers with
a sld files.
I read the SLD documentation in the MApserver web site, but i don't reali
understud what I'm doing:

1 I put in my layer defifnition

SLD Path/to/my/sld/file.sld

I try with metadatas

wms_sld_url Path/to/my/sld/file.sld
 wms_sld_body AUTO
*ows_sld_enabled*  true

But didn't works

I modifie my sld (gvsig generated) file deleting the tags that are not
compatible with mapserver and I don't know what to do with...

Any Help?

Thanks

-- 
Martinez Morata David
Thinking GIS
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] hyper-threading and performance

2010-02-08 Thread Mark Volz
Hello,

Does anyone know if the performance of Mapserver is increased if
hyper-threading is enabled?  If so how much?

Mark Volz
GIS Specialist
Lyon County, MN



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


Re: [mapserver-users] hyper-threading and performance

2010-02-08 Thread Andy Colson

On 2/8/2010 2:20 PM, Mark Volz wrote:

Hello,

Does anyone know if the performance of Mapserver is increased if
hyper-threading is enabled? If so how much?

Mark Volz

GIS Specialist

Lyon County, MN



Hey Mark,

What sort of usage are we talking?  Web hosting?  Shapefiles and arials? 
 I'm not sure if mapserver itself will use mult-threads, but if you 
have multiple requests comming into a website, apache/cgi/mapserver/etc 
will use multi process/threads/etc.


Its tough to say the performance increase.  I'm host several maps on a 
dual-core box, and the cpu's sit around 2 percent.  And with lots of 
arial imagery you might hit disk io limit before you hit cpu limit. 
(However, I have had some mrsid files that were really cpu intensive to 
uncompress, they were cpu bound).  Are your cpu's even pegged?


So, I guess, the answer is, it really depends on a lot of different 
variables.



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


RE: [mapserver-users] hyper-threading and performance

2010-02-08 Thread Mark Volz
Andy,

To be more specific:

I am using GeoMoose.  GeoMoose draws each layer separately so we do benefit
by having a multi-core processor even if there is only one user.  We also are
using a WMS Service so air photos is for the most part a non issue.  If my
understanding is correct hyper-threading has up to a 20 percent increase in
speed.  However, the performance increase is highly application specific and
in some cases performance may actually be lower with Hyper-Threading enabled.


Mark Volz
GIS Specialist
Lyon County, MN

-Original Message-
From: Andy Colson [mailto:a...@squeakycode.net] 
Sent: Monday, February 08, 2010 2:30 PM
To: Mark Volz
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] hyper-threading and performance

On 2/8/2010 2:20 PM, Mark Volz wrote:
 Hello,

 Does anyone know if the performance of Mapserver is increased if
 hyper-threading is enabled? If so how much?

 Mark Volz

 GIS Specialist

 Lyon County, MN


Hey Mark,

What sort of usage are we talking?  Web hosting?  Shapefiles and arials? 
  I'm not sure if mapserver itself will use mult-threads, but if you 
have multiple requests comming into a website, apache/cgi/mapserver/etc 
will use multi process/threads/etc.

Its tough to say the performance increase.  I'm host several maps on a 
dual-core box, and the cpu's sit around 2 percent.  And with lots of 
arial imagery you might hit disk io limit before you hit cpu limit. 
(However, I have had some mrsid files that were really cpu intensive to 
uncompress, they were cpu bound).  Are your cpu's even pegged?

So, I guess, the answer is, it really depends on a lot of different 
variables.


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


Re: [mapserver-users] hyper-threading and performance

2010-02-08 Thread Andy Colson
Yeah, I've heard the same thing.  If your system is cpu bound then I'd 
bet the difference between enabled and disabled is minimal (regardless 
if the difference is faster or slower).  20% either way is not very much.


If your not cpu bound, I'd bet you see no difference at all.

Of course, these are hugely big guesses.  And probably wrong.  I dont 
have any numbers to share.  Sorry.


-Andy


On 2/8/2010 2:48 PM, Mark Volz wrote:

Andy,

To be more specific:

I am using GeoMoose.  GeoMoose draws each layer separately so we do benefit
by having a multi-core processor even if there is only one user.  We also are
using a WMS Service so air photos is for the most part a non issue.  If my
understanding is correct hyper-threading has up to a 20 percent increase in
speed.  However, the performance increase is highly application specific and
in some cases performance may actually be lower with Hyper-Threading enabled.


Mark Volz
GIS Specialist
Lyon County, MN

-Original Message-
From: Andy Colson [mailto:a...@squeakycode.net]
Sent: Monday, February 08, 2010 2:30 PM
To: Mark Volz
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] hyper-threading and performance

On 2/8/2010 2:20 PM, Mark Volz wrote:

Hello,

Does anyone know if the performance of Mapserver is increased if
hyper-threading is enabled? If so how much?

Mark Volz

GIS Specialist

Lyon County, MN



Hey Mark,

What sort of usage are we talking?  Web hosting?  Shapefiles and arials?
   I'm not sure if mapserver itself will use mult-threads, but if you
have multiple requests comming into a website, apache/cgi/mapserver/etc
will use multi process/threads/etc.

Its tough to say the performance increase.  I'm host several maps on a
dual-core box, and the cpu's sit around 2 percent.  And with lots of
arial imagery you might hit disk io limit before you hit cpu limit.
(However, I have had some mrsid files that were really cpu intensive to
uncompress, they were cpu bound).  Are your cpu's even pegged?

So, I guess, the answer is, it really depends on a lot of different
variables.


-Andy


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


RE: [mapserver-users] php mapscript loadQuery problem

2010-02-08 Thread Lime, Steve D (DNR)
The way loadQuery works is like so:


1)  Load the queryfile into an internal queryObj

2)  Execute the query defined by the queryObj

If an error occurs at step 1 you'll get a load error of some sort.  If at 2 it 
is deeper inside one of the query methods. I'm not a PHP user but in Perl you 
can access the msGetErrorString() function like so:

  print mapscript::msGetErrorString(\n);

This will print the entire error stack one per line. PHP-MapScript must have 
something similar. We need to know if the problem is parsing the query file or 
if it's running the query itself.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T.
Sent: Monday, February 08, 2010 12:51 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] php mapscript loadQuery problem

The query file parser will throw a detailed error message if it has a parsing 
problem.


Where would I look for the errors that the query file parser throws?  I don't 
see any in the error_log for apache, which is where all my php errors are 
logged.  Does that mean that the parser is having no problems parsing the file, 
but something else goes awry?

I added some information hoping it may help.

This is my command from php
$test = $map-saveQuery(/tmp/testfile.txt);
error_log($test. .MS_SUCCESS);
The output from the error_log line above is Testing save query: 0 0

I then try to load the query file with the following commands.
$test = $map-loadQuery(/tmp/testfile.txt);
error_log(Testing load = .$test. - .MS_SUCCESS);
The output from the error_log line above is Testing load = 1 - 0

Thanks,

Paul

On Feb 1, 2010, at 3:55 PM, Lime, Steve D (DNR) wrote:

I'll send you more details when I get time tonite (I hope) and can test things. 
I've been using 5.6 save/load query functions a ton via the CGI but not PHP. I 
tested a bunch with Perl MapScript and will have to check those methods against 
what PHP is doing. Here's what the lines mean:

Line - Contents
0 - magic string
1 - mode, type (single or multiple), qlayer, slayer
2 - point x, point y, buffer, max results (queryByPoint)
3 - query rect (minx, miny, maxx, maxy) (queryByRect)
4 - shp index, tile index, clear cache flag (queryByIndex)
5 - qitem or NULL (queryByAttribute)
6 - qstring or NULL
7 - operator (used by WFS)
8+ - query shape (queryByShape)

Basically each line or so after the first couple match a MapServer query method 
and it's parameters. The file contents look fine to me. The query file parser 
will throw a detailed error message if it has a parsing problem.

Steve

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T.
Sent: Monday, February 01, 2010 2:42 PM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] php mapscript loadQuery problem

I have not been able to get loadQuery to work.  The saveQuery command creates 
the file and returns MS_SUCCESS.  When I try to load the file using loadQuery, 
it always returns MS_FAILURE.  I get no other errors.   The permissions are 
good.  Is there a way to enable more verbose error logging to find out what is 
going on?  Is there any documentation on what should be in the saved file?

The following is the text from one of the saved query files.

MapServer Query - Generated by msSaveQuery()
1 2 83 -1
-1 -1 0 0
2183769.22727273 944435.909090909 2331977.40909091 1066349.09090909
-1 -1 1
NULL
NULL
-1
0

This is my version.

MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER 
SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



Thanks,



Paul

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


[mapserver-users] INSIDE Idaho

2010-02-08 Thread Jon Miner
Anybody familiar with the projections used by INSIDE Idaho?

http://inside.uidaho.edu/default.htm

I can get the GeoTIFF rendered using this PROJECTION:

EXTENT 590767.311 267177.559 601059.798 281203.236

PROJECTION
proj=tmerc
lat_0=42
lon_0=-114
k=0.9996
x_0=250
y_0=120
ellps=GRS80
units=m
no_defs
END

but no luck getting the vector stuff to render.

- Jon



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