Re: [mapserver-users] RE WMS layer filtering (UNCLASSIFIED)

2013-06-12 Thread Smith, Michael ERDC-CRREL-NH
Classification: UNCLASSIFIED
Caveats: NONE

Could you use script wrappers to set different environment variables

Eg a wms file and a wfs file

Your WMS file
#!/bin/sh
MS_MAPFILE=/path/to/mapfile
export MS_MAPFILE
export LATEST_OBS=1
/cgi-bin/mapserv


WFS File
#!/bin/sh
MS_MAPFILE=/path/to/mapfile
export MS_MAPFILE
export LATEST_OBS=0
/cgi-bin/mapserv


And then use %LATEST_OBS% in your 
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kralidis,Tom 
[Ontario]
Sent: Wednesday, June 12, 2013 8:44 AM
To: steve.tout...@inspq.qc.ca
Cc: mapserver-users@lists.osgeo.org; mapserver-users-boun...@lists.osgeo.org
Subject: Re: [mapserver-users] RE WMS layer filtering

Steve: thanks for the info.  Good point.  It would help, however the client 
would require apriori knowledge, which won't help in our case because we want 
things more generic.

Of course, there's always MapScript (i.e. set LAYER.FILTER only if it's a WMS 
GetMap/GetFeatureInfo request), but I was hoping for something less involved, 
or configurable.



From: steve.tout...@inspq.qc.ca [mailto:steve.tout...@inspq.qc.ca] 
Sent: June 12, 2013 8:40 AM
To: Kralidis,Tom [Ontario]
Cc: mapserver-users@lists.osgeo.org; mapserver-users-boun...@lists.osgeo.org
Subject: RE [mapserver-users] WMS layer filtering


Does runtime substitution can help? 
You could post latest_observation=1 when calling the wms and 0 and 1 when using 
the wfs

the filter would be latest_observation in (%param%) 


Kralidis,Tom [Ontario] tom.krali...@ec.gc.ca@lists.osgeo.org 
Envoyé par : mapserver-users-boun...@lists.osgeo.org 
2013-06-12 08:23 
A
mapserver-users@lists.osgeo.org 
cc

Objet
[mapserver-users] WMS layer filtering









Hi: we have a MapServer OWS instance which we use to disseminate
observations via WMS and WFS/SOS.

One of our layers has 1 million records (PostGIS backend).  The layer
has CLASS level EXPRESSION objects for WMS visualization/classification.
We initially implemented a LAYER level FILTER, however we have use cases
to serve the same layer (with the same identifier) via WFS, in which
case we'd like all the data to be available.

Our problem happens when visualizing via WMS.  We have a Boolean column
in our PostGIS table ('latest_observation') which allows us to filter
easily to visualize latest observations, which is our desired WMS
default.

Because we have defined CLASS level filters, the WMS GetMap request is
first querying and fetching all records and _then_ applying CLASS level
filters (which all include 'latest_observation=1'.  So this ends up
hurting us performance wise.

We'd like to have this filter at the query level so that less members
are passed back from the SQL query. 

When we do a LAYER.FILTER with latest_observation=1, the result is
instant (beautiful!).  But if we put a LAYER.FILTER, this constrains the
data access from the WFS perspective against the same LAYER def.

Is there any way to apply a LAYER.FILTER type approach to work _just_ in
WMS mode? We'd like all the data in WFS mode.

I know we can duplicate the LAYER object as a workaround, but from a
data management perspective we'd rather now.

I hope I have explained this clearly enough.  Any suggestions?

Thanks

..Tom
___
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

Classification: UNCLASSIFIED
Caveats: NONE


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


Re: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED)

2013-03-18 Thread Smith, Michael ERDC-CRREL-NH
Classification: UNCLASSIFIED
Caveats: NONE

Eric,

I assume you mean ArcSDE support? If so, on windows, the ms4w release includes 
ArcSDE support. Find it at http://www.maptools.org/ms4w/

For linux, you just need to reference the arcsde development headers path in 
the ./configure path for --with-arcsde.

Mike

Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers




-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric
Sent: Monday, March 18, 2013 3:22 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Compile MapServer with ArcServer 10 support

Hello,

 

Is there any documentation on how to compile MapServer with ArcServer 10 
support?  Any help is greatly appreciated.

 

Thanks,

 

Eric Weisbender

 


Classification: UNCLASSIFIED
Caveats: NONE


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


Re: [mapserver-users] clickable POI's

2012-08-14 Thread Smith, Michael ERDC-CRREL-NH
Darwiet,

I would say that’s the best way but there is also imagemaps. See 
http://mapserver.org/output/imagemaps.html

Personally, I'd recommend the openlayers route.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center

From: star wiet darw...@googlemail.commailto:darw...@googlemail.com
Date: Tuesday, August 14, 2012 8:53 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] clickable POI's

Dear MapServer Community,

I am new to MapServer and have one general question:
Is there any possibility to create clickable POI's/ Symbols in MapServer 
(like e.g. the googlemaps Photos or something like that)? The only thing I 
found so far is to combine MapServer and OpenLayers, but before entering that 
field I wanted to be sure, that this would be the only way.

If anyone can give me a link/ tip where to search, I woul really appreciate it!

Thank in advance,
Darwiet, Austria
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ESRI file geodatabase and php mapscript

2012-06-22 Thread Smith, Michael ERDC-CRREL-NH
OGR does work with ESRI FileGDB tables that are non-spatial.

Mike

-- 
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers



On 6/22/12  1:25 PM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote:

On 12-06-22 12:46 PM, Brian Fischer wrote:
 Hi,
 
 I was wondering if anyone is willing to share any experience they have
 had with using an ESRI File Geodatabase with MapServer.  Specifically
 I¹m wondering about:
 
 1)  How is the performance when compared against other data sources
 for rendering maps?  Does OGR/GDAL make use of spatial indexes?
 
 2)  Can a file geodatabase be accessed through PHP or Python
 mapscript for querying/searching?
 
 3)  Could I access a standalone table (non-spatial table) that is
 stored in a file geodatabase with mapscript?  Many want to use this for
 joins and relates in my queries.
 

Hi Brian,

We did start to look at FileGDB support in MapServer during last year's
WMS Benchmarking exercise.  At the time we were a little early for this
testing, as the FileGDB driver was still going through development; but
now, FileGDB has been available in MS4W since January, and we might take
a look at this again for the upcoming WMS Benchmarking exercise for
September (this may address your performance questions).

As for your specific mapscript questions, as MapServer uses OGR to
connect to FileGDB layers, you should be able to connect to that layer
through mapscript with a CONNECTIONTYPE OGR, no different than other OGR
connections.

That's a good question about non-spatial tables, did you try an ogrinfo
on that table?  Give that a try with MS4W, and then if you can see the
table with ogrinfo then you'll know that at least GDAL/OGR can access it.

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.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] Mapserver as cascading WMS for ArcGIS Rest?

2012-05-24 Thread Smith, Michael ERDC-CRREL-NH
WMS is different from the REST services (enabled separately). MapServer
can cascade ArcGIS Server WMS services.

Mike

On 5/24/12 7:43 AM, Alan Boudreault aboudrea...@mapgears.com wrote:

I don't think so. MapServer only allows wms cascading using the http/wms
requests.

Alan

On 12-05-23 09:39 PM, Robert Sanson wrote:
 Is it possible to have a layer in Mapserver pulling data from a ArcGIS
Rest service?

 Thanks,

 Robert Sanson




 This email and any attachments are confidential and intended solely for
the addressee(s). If you are not the intended recipient, please notify
us immediately and then delete this email from your system.

 This message has been scanned for Malware and Viruses by Websense
Hosted Security.
 www.websense.com
 ___
 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest?

2012-05-24 Thread Smith, Michael ERDC-CRREL-NH
You can also read the data from arcgis rest services using the gdal
geojson driver. Its been updated to support ESRI json (which is not true
geojson). 

On 5/24/12 8:28 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

Hi,

It might be possible to do through GDAL WMS driver. I do not know what
ArcGIS MapServer Tiles are but they sound somehow promising.

http://www.gdal.org/frmt_wms.html

-Jukka Rahkonen-

Alan Boudreault wrote:

 I don't think so. MapServer only allows wms cascading using the http/wms
 requests.

Alan

On 12-05-23 09:39 PM, Robert Sanson wrote:
 Is it possible to have a layer in Mapserver pulling data from a ArcGIS
Rest service?

 Thanks,

 Robert Sanson




 This email and any attachments are confidential and intended solely for
the addressee(s). If you are not the intended recipient, please notify
us immediately and then delete this email from your system.

 This message has been scanned for Malware and Viruses by Websense
Hosted Security.
 www.websense.com
 ___
 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 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] Re: [mapserver-dev] Image resample options

2012-03-08 Thread Smith, Michael ERDC-CRREL-NH
Ian,

Look here

http://mapserver.org/input/raster.html#special-processing-directives


Options are RESAMPLE=NEAREST/AVERAGE/BILINEAR

Mike

-- 
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers



On 3/8/12  11:48 AM, Ian Walberg ian.walb...@airborne.aero wrote:

Hello,

Where can we find a list of the available resample types?

   PROCESSING RESAMPLE=BILINEAR

Thanks

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

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


Re: [mapserver-users] MapServer 6.0.1 ignoring WMS options?

2012-03-05 Thread Smith, Michael ERDC-CRREL-NH
David,

You aren't making a WMS request. You are making a MapServer request. When 
making a map server request, you use mapext=minx+miny+maxx+maxymode=map

With WMS, you'd request  SERVICE=WMSREQUEST=GETMAPBBOX=minx,miny,maxx,maxy. 
Note there is no mode=map

See http://mapserver.org/ogc/wms_server.html for details on a proper WMS 
request.

Mike

From: David Miller teknocrea...@gmail.commailto:teknocrea...@gmail.com
Date: Mon, 5 Mar 2012 15:20:43 -0500
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options?

Hi list!

We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and have 
encountered an issue where the WMS options (i.e. BBOX, HEIGHT, WIDTH) seem to 
be ignored for a GetMap request.  I have checked options for and output from 
running the configure script for building the executable.  The --with-proj and 
--with-wms options are specified (though one shouldn't need it if --with-proj 
is there correctly).  Output from running the configure script indicates that 
the -DUSE_WMS_SVR compiler switch was on when compiling the mapwms.c code, 
which is where that becomes important.  I examined that code and it's here that 
MapServer first uses the extents in the mapfile as defaults but then adjusts 
that based on the BBOX, HEIGHT, and WIDTH options in the GetMap request.  
Running -v on the resulting executable also indicates SUPPORTS=WMS_SERVER.

The call to MapServer does produce an image but for the entire EXTENT of the 
data that's specified in the mapfile.  Doesn't make any difference whether it's 
a raster or point layer.

Example REQUEST:

http://(our main site 
address)/cgi-bin/mapserv?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1FORMAT=image%2FpngMODE=mapMAP=wxmap%2Fglmpvis.mapLAYERS=mosaicSRS=EPSG%3A3857TRANSPARENT=TRUESTYLES=BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.341WIDTH=640HEIGHT=480

First part of the mapfile:

MAP
   NAME testgrib
   IMAGETYPE PNG
   EXTENT   -1400 300 -700 700

As you can see, the EXTENT in the mapfile are different than the BBOX values.  
When I put the BBOX values in the EXTENT area in the mapfile, the image lines 
up with the map background as it should.

So for some reason, it appears that something isn't being set correctly to 
allow our MapServer to accept standard WMS options.  Perhaps somehow, this 
value of USE_WMS_SVR in mapwms.c isn't getting set correctly?  But, by all the 
output we've checked, it looks like MapServer gets built correctly and to 
enable it as a WMS server.

Anyone else with a similar issue or somewhere else we should check for a 
problem?

Thanks for any help!

Dave M
___ mapserver-users mailing list 
mapserver-users@lists.osgeo.orgmailto: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] Re: Oracle Locator support

2012-03-01 Thread Smith, Michael ERDC-CRREL-NH
MapServer works fine with Oracle Locator and doesn't use any Oracle
Spatial licensed functions.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 2/29/12 10:45 PM, bte...@gmail.com bte...@gmail.com wrote:

Hi Michael,
Thanks, but I only want to know at this stage whether MapServer is written
for Oracle Spatial only, or whether it can support Locator.

I'm guessing from reading Oracle's documentation that since
SDO.GEOM.INTERSECTS and SDO.GEOM.RELATE aren't supported, that MapServer
probably doesn't support Locator.  However, how do I know that MapServer
doesn't use the SQL/MM functions instead - which are apparently supported.

Is there no easy way other than to test every possible variant of
MapServer
usage against a test Locator installation?

Regards, Bill Teluk.

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p45337
43.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] Re: from kml styles to mapserver layer classification

2012-02-20 Thread Smith, Michael ERDC-CRREL-NH
Puneet,

A very recent version of gdal, last couple of weeks, can convert KML
styles into OGR style strings. MapServer can use those OGR Style strings
with the AUTO style option.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 2/20/12 10:23 PM, Mr. Puneet Kishor punk.k...@gmail.com wrote:

Hi Richard,

On Feb 20, 2012, at 9:21 PM, Richard Greenwood wrote:

 On Mon, Feb 20, 2012 at 8:05 PM, Mr. Puneet Kishor
punk.k...@gmail.com wrote:
 
 How can I color the polys in the layer with the hex_color values?
 
 COLOR #ff



So, I can use the hex values directly. Cool. But, will the following be
sufficient in the map file?

   LAYER
   NAME foo
   DATA the_geom FROM (SELECT gid, hex_color, the_geom FROM t) tmp
USING UNIQUE gid USING srid=4326
   STATUS ON
   TYPE POLYGON
   CLASS
   STYLE
   COLOR [hex_color]
   END
   END
   END
   END


--
Puneet Kishor___
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] Run time substitution - Like instead of =

2012-02-03 Thread Smith, Michael ERDC-CRREL-NH
Tom,

What I am using with a database connection is a default value of 1=1 so
that is always true, it returns all records.

Mike

-- 
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers



On 2/3/12  11:30 AM, tellett thomas.ell...@statkart.no wrote:

Hi All,

I'm using runtime substitution to replace the value of an expression and
thats working fine, however, if I don't set the expression value in the
url,
I want the layer to show all the records. For example my class looks likes
this:

CLASS
 NAME 'FKB-A'
 EXPRESSION '%pn%'
 STYLE
COLOR 254 150 254
OUTLINECOLOR 1 1 1
 END
  END

and when I use this request:

.REQUEST=GetMapSERVICE=WMSVERSION=1.3.0LAYERS=fkb_prosjektstandard
STYLES=FORMAT=image/pngBGCOLOR=0xFFTRANSPARENT=TRUECRS=EPSG:4326B
BOX=58.9930983171506,9.40049150322111,59.8470137571506,10.904184647298WID
TH=1650HEIGHT=937pn=LACHVE11

I get back 1 record which is correct. However, if I drop the pn=LACHVE11
of
course I get no results back. Is there any way of changing this so that I
can get all the records of the table returned?

I thought about using the 'default_pn' option in the metadata and using
wildcards but as this is an '=' expression rather than a 'LIKE' expression
wildcards are useless. Maybe its just because its friday afternoon, but I
just can't see a way of doing this, help!!!

Best Regards

Tom

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Run-time-substitution-Like-instead-of-
tp4362317p4362317.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] getSymbol (): Symbol definition error.

2012-01-26 Thread Smith, Michael ERDC-CRREL-NH
CARTOLINE symbol type has been dropped from MapServer 6. You'll need to
remove any symbol that is CARTOLINE.

The GD driver is no longer used for PNG output. I'd remove the
OUTPUTFORMAT block entirely and just use the built in definition for PNG.


Mike



On 1/26/12 7:03 AM, Francesc Cañas kikoca...@gmail.com wrote:

Hello, I want to publish a Mapserver layer with OpenLayers but I generated
the following error when opening it with
http://localhost/cgi-bin/mapserv.exe

The error is:

getSymbol (): Symbol definition error. Error Parsing near (Cartoline)
(line
26) msOutputFormatValidate (): General error message. Png OUTPUTFORMAT you
IMAGEMODE RGB / RGBA, Which is not supported for GD drivers.

Indeed reading the mapserver site found that only accepts PC256 GD so I
changed:

OUTPUTFORMAT
Png NAME
DRIVER 'GD / PNG'
MIMETYPES 'image / png'
PC256 IMAGEMODE
EXTENSION 'PNG'
END

And now the only mistake: getSymbol (): Symbol definition error. Error
Parsing near (Cartoline) (line 26)

And here if you already know why I can not. The line 26 is this: DRIVER
'GD
/ PNG'

The most curious is that with the beta version 3.0.1 MS4W (the have a
partner) layer if it can be displayed, but with 3.0.3, which is what I
have,
I get these errors.

I've read in another forum that changing the .sym and add a # in all
cartoline symbols, it works. I've tried it and then the message error is:

msSaveImage(): Unable to access file. Failed to create output file
(/tmp/Projectes Cat13275775744636.png).
I'm getting crazy.



The. Map is generated with QGIS 1.7.3. Following in the footsteps of all
the
tutorials. The whole code is this:

# Map file created from QGIS project file U: /
Matthias/00_AUMA_projectes/SIG/Projectes_CAT_wgs.qgs
# Edit this file to customize for your map interface
# (Created with MapServer Export plugin PyQgis)
MAP
NAME Projectes Cat
# Map image size
SIZE December 12
UNITS dd

EXTENT -9.569062 32.926808 6.763360 44.857479
Fontset '. / Font / fonts.txt'
SYMBOLSET '. / Symbols / symbols.sym'
PROJECTION
'Proj = longlat'
'Datum = WGS84'
'No_defs'
END

# Background color for the map canvas - change as Desired
IMAGECOLOR 255 255 255
95 IMAGEQUALITY
Png IMAGETYPE

OUTPUTFORMAT
Png NAME
DRIVER 'GD / PNG'
MIMETYPES 'image / png'
PC256 IMAGEMODE
EXTENSION 'PNG'
END
# Legend
LEGEND
IMAGECOLOR 255 255 255
ON STATUS
KeySize December 18
LABEL
TYPE BITMAP
MEDIUM SIZE
COLOR 0 0 89
END
END

# Web interface definition. Only the template parameter
# Is required to display a map. See MapServer documentation
WEB
# Set to the path ImagePath WHERE Should MapServer
ITS # write output.
ImagePath '/ tmp /'

# Set ImageURL to the url points to ImagePath That
# As defined in your Web server configuration
ImageURL '/ tmp /'

# WMS server settings
METADATA
'Ows_title' 'Project Cat'
'Ows_onlineresource'
'http://localhost/cgi-bin/mapserv.exe?map=C:/Users/Francesc/Documents/Proj
ectes_wgs84_v6.map'
'Ows_srs' 'EPSG: 4326'
END

# Scale Range at Which Will Operate web interface
# Template and header / footer settings
# Only the template parameter is required to display a map. See MapServer
documentation
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
END

LAYER
NAME 'Provincias_wgs84'
TYPE POLYGON
DUMP true
TEMPLATE fooOnlyForWMSGetFeatureInfo
EXTENT -9.569062 32.926808 6.763360 44.857479
DATA 'C: / Users/Francesc/Documents/SHP/Provincias_wgs84.shp'
METADATA
'Ows_title' 'Provincias_wgs84'
END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'Proj = longlat'
'Datum = WGS84'
'No_defs'
END
CLASS
NAME 'Provincias_wgs84'
STYLE
WIDTH 0.35
OUTLINECOLOR 0 0 0
END
END
END

LAYER
NAME 'Projectes_UTM31_wgs84'
TYPE POINT
DUMP true
TEMPLATE fooOnlyForWMSGetFeatureInfo
EXTENT -9.569062 32.926808 6.763360 44.857479
DATA 'C: / Users/Francesc/Documents/SHP/Projectes_UTM31_wgs84.shp'
METADATA
'Ows_title' 'Projectes_UTM31_wgs84'
END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'Proj = longlat'
'Datum = WGS84'
'No_defs'
END
CLASS
NAME 'Projectes_UTM31_wgs84'
STYLE
SYMBOL circle
SIZE 7.0
OUTLINECOLOR 0 0 0
COLOR 103 132 169
END
END
END

END


thank you!

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/getSymbol-Symbol-definition-error-tp43
40534p4340534.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] Relative path's in mapfile

2012-01-25 Thread Smith, Michael ERDC-CRREL-NH
Daniel,

Is there anyway to get the IMAGEURL set similarly? To set a base path and
have mapserver determine an absolute URL plus the base path. Right now, if
you want the temp images to work with Google Earth, you need a absolute
URL but if you access mapserver via multiple methods (eg inside and via a
proxy server) then you have to have 2 mapfiles.

Mike

On 1/25/12 10:14 AM, Daniel Morissette dmorisse...@mapgears.com wrote:

On 12-01-25 10:04 AM, Rahkonen Jukka wrote:
 Hi,

 I have been thinking that the the MAP METADATA parameter
wms_onlineresource might have a setting
 wms_onlineresource auto

 It would capture the url that was used for reading the GetCapabilities
and place the reasonable parts of it  automatically into GetCapabilities
response.

 This option would serve also the development-test-production migration,


Actually, if you do not set the wms_onlineresource at all then this is
what you get: an automatically generated onlineresource URL based on
MapServer's best guesses.

I didn't think of suggesting this option in my earlier reply to Steve
because this is only a best guess which is often wrong as lots of
MapServer instances are either behind a NAT/firewall or a load balancer
and in lots of cases what you get is an incorrect onlineresource based
on the proxy'd URL and not the real public URL.


 but originally I had another use for it in my mind. It is possible to
do wonderful things with Mapserver variables and runtime substitution
but standard WMS clients do not support using the vendor options easily.
But imagine that user reads GetCapabilities as

 
http://server.org/cgi-bin/mapserver_wms?service=WMSversion=1.1.0request
=GetCapabilitiesvariable1=foovariable2=bar
 and then the GetMap onlineresource in GetCapabilities would look like
 http://server.org/cgi-bin/mapserver_wms?variable1=foovariable2=bar


Adding hardcoded vendor-specific params to the automatically generated
URL sounds like a nice idea. We'd just need someone to champion it  ;-)

-- 
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
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] Re: GFS GRIB data in MS

2012-01-16 Thread Smith, Michael ERDC-CRREL-NH
Scott,

I don't have any examples. I haven't tried the using GRIB files yet, it
was something I was thinking about for later in the year.

Mike



On 1/16/12 2:35 PM, scott...@free.fr scott...@free.fr wrote:

Is it possible to use MS with T band in .grib to create heat ?
Do you have some mapfiles examples to use it

scott

- Mail original -
De: Michael ERDC-CRREL-NH Smith michael.sm...@usace.army.mil
À: bluecap mimis.si...@gmail.com, mapserver-users@lists.osgeo.org
Envoyé: Samedi 14 Janvier 2012 16:50:32
Objet: Re: [mapserver-users] Re: GFS GRIB data in MS

If you build from source and use trunk, I believe it is available now.

Mike



On 1/14/12 10:47 AM, bluecap mimis.si...@gmail.com wrote:

Great news Mike, thanx a lot! I guess I'll have to try a workaround until
UVraster is developed.

I would welcome any feedback if anybody has tried the scenario I'm having
though.

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/GFS-GRIB-data-in-MS-tp7187741p7187
7
70.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
___
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] GFS GRIB data in MS

2012-01-14 Thread Smith, Michael ERDC-CRREL-NH
Dimitrios,

I think using a new feature that is coming into MapServer is the way.
MapServer will be supporting vector data like you have. See
http://mapserver.org/trunk/development/rfc/ms-rfc-78.html

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 1/14/12 10:34 AM, bluecap mimis.si...@gmail.com wrote:

Hello list,

I'm developing an aeronautical  flight planning webGIS with MS 6,
Openlayers  Postgres. Although I have found my way in displaying
aeronautical information (navaids/airways/areas/metars/wind barbs etc)
with
the valuable help of this list, I'm now in the process of displaying winds
aloft (winds at various pressure levels), and would like to ask if the
workflow I've come up to makes sense (and if anyone has some better
ideas...).

The wind data will be taken from grib files through NOAA (GFS model). The
problem is that the wind data are composed of two variables, the east-west
and the north-south velocities, which must be combined to provide the
final
wind data (eg wind from 330 degrees, 25 knots). I have found the (simple)
trigonometry to do this part.

Now, the workflow I'm thinking is as follows:
1) download the grib file of the specific date and forecast depth from
NOMADS to my local HD (approx. 30MB)
2) convert it to a shapefile, with the command line app degrib from NOAA
3) dump it to Postgres
4) perform the calculation for every wind point
5) store the wind barb character to the DB (in order to have a small layer
in the mapfile, I take the barb as a character stored in the DB, along
with
its angle, and draw it - works very well in my metars)

The million-dollar question concerns steps 1 and 2. Has anybody done this
before in a different way to provide me with some pointers?

Thank you
Dimitrios Simos

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/GFS-GRIB-data-in-MS-tp7187741p71877
41.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] Re: GFS GRIB data in MS

2012-01-14 Thread Smith, Michael ERDC-CRREL-NH
If you build from source and use trunk, I believe it is available now.

Mike



On 1/14/12 10:47 AM, bluecap mimis.si...@gmail.com wrote:

Great news Mike, thanx a lot! I guess I'll have to try a workaround until
UVraster is developed.

I would welcome any feedback if anybody has tried the scenario I'm having
though.

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/GFS-GRIB-data-in-MS-tp7187741p71877
70.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] RE: failed to open map file - MS 6.0 to 6.0.1

2011-12-28 Thread Smith, Michael ERDC-CRREL-NH
Bob,

STYLE at the SYMBOL level was renamed PATTERN in 5.0 and removed in v6.
This is a dashed line and now the PATTERN is applied at the LAYER level
rather than at the SYMBOL.

You should remove the STYLE..END block from the SYMBOL and apply it as a
PATTERN at the LAYER level (see
http://mapserver.org/mapfile/style.html#style)

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center




On 12/28/11 3:58 PM, Bistrais, Bob bob.bistr...@maine.gov wrote:

Not sure if this helps, but here's the first few lines of the symbol
file- notice that line 6 contains the Style keyword.  Does anything look
out of place with that?

SYMBOL
  NAME 'county-line'
  TYPE ELLIPSE
  POINTS 2 2 END
  FILLED true
  STYLE 4 2 2 4 END
END



-Original Message-
From: Stephen Woodbridge [mailto:wood...@swoodbridge.com]
Sent: Wednesday, December 28, 2011 11:31 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to
6.0.1

Hi Bob,

What does the top 15+- lines of your mapfile look like?
This error is in loadSymbol, do you have a reference to a symbol file?
is this where the error is coming from? Are you sure you are loading the

correct symbol file?

-Steve W

On 12/28/2011 11:20 AM, Bistrais, Bob wrote:
 When I try to get the mapfile in cgi mode, a different error appears:

 loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6)

 *From: * Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
 *Sent:* Wednesday, December 28, 2011 11:00 AM
 *To:* Bistrais, Bob; mapserver-users@lists.osgeo.org
 *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1

 Nothing should have to be done. 6.0.1 was primarily a security update.
 Can you try accessing the mapfile

 outside PHP with shp2img or mapserv itself?

 Steve

 *From: * mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of
 *Bistrais, Bob
 *Sent:* Wednesday, December 28, 2011 9:56 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] failed to open map file - MS 6.0 to 6.0.1

 I'm trying to upgrade some MapServer applications which were
originally
 written before MS 6.0. These had been migrated to 6.0, now I am trying
 to upgrade them to 6.0.1. I would have thought nothing needed to be
 done, but when I try to view these applications, I get the following
 error message:

 Warning: ms_newMapObj(): [MapServer Error]: msLoadMap():
 (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218
 Fatal error: Uncaught exception 'MapScriptException' with message
 'Failed to open map file ../maps/mymap.map' in
 C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0
 C:\ms4w\apps\mgs\htdocs\drawMap.php(218):
 ms_newMapObj('../maps/mymap...') #1 {main} thrown in
 C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218

 -I checked the obvious, such as permissions, paths, etc, but not able
to
 figure out what's going wrong here. As mentioned, it works OK in MS
6.0.



 ___
 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


Re: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1

2011-12-28 Thread Smith, Michael ERDC-CRREL-NH
Yes, CARTOLINE was deprecated back at version 5 and completely removed at
version 6.

Here's the migration guide
http://mapserver.org/MIGRATION_GUIDE.html#migration

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 12/28/11 4:50 PM, Bistrais, Bob bob.bistr...@maine.gov wrote:

Thanks Mike,

Looking at that now.  Does the same apply to Cartoline?  I seem to be
having issues with those symbols as well.


-Original Message-
From: Smith, Michael ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil]

Sent: Wednesday, December 28, 2011 4:08 PM
To: Bistrais, Bob; Stephen Woodbridge; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to
6.0.1

Bob,

STYLE at the SYMBOL level was renamed PATTERN in 5.0 and removed in v6.
This is a dashed line and now the PATTERN is applied at the LAYER level
rather than at the SYMBOL.

You should remove the STYLE..END block from the SYMBOL and apply it as a
PATTERN at the LAYER level (see
http://mapserver.org/mapfile/style.html#style)

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center




On 12/28/11 3:58 PM, Bistrais, Bob bob.bistr...@maine.gov wrote:

Not sure if this helps, but here's the first few lines of the symbol
file- notice that line 6 contains the Style keyword.  Does anything
look
out of place with that?

SYMBOL
  NAME 'county-line'
  TYPE ELLIPSE
  POINTS 2 2 END
  FILLED true
  STYLE 4 2 2 4 END
END



-Original Message-
From: Stephen Woodbridge [mailto:wood...@swoodbridge.com]
Sent: Wednesday, December 28, 2011 11:31 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to
6.0.1

Hi Bob,

What does the top 15+- lines of your mapfile look like?
This error is in loadSymbol, do you have a reference to a symbol file?
is this where the error is coming from? Are you sure you are loading
the

correct symbol file?

-Steve W

On 12/28/2011 11:20 AM, Bistrais, Bob wrote:
 When I try to get the mapfile in cgi mode, a different error appears:

 loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6)

 *From: * Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
 *Sent:* Wednesday, December 28, 2011 11:00 AM
 *To:* Bistrais, Bob; mapserver-users@lists.osgeo.org
 *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1

 Nothing should have to be done. 6.0.1 was primarily a security
update.
 Can you try accessing the mapfile

 outside PHP with shp2img or mapserv itself?

 Steve

 *From: * mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of
 *Bistrais, Bob
 *Sent:* Wednesday, December 28, 2011 9:56 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] failed to open map file - MS 6.0 to
6.0.1

 I'm trying to upgrade some MapServer applications which were
originally
 written before MS 6.0. These had been migrated to 6.0, now I am
trying
 to upgrade them to 6.0.1. I would have thought nothing needed to be
 done, but when I try to view these applications, I get the following
 error message:

 Warning: ms_newMapObj(): [MapServer Error]: msLoadMap():
 (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line
218
 Fatal error: Uncaught exception 'MapScriptException' with message
 'Failed to open map file ../maps/mymap.map' in
 C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0
 C:\ms4w\apps\mgs\htdocs\drawMap.php(218):
 ms_newMapObj('../maps/mymap...') #1 {main} thrown in
 C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218

 -I checked the obvious, such as permissions, paths, etc, but not able
to
 figure out what's going wrong here. As mentioned, it works OK in MS
6.0.



 ___
 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


Re: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s

2011-12-24 Thread Smith, Michael ERDC-CRREL-NH
Rich,

Have you tried MapServer 6?

It might be the null srid. I know there was some work done around that time 
(although I thought it was earlier).

If you send me the layer definition in question and the WFS request, I can try 
it with the current and some other versions.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center

From: Richard Suematsu 
richard.suema...@syncadd.commailto:richard.suema...@syncadd.com
Date: Fri, 23 Dec 2011 14:19:23 -1000
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s

ORA-00932: inconsistent datatypes: expected %s got %s

Ok, I’ve been banging my head against this one for a while.  I’m getting this 
error on MapServer 5.6.7 on a WFS request.  WMS requests seem to work fine on 
the same layer.  This exact same file works fine on 5.6.0_Beta2.  I have no 
other BLOB/CLOB columns laying around.  I’ve tried running the sql (see log 
below) from the sqlplus and it works fine.  Any ideas?  Thanks.

My WFS Request is simple:

?xml version=1.0?
wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:ogc=http://www.opengis.net/ogc; service=WFS version=1.0.0
  wfs:Query typeName=BuildingXXX
ogc:Filter
  ogc:OR
ogc:PropertyIsEqualTo
  ogc:PropertyNameXXXID/ogc:PropertyName
  ogc:Literal3047/ogc:Literal
/ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo
  ogc:PropertyNameXXXID/ogc:PropertyName
  ogc:Literal3257/ogc:Literal
/ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo
  ogc:PropertyNameXXXID/ogc:PropertyName
  ogc:Literal2362/ogc:Literal
/ogc:PropertyIsEqualTo
  /ogc:OR
/ogc:Filter
  /wfs:Query
/wfs:GetFeature


msOracleSpatialLayerGetExtent. Using this Sql to retrieve the extent: SELECT 
SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from (SELECT OBJECTID, 
BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select 
shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE  
XXXID  0 and STR_STAT_D'DEMOLISHED' ).
msOracleSpatialLayerGetExtent(): OracleSpatial error. Error: ORA-00932: 
inconsistent datatypes: expected %s got %s
. Query statement: SELECT SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from 
(SELECT OBJECTID, BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select 
shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE  
XXXID  0 and STR_STAT_D'DEMOLISHED' ) .Check your data statement.
msOracleSpatialLayerOpen called with: shape from (select 
shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using 
unique OBJECTID (Layer pointer 01955030)
msOracleSpatialLayerFreeItemInfo was called.
msOracleSpatialLayerGetItems was called.
msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list
msOracleSpatialLayerOpen called with: shape from (select 
shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using 
unique OBJECTID (Layer pointer 01955030)
msOracleSpatialLayerFreeItemInfo was called.
msOracleSpatialLayerFreeItemInfo was called.
msOracleSpatialLayerGetItems was called.
msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list
msOracleSpatialLayerWhichShapes was called.
msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT 
rownum, OBJECTID,shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid 
from structure_existing_area) WHERE   ( (XXXID= 3047)  OR  ( (XXXID= 3257)  
OR  (XXXID= 2362) ) )   AND SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, 
:srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates 
),'querytype=window') = 'TRUE'
msOracleSpatialLayerWhichShapes. Bind values: srid:-1   minx:523231.00   
miny:3895750.00  maxx:536144.00   maxy:3908174.00
msOracleSpatialLayerWhichShapes getting ordinate definition.
msOracleSpatialLayerWhichShapes converting to OCIColl.
msOracleSpatialLayerWhichShapes bind by name and object.
msOracleSpatialLayerWhichShapes name and object now bound.
msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00932: 
inconsistent datatypes: expected %s got %s
. Query statement: SELECT rownum, OBJECTID,shape FROM (select 
shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE  
 ( (XXXID= 3047)  OR  ( (XXXID= 3257)  OR  (XXXID= 2362) ) )   AND 
SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, :srid, 
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 
'TRUE' . Check your data statement.
msOracleSpatialLayerFreeItemInfo was called.
msOracleSpatialLayerClose was called. Layer: 

Re: [mapserver-users] Color values from attribute using OracleSpatial

2011-12-17 Thread Smith, Michael ERDC-CRREL-NH
Márton,

You can use DEBUG mode (DEBUG 3 or higher on the LAYER) to see  in your error 
log the exact query that MapServer is generating. The fact that you are seeing 
an ORA-00904 for RGBCOLOR as an invalid identifier indicates that the column 
request is being passed to Oracle but that your column in your table must have 
a different name.

You also don't specify your version.

I have tested this on MapServer 6 and an Oracle Spatial connection and not had 
any issue.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center
From: Forián-Szabó Márton mforia...@gmail.commailto:mforia...@gmail.com
Date: Sat, 17 Dec 2011 21:45:04 +0100
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Color values from attribute using OracleSpatial

Hi,
my problem when using attributes for color values with OracleSpatial:
RGB color values are defined as a string like '0 128 211' in a column named 
'RGBCOLOR'.
The map file looks like
  ...
 STYLE
   COLOR [RGBCOLOR]
  ...
Trying this with Shape+dbf files the coloring of the shapes works properly, but 
when the data is in OracleSpatial and I reference to the 'RGBCOLOR' column in 
the same way I receive:
OracleSpatial error. Error: ORA-00904: RGBCOLOR: invalid identifier

Thanks for any suggestions!

Márton Forián-Szabó
___ mapserver-users mailing list 
mapserver-users@lists.osgeo.orgmailto: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] Cannot get OGR output to work

2011-12-16 Thread Smith, Michael ERDC-CRREL-NH
Jukka,

Are the OGR Output formats defined as STORAGE=filesystem? That is the
error I've had.

There is a ticket for this. http://trac.osgeo.org/mapserver/ticket/4085

On my linux box, I'm using GDAL 1,9 r12670 and not having a problem so I
suspect this is a GDAL issue (or a GDAL/MapServer issue).

I'll try narrowing down on which version of GDAL this started occurring.

Mike

On 12/16/11  9:55 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

Hi,

I wonder if anybody has managed to make the OGR output to work? For me
all my trials have stopped to an error that seems to mean that Mapserver
can't write out a temporary file. The same happens both on Windows and
Linux.

I hope that somebody else would repeat the test and I have tried to make
it pretty easy for MS4W users. It should be enough to unzip the following
file into a directory \MS4W\map and then start running my WFS request
examples

Test data (mapfile and a small shapefile)
http://latuviitta.org/documents/wfs_outputformat_test.zip



GetCapabilities is OK for me
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma
pservice=wfsversion=1.0.0request=getcapabilities

DescribeFeatureType is OK for me
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma
pservice=wfsversion=1.0.0request=describefeaturetypetypename=wfs_polyg
ons

GetFeature with default outputformat is OK for me
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma
pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_polygonsmaxfe
atures=1

GetFeature with default outputformat is OK for me
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma
pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_polygonsmaxfe
atures=1

GetFeature with CSV outputformat fails for me
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma
pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_polygonsmaxfe
atures=1outputformat=CSV

GetFeature with SHAPEZIP outputformat fails for me
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma
pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_polygonsmaxfe
atures=1outputformat=SHAPEZIP


Regards,

-Jukka Rahkonen-___
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] Cannot get OGR output to work

2011-12-16 Thread Smith, Michael ERDC-CRREL-NH
Actually, on most drivers you can use STORAGE=memory and it does work.

The only driver I've need to use STORAGE=filesystem is FileGDB.

I have my shapfile format defined as follows

OUTPUTFORMAT
  NAME Shapefile
  DRIVER OGR/ESRI Shapefile
  FORMATOPTION STORAGE=memory
  FORMATOPTION FORM=zip
  FORMATOPTION FILENAME=%outfile%.zip
 END



Mike



On 12/16/11  10:19 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

Hi,

STORAGE=filesystem, yes, and I am following the ticket. Just wanted to
make it easier to start investigating the problem. Other storage
alternatives did not work for me any better on Linux but I have not tried
them on Windows. I think that filesystem is the one which should work for
all drivers. What is odd is that I have managed to get one valid zipped
shapefile from Linux server but after that success I have been receiving
just empty zips.

-Jukka-

 -Alkuperäinen viesti-
 Lähettäjä: Smith, Michael ERDC-CRREL-NH
 [mailto:michael.sm...@usace.army.mil]
 Lähetetty: 16. joulukuuta 2011 17:12
 Vastaanottaja: Rahkonen Jukka; 'mapserver-users@lists.osgeo.org'
 Aihe: Re: [mapserver-users] Cannot get OGR output to work
 
 Jukka,
 
 Are the OGR Output formats defined as STORAGE=filesystem? That is the
 error I've had.
 
 There is a ticket for this.
 http://trac.osgeo.org/mapserver/ticket/4085
 
 On my linux box, I'm using GDAL 1,9 r12670 and not having a
 problem so I
 suspect this is a GDAL issue (or a GDAL/MapServer issue).
 
 I'll try narrowing down on which version of GDAL this started
 occurring.
 
 Mike
 
 On 12/16/11  9:55 AM, Rahkonen Jukka
 jukka.rahko...@mmmtike.fi wrote:
 
 Hi,
 
 I wonder if anybody has managed to make the OGR output to
 work? For me
 all my trials have stopped to an error that seems to mean
 that Mapserver
 can't write out a temporary file. The same happens both on
 Windows and
 Linux.
 
 I hope that somebody else would repeat the test and I have
 tried to make
 it pretty easy for MS4W users. It should be enough to unzip
 the following
 file into a directory \MS4W\map and then start running my WFS request
 examples
 
 Test data (mapfile and a small shapefile)
 http://latuviitta.org/documents/wfs_outputformat_test.zip
 
 
 
 GetCapabilities is OK for me
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6
 0_wfs_test.ma
 pservice=wfsversion=1.0.0request=getcapabilities
 
 DescribeFeatureType is OK for me
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6
 0_wfs_test.ma
 pservice=wfsversion=1.0.0request=describefeaturetypetypen
ame=wfs_polyg
 ons
 
 GetFeature with default outputformat is OK for me
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6
 0_wfs_test.ma
 pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_p
olygonsmaxfe
 atures=1
 
 GetFeature with default outputformat is OK for me
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6
 0_wfs_test.ma
 pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_p
olygonsmaxfe
 atures=1
 
 GetFeature with CSV outputformat fails for me
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6
 0_wfs_test.ma
 pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_p
olygonsmaxfe
 atures=1outputformat=CSV
 
 GetFeature with SHAPEZIP outputformat fails for me
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6
 0_wfs_test.ma
 pservice=wfsversion=1.0.0request=getfeaturetypename=wfs_p
olygonsmaxfe
 atures=1outputformat=SHAPEZIP
 
 
 Regards,
 
 -Jukka Rahkonen-___
 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


Re: [mapserver-users] WFS fails is PostGIS table has capital characters in the name

2011-12-15 Thread Smith, Michael ERDC-CRREL-NH
Jukka,

Does it work if you quote the name? In Oracle, if you have mixed case
table names, then those table names have to be quoted.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 12/15/11 12:29 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

Hi,

It seems that Mapserver WFS fails if the PostGIS source table has
capitalised characters in the name. For example with table named
Natura2000_Suomi_2010 the DescibeFeatureType fails and error suggests
that Mapserver is usin table name
natura2000_suomi_2010 in the query instead.

[Thu Dec 15 07:22:38 2011].109270 msPostGISLayerGetItems(): Query error.
Error (ERROR:  relation natura2000_suomi_2010 does not exist
LINE 1: select * from Natura2000_Suomi_2010 where false limit 0

My Mapserver version is 6.0.1 on Ubuntu Linux.

-Jukka Rahkonen-
___
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] Re: Mapserver 6.0.1 -- Label Class not recognizing token BACKGROUNDCOLOR

2011-11-30 Thread Smith, Michael ERDC-CRREL-NH
You may also want to consider just using OUTLINECOLOR to get Halo Text
rather than the background you might get from GEOMTRANSFORM.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 11/29/11 11:09 PM, Stephen Woodbridge wood...@swoodbridge.com wrote:

On 11/29/2011 10:19 PM, Matt Pettis wrote:
 I see upon reading closer that it is deprecated... but I thought that
meant
 it was discouraged, but not yet removed.  That must not be true... I am
now
 working to find a GEOMTRANSFORM example to help me do the equivalent.

Hi Matt,

These should help you:

http://mapserver.org/mapfile/style.html
http://mapserver.org/development/rfc/ms-rfc-72.html
http://mapserver.org/trunk/MIGRATION_GUIDE.html

Also please write a Bug and assign it to the Documentation and the fact
that it has been removed. It might be nice to add a comment in the docs
that points to the MIGRATION_GUIDE.

Thanks,
   -Steve W
___
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] default values if not provided in the URL

2011-10-27 Thread Smith, Michael ERDC-CRREL-NH
Punnet,

What I do in the situations where I want to default to all or allow some
filtered access is

METADATA
   default_classes 1=1
END

So the dummy condition is passed when no filter is specified.


Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center





On 10/27/11 8:49 AM, Puneet Kishor punk.k...@gmail.com wrote:

the fine manual says http://mapserver.org/cgi/runsub.html

 Since version 5.6, you can provide a default value for any substitution
 parameter, that will be applied if the parameter was not found in the
url. 
 You do this by providing special entries inside the layer metadata :

  METADATA
  'default_sound' 'yes'
  'default_nseats' '5'
  'default_multimedia' 'yes'
  END

 In this example, the mapfile will be created as if the url contained
 ³sound=yesnseats=5multimedia=yes²


Right then. Except, I want *all* my classes to be drawn if no class has
been provided. And, if one or more classes have been provided, then I
want only those to be drawn. So,

   http://server/mapfile?mode=map

should return a map with all the 100+ classes in a layer. And

   http://server/mapfile?mode=mapclasses=Foo,Bar

(or some other variation of the above) should return a map with only the
requested classes in the layer. I can't think of anyway of doing the
above without resorting to scripting, and I still have had no luck with
WMS returned from Perl MapScripting.

Suggestions.

--
Puneet Kishor___
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] default values if not provided in the URL

2011-10-27 Thread Smith, Michael ERDC-CRREL-NH
I guess I get around that by passing class=1 as my filter so I can pass
1=1 as the default

If you want to set a default that gets all, perhaps you could use a like
filter

FILTER Class like %class%

And a default of %

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 10/27/11 9:56 AM, Puneet Kishor punk.k...@gmail.com wrote:


On Oct 27, 2011, at 11:22 AM, Smith, Michael ERDC-CRREL-NH wrote:

 Punnet,
 
 What I do in the situations where I want to default to all or allow some
 filtered access is
 
 METADATA
   default_classes 1=1
 END
 
 So the dummy condition is passed when no filter is specified.
 
 
 


Believe it or not, I thought up of the above solution myself but
discarded it because I understood the text in the documents to mean the
following --

   FILTER class = '%class%'

will be applied if a class is provided. However, if no class is provided,
and if the following is provided

   METADATA
   default_class 1=1
   END

Then the filter will become class = '1=1', which is, of course not
correct. And, I just checked the logs with the above mods, and my
suspicion was proven correct. My log file shows ms croaking with the
following

select class,encode(ST_AsBinary(ST_Force_2D(the_geoms),'NDR'),'hex')
as geom,gid from table where the_geoms 
GeomFromText('POLYGON((-180.150250417362 -90,-180.150250417362
90,180.150250417362 90,180.150250417362 -90,-180.150250417362
-90))',4326) and (class = '1=1')

Obviously, I do not want class = '1=1'


  
 
 
 On 10/27/11 8:49 AM, Puneet Kishor punk.k...@gmail.com wrote:
 
 the fine manual says http://mapserver.org/cgi/runsub.html
 
 Since version 5.6, you can provide a default value for any
substitution
 parameter, that will be applied if the parameter was not found in the
 url. 
 You do this by providing special entries inside the layer metadata :
 
METADATA
'default_sound' 'yes'
'default_nseats' '5'
'default_multimedia' 'yes'
END
 
 In this example, the mapfile will be created as if the url contained
 ³sound=yesnseats=5multimedia=yes²
 
 
 Right then. Except, I want *all* my classes to be drawn if no class has
 been provided. And, if one or more classes have been provided, then I
 want only those to be drawn. So,
 
 http://server/mapfile?mode=map
 
 should return a map with all the 100+ classes in a layer. And
 
 http://server/mapfile?mode=mapclasses=Foo,Bar
 
 (or some other variation of the above) should return a map with only
the
 requested classes in the layer. I can't think of anyway of doing the
 above without resorting to scripting, and I still have had no luck with
 WMS returned from Perl MapScripting.
 
 Suggestions.
 
 --
 Puneet Kishor___
 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] MapServer x64 with Oracle x64

2011-10-20 Thread Smith, Michael ERDC-CRREL-NH
Rich,

I think the oracle and sde plugins on gisinternals are only for the win32 
mapserver packages. There is this note in the build information. Oracle x64 is 
only listed with GDAL/OGR, not with MapServer from the build information I 
looked at 
(http://vbkto.dyndns.org/sdk/PackageInfo.aspx?file=release-1600-x64-gdal-mapserver.zip)


Note: When using the Oracle and SDE plugins (Win32 packages only) be sure that 
the client libraries have been installed in the environment previously.

Mike



From: Richard Suematsu 
richard.suema...@syncadd.commailto:richard.suema...@syncadd.com
Date: Thu, 20 Oct 2011 15:48:29 -1000
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer x64 with Oracle x64

Hi,

I’m trying to use MapServer on a Windows 2k8 x64 server with 64-bit Oracle.  
The MapServer I’m using was downloaded from Tamas (gisinternals).  MapServer 
crashes every time I run it.  Everything works fine when I publish from a 
shapefile.  But when I try to pull geometry out of Oracle, the exe crashes.  
I’m using the plugin.

I checked the MapServer and Oracle dlls with dumpbin and everything is 64-bit.  
I checked the mapserv.exe with DependancyWalker and everything looks ok.  
Actually it flags IESHIM as a 32-bit but I don’t think it’s a problem.  The 
plugin is 64-bit.

I don’t know what’s wrong.  I’ve recreated this on a Win7 64-bit machine with 
the same issue, so it’s consistent.  Anybody out there running MapServer with 
64-bit Oracle?  Any ideas?

Thanks,
Rich



Confidentiality Notice: This e-mail message, including any attachments, is for 
the sole use of the
intended recipient(s) and may contain confidential and privileged information. 
Unauthorized
review, use, disclosure or distribution is prohibited. If you are not the 
addressee indicated in this
message kindly notify the sender by reply e-mail and destroy all copies of the 
original message.
___ mapserver-users mailing list 
mapserver-users@lists.osgeo.orgmailto: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] gradient display of raster DEM data

2011-10-17 Thread Smith, Michael ERDC-CRREL-NH
John,

I got a larger color range by using multiple classes

LAYER
  NAME hillshade
  TYPE raster
  TILEINDEX /benchmarking/wms/2011/data/raster/DEM/bil_16int/dem_bil16int.shp
  PROCESSING CLOSE_CONNECTION=DEFER
  PROJECTION
   +init=epsg:4326
  END
  CLASS
STYLE
  COLORRANGE  46 154 88 251 255 128
  DATARANGE   1003 1800
END
  END
  CLASS
STYLE
  COLORRANGE  251 255 128 224 108 31
  DATARANGE   1800 2800
END
  END
 CLASS
STYLE
  COLORRANGE   224 108 31  200 55 55
  DATARANGE2800 3500
END
  END
  CLASS
STYLE
  COLORRANGE  200 55 55  215 244 244
  DATARANGE   3500 4397
END
  END
END


From: John Callahan john.calla...@udel.edumailto:john.calla...@udel.edu
Date: Mon, 17 Oct 2011 14:54:13 -0400
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] gradient display of raster DEM data

Thanks for all your responses.  I have COLORRANGE / DATARANGE working fine in 
my map file. Works very well.  I'm also looking at using gdaldem for a more 
custom color scale.  Thanks again.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*



On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH 
michael.sm...@usace.army.milmailto:michael.sm...@usace.army.mil wrote:
John

The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but they 
have been present in MapServer for years (since 4.6 or so).

We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS 
Benchmarking effort.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center

From: John Callahan john.calla...@udel.edumailto:john.calla...@udel.edu
Date: Fri, 14 Oct 2011 16:55:59 -0400

To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] gradient display of raster DEM data

I know this has been asked before but I thought I'd ask to see if anything 
changed.

I'm looking to display a raster digital elevation model in mapserver.  My data 
is in flat files, img and tiff.  I'd like to display this data as a continuous 
gradient color range, rather than using CLASS categories/bins for specific 
colors.  Is it still tru ethat this is not possible, easily?

One method (passed to me on this list) was too generate the colored image I 
want in another program, using GMT or similar tool, then use that in mapserver. 
 This seems like the best option but is non-trivial to someone who hasn't done 
this before.  (though not terribly difficult.)

I also read about the use of DATARANGE and COLORRANGE in mapserver.  However, 
these are not in the documentation.  Are these available in trunk only?  A 
ticket was generated that seems to say this will be included with MS 6.2.  
(http://trac.osgeo.org/mapserver/ticket/1305)  Any insight on whether this is 
still the plan?


Thanks for your help and advice.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*

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

___ mapserver-users mailing list 
mapserver-users@lists.osgeo.orgmailto: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] gradient display of raster DEM data

2011-10-14 Thread Smith, Michael ERDC-CRREL-NH
John

The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but they 
have been present in MapServer for years (since 4.6 or so).

We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS 
Benchmarking effort.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center

From: John Callahan john.calla...@udel.edumailto:john.calla...@udel.edu
Date: Fri, 14 Oct 2011 16:55:59 -0400
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] gradient display of raster DEM data

I know this has been asked before but I thought I'd ask to see if anything 
changed.

I'm looking to display a raster digital elevation model in mapserver.  My data 
is in flat files, img and tiff.  I'd like to display this data as a continuous 
gradient color range, rather than using CLASS categories/bins for specific 
colors.  Is it still tru ethat this is not possible, easily?

One method (passed to me on this list) was too generate the colored image I 
want in another program, using GMT or similar tool, then use that in mapserver. 
 This seems like the best option but is non-trivial to someone who hasn't done 
this before.  (though not terribly difficult.)

I also read about the use of DATARANGE and COLORRANGE in mapserver.  However, 
these are not in the documentation.  Are these available in trunk only?  A 
ticket was generated that seems to say this will be included with MS 6.2.  
(http://trac.osgeo.org/mapserver/ticket/1305)  Any insight on whether this is 
still the plan?


Thanks for your help and advice.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*

___ mapserver-users mailing list 
mapserver-users@lists.osgeo.orgmailto: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] Re: Feature wish: Internal mapfile variables

2011-10-03 Thread Smith, Michael ERDC-CRREL-NH
There is an RFC to have includes come from non-file connections
(databases). It would be another option

http://mapserver.org/development/rfc/ms-rfc-74.html


Mike

-- 
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers



On 10/3/11  2:51 PM, Stephen Woodbridge wood...@swoodbridge.com wrote:

One idea regarding this that you might want to consider is the ability
to put all the named parameters in an include file, then be able to
include that file via a CGI parameter. So it might look like this:


MAP
   INCLUDE client-params-%client_id%.inc
   ...
END

And then you could have parameter files like:

client-params-27.inc
client-params-123.inc
etc.

And these would include nothing but your SET ... commands.

Then when requesting the map:

/http://localhost/cgi-bin/mapserv?client_id=123mode=mapmap=/path/to/mapf
ile.map...

This would make it very easy to manage a single mapfile for parameters
that are different for each client/user.

Obviously the client_id could be set via a cookie, or a wrapper script,
or a session variable, or manually, etc.

-Steve W

On 10/3/2011 2:39 PM, reholl wrote:
 I'm interested in working on capabilities along these lines.  Are there
 existing RFCs that touch on this?  If not, perhaps one should be
created.

 This overlaps some configuration ideas I've been mulling over.  From the
 original comment here about internal vars being handy for /when the
same
 layers are re-used for several customers who like to have a bit
different
 styling for the same source data/ it occurs to me that a matrix or some
 other constructs more complex than a flat list of internal variables
might
 be called for -- provided they don't turn the mapfile and internal
mapserv
 into spaghetti..

 Jukka Rahkonen (have I ordered your name properly?), do you want to
start an
 RFC on this?

 To anyone -- would this conversation typically migrate over to 'dev' ?

 Robert Hollingsworth


 I agree that this is a request that comes up often. As usual we'd just
 need someone to lead the effort.

 On 11-10-03 12:12 AM, Rahkonen Jukka wrote:
 Hi,

 Inspired by the Thomas Bonfort's rendering chain I have been thinking
if
 we could have a native support for using  internal mapfile variables.
Now
 Thomas is setting for example a bunch of colours in a definition file
 which is converted into a real mapfile with python script and c
 preprocessor.
 http://mapserver-utils.googlecode.com/svn/trunk/README
 http://mapserver-utils.googlecode.com/svn/trunk/generate_style.py

 I would like to see a simple way for setting the variables directly in
the
 mapfile, somehow like
 MAP
 SET pedestrian_clr  #fafaf5
 SET forest_clr #dcdcb4
 SET industrial_clr #ebe5d9
 

 And then later in the layers use
 LAYER
 .
 COLOR %pedestrian_clr%

 The internal variables could be interpreted only from the mapfile and
they
 could not be altered by the web users.

 Internal variable would help in maintaining big mapfiles with repeating
 styles like in the OpenStreetMap rendering case.  Another use case is
when
 the same layers are re-used for several customers who like to have a
bit
 different styling for the same source data.

 -Jukka Rahkonen-


 --
 View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Feature-wish-Internal-mapfile-vari
ables-tp6853853p6856070.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

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


Re: [mapserver-users] Re: Feature wish: Internal mapfile variables

2011-10-03 Thread Smith, Michael ERDC-CRREL-NH
With oracle at least, you could pull from a url (via a query) and return data 
back to MS

Mike

From: Bob Basques 
bob.basq...@ci.stpaul.mn.usmailto:bob.basq...@ci.stpaul.mn.us
Date: Mon, 3 Oct 2011 14:18:54 -0500
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org, 
Stephen Woodbridge wood...@swoodbridge.commailto:wood...@swoodbridge.com, 
Michael Smith 
michael.sm...@usace.army.milmailto:michael.sm...@usace.army.mil
Subject: Re: [mapserver-users] Re: Feature wish: Internal mapfile variables


All,


Would adding in INCLUDEs from a URL be pushing it too much, as in:


INCLUDE http://Myserver.com/cgi-bin/myscript.pl;


Could pass in parameters like so . . .


INCLUDE http://Myserver.com/cgi-bin/myscript.pl?A=first thingb=second 
thingc=third thing . . .


bobb




 Smith, Michael ERDC-CRREL-NH 
 michael.sm...@usace.army.milmailto:michael.sm...@usace.army.mil wrote:

There is an RFC to have includes come from non-file connections
(databases). It would be another option

http://mapserver.org/development/rfc/ms-rfc-74.html


Mike

--
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers



On 10/3/11  2:51 PM, Stephen Woodbridge 
wood...@swoodbridge.commailto:wood...@swoodbridge.com wrote:

One idea regarding this that you might want to consider is the ability
to put all the named parameters in an include file, then be able to
include that file via a CGI parameter. So it might look like this:


MAP
   INCLUDE client-params-%client_id%.inc
   ...
END

And then you could have parameter files like:

client-params-27.inc
client-params-123.inc
etc.

And these would include nothing but your SET ... commands.

Then when requesting the map:

/http://localhost/cgi-bin/mapserv?client_id=123mode=mapmap=/path/to/mapf
ile.map...

This would make it very easy to manage a single mapfile for parameters
that are different for each client/user.

Obviously the client_id could be set via a cookie, or a wrapper script,
or a session variable, or manually, etc.

-Steve W

On 10/3/2011 2:39 PM, reholl wrote:
 I'm interested in working on capabilities along these lines.  Are there
 existing RFCs that touch on this?  If not, perhaps one should be
created.

 This overlaps some configuration ideas I've been mulling over.  From the
 original comment here about internal vars being handy for /when the
same
 layers are re-used for several customers who like to have a bit
different
 styling for the same source data/ it occurs to me that a matrix or some
 other constructs more complex than a flat list of internal variables
might
 be called for -- provided they don't turn the mapfile and internal
mapserv
 into spaghetti..

 Jukka Rahkonen (have I ordered your name properly?), do you want to
start an
 RFC on this?

 To anyone -- would this conversation typically migrate over to 'dev' ?

 Robert Hollingsworth


 I agree that this is a request that comes up often. As usual we'd just
 need someone to lead the effort.

 On 11-10-03 12:12 AM, Rahkonen Jukka wrote:
 Hi,

 Inspired by the Thomas Bonfort's rendering chain I have been thinking
if
 we could have a native support for using  internal mapfile variables.
Now
 Thomas is setting for example a bunch of colours in a definition file
 which is converted into a real mapfile with python script and c
 preprocessor.
 http://mapserver-utils.googlecode.com/svn/trunk/README
 http://mapserver-utils.googlecode.com/svn/trunk/generate_style.py

 I would like to see a simple way for setting the variables directly in
the
 mapfile, somehow like
 MAP
 SET pedestrian_clr  #fafaf5
 SET forest_clr #dcdcb4
 SET industrial_clr #ebe5d9
 

 And then later in the layers use
 LAYER
 .
 COLOR %pedestrian_clr%

 The internal variables could be interpreted only from the mapfile and
they
 could not be altered by the web users.

 Internal variable would help in maintaining big mapfiles with repeating
 styles like in the OpenStreetMap rendering case.  Another use case is
when
 the same layers are re-used for several customers who like to have a
bit
 different styling for the same source data.

 -Jukka Rahkonen-


 --
 View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Feature-wish-Internal-mapfile-vari
ables-tp6853853p6856070.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

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

Re: Σχετ: [mapserver-users] Re: Mapserver 6 WMS / PostGIS Problem

2011-09-22 Thread Smith, Michael ERDC-CRREL-NH
I have seen similar issues for Oracle, where it queries all geometries and
aggregates the bounds to get an extent. Manually setting the wms_extents
is what we always do.

Mike

-- 
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers



On 9/22/11  9:57 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

Hi,

I turned PostgreSQL statement logging on and I can see this line to
appear:
execute (unnamed): SELECT postgis_version()

Mapserv.exe is eating now 52% of CPU and nothing else seems to happen.

-Jukka-


 -Alkuperäinen viesti-
 Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com]
 Lähetetty: 22. syyskuuta 2011 16:47
 Vastaanottaja: Rahkonen Jukka
 Kopio: Andreas Douvalis; mapserver-users@lists.osgeo.org
 Aihe: Re: : [mapserver-users] Re: Mapserver 6 WMS /
 PostGIS Problem
 
 When the request hangs, is it the mapserver process or the postgres
 one that is eating all the cpu cycles ?
 
 --
 thomas
 
 2011/9/22 Rahkonen Jukka jukka.rahko...@mmmtike.fi:
  Hi,
 
  I can repeat this problem with Mapserver 6.0.1 on Windows
 Vista 32-bit.  I
  defined one PostGIS test layer without metadata and
 GetCapabilities fails
  after a long waiting. With DEBUG 5 the last line in
 MS_ERRORFILE that
  appears is this
  msPostGISLayerIsOpen called.
 
  Adding wms_extent corrects the situation.  Same mapfile
 does work on Linux
  and it used to work for me on Windows too with Mapserver 5.x.
 
  -Jukka Rahkonen-
 
  
  Lähettäjä: Andreas Douvalis [mailto:anddre...@yahoo.gr]
  Lähetetty: 22. syyskuuta 2011 10:14
  Vastaanottaja: Rahkonen Jukka
  Aihe: : [mapserver-users] Re: Mapserver 6 WMS / PostGIS Problem
 
  No problem with pgsql
  !--[if !supportLineBreakNewLine]--
  !--[endif]--
  It takes 78 ms the sql of the layer that it doesn't work
 with wms get map
  request.
  Unfortunately  there is no debug error to check the query
 that mapserver
  runs.
  
  ???: Rahkonen Jukka jukka.rahko...@mmmtike.fi
  : 'anddreas2' anddre...@yahoo.gr;
 'mapserver-users@lists.osgeo.org'
  mapserver-users@lists.osgeo.org
  : 9:32 ?.?. ??, 22 ??? 2011
  : Re: [mapserver-users] Re: Mapserver 6 WMS / PostGIS Problem
 
  Hi,
 
  Basically it means that the SQL query for getting the
 extents of your layer
  is slow.
  Set timing on with \timing on in your psql window and run query
  select st_extent(geom) from titles;
  http://postgis.refractions.net/docs/ST_Extent.html
  How long does it take? Do vacuum analyze for the table and
 try again to see
  if there has been some trouble with indexes.
  Anyway, it is always faster to get extents from the
 metadata line than from
  PostGIS, but normally it should not take very long. For me
 it takes 1500 ms
  with a table of 30 polygons.
 
  -Jukka Rahkonen-
 
 
 
  -Alkuperäinen viesti-
  Lähettäjä: mapserver-users-boun...@lists.osgeo.org
  [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta anddreas2
  Lähetetty: 22. syyskuuta 2011 8:52
  Vastaanottaja: mapserver-users@lists.osgeo.org
  Aihe: [mapserver-users] Re: Mapserver 6 WMS / PostGIS Problem
 
  I found the solution:
 
  Just set THE wms_extent METADATA in the layer section and it
  works.  Without
  Layers wms_extent it crashes.
 
  (Jesus, I spent three days of my life for this stupid thing.
  I tested with
  all versions of postgis (1.5, 1.4) postgresql (8.4,9.0,9.1).
  I am think it
  is ms4w problem).
 
  --
  View this message in context:
  http://osgeo-org.1803224.n2.nabble.com/Mapserver-6-WMS-PostGIS
  -Problem-tp6387007p6819004.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
 
 
 ___
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 displaying a NAD83 tile in WGS84 (or via WMS)

2011-08-20 Thread Smith, Michael ERDC-CRREL-NH
Ed,

Your mrsid image is in UTM Zone 10, NAD 1983. You should set

PROJECTION
 init=epsg:26910
END


For your layer (http://spatialreference.org/ref/epsg/26910/)

-- 
Mike


Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 8/19/11 5:23 PM, Ed Resnick eresn...@tapestrysolutions.com wrote:

Here's a WMS request, broken up for readability:

---
http://10.10.10.206/cgi-bin/mapserv.exe?map=E:/osm4326/mrsid.map
  service=WMS
  version=1.1.1
  request=GetMap
  layers=default
  format=image/png
  width=256
  height=256
  srs=EPSG:4326
  bbox=-122.875,45.25,-122.75,45.375
  transparent=TRUE
---

Here's the gdalinfo dump:

---
Driver: MrSID/Multi-resolution Seamless Image Database (MrSID)
Files: wa.sid.sid
   wa.sid.sdw
   wa.sid.sid.aux.xml
Size is 1742, 1458
Coordinate System is:
PROJCS[NAD_1983_UTM_Zone_10N,
GEOGCS[GCS_North_American_1983,
DATUM[North_American_Datum_1983,
SPHEROID[GRS_1980,6378137.0,298.257222101]],
PRIMEM[Greenwich,0.0],
UNIT[Degree,0.0174532925199433]],
PROJECTION[Transverse_Mercator],
PARAMETER[false_easting,50.0],
PARAMETER[false_northing,0.0],
PARAMETER[central_meridian,-123.0],
PARAMETER[scale_factor,0.9996],
PARAMETER[latitude_of_origin,0.0],
UNIT[Meter,1.0]]
Origin = (555230.000,5048039.000)
Pixel Size = (1.09239300614,-1.000)
Metadata:
  IMAGE__INPUT_NAME=C:\DOCUME~1\PAULW~2.ATT\LOCALS~1\Temp\img1AE.tmp
  IMAGE__INPUT_FILE_SIZE=7619508.00
  GEO__spref_horizsys_cordsysn_geogcsn=GCS_North_American_1983
  GEO__spref_horizsys_cordsysn_projcsn=NAD_1983_UTM_Zone_10N
  GEO__spref_horizsys_planar_gridsys_gridsysn=Universal Transverse
Mercator
  GEO__spref_horizsys_planar_gridsys_utm_utmzone=10
  GEO__spref_horizsys_planar_gridsys_utm_transmer_sfctrmer=0.999600
  GEO__spref_horizsys_planar_gridsys_utm_transmer_longcm=-123.00
  GEO__spref_horizsys_planar_gridsys_utm_transmer_latprjo=0.00
  GEO__spref_horizsys_planar_gridsys_utm_transmer_feast=50.00
  GEO__spref_horizsys_planar_gridsys_utm_transmer_fnorth=0.00
  GEO__spref_horizsys_planar_planci_plance=row and column
  GEO__spref_horizsys_planar_planci_plandu=meters
  GEO__spref_horizsys_planar_planci_coordrep_absres=1.09
  GEO__spref_horizsys_planar_planci_coordrep_ordres=1.00
  GEO__spref_horizsys_geodetic_horizdn=North American Datum of 1983
  GEO__spref_horizsys_geodetic_ellips=Geodetic Reference System 80
  GEO__spref_horizsys_geodetic_semiaxis=6378137.00
  GEO__spref_horizsys_geodetic_denflat=298.257222
  IMAGE__COMPRESSION_VERSION=1,6,3
  IMAGE__TARGET_COMPRESSION_RATIO=20.00
  IMAGE__COMPRESSION_NLEV=6
  IMAGE__COMPRESSION_WEIGHT=4.00
  IMAGE__COMPRESSION_GAMMA=2.00
  IMAGE__COMPRESSION_BLOCK_SIZE=512
  IMAGE__CREATION_DATE=Wed Dec 02 14:18:16 2009

  IMAGE__NO_DITHER=0
  VERSION=MG2
  IMAGE__WIDTH=1742
  IMAGE__HEIGHT=1458
  IMAGE__NO_DATA_VALUE=15,172,40
  IMAGE__TRANSPARENT_DATA_VALUE=0,0,176
  IMAGE__COLOR_SCHEME=0
  IMAGE__DATA_TYPE=0
  IMAGE__XY_ORIGIN=555230.55,5048038.50
  IMAGE__X_RESOLUTION=1.09
  IMAGE__Y_RESOLUTION=1.00
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  555230.000, 5048039.000) (122d17'31.28W, 45d35' 1.32N)
Lower Left  (  555230.000, 5046581.000) (122d17'31.87W, 45d34'14.07N)
Upper Right (  556972.016, 5048039.000) (122d16'10.90W, 45d35' 0.81N)
Lower Right (  556972.016, 5046581.000) (122d16'11.51W, 45d34'13.57N)
Center  (  556101.008, 5047310.000) (122d16'51.39W, 45d34'37.44N)
Band 1 Block=1742x128 Type=Byte, ColorInterp=Red
  Minimum=60.000, Maximum=222.000, Mean=119.606, StdDev=36.132
  Overviews: 871x729, 436x365, 218x183, 109x92, 55x46, 28x23
Band 2 Block=1742x128 Type=Byte, ColorInterp=Green
  Minimum=84.000, Maximum=220.000, Mean=133.956, StdDev=21.319
  Overviews: 871x729, 436x365, 218x183, 109x92, 55x46, 28x23
Band 3 Block=1742x128 Type=Byte, ColorInterp=Blue
  Minimum=95.000, Maximum=205.000, Mean=119.015, StdDev=12.620
  Overviews: 871x729, 436x365, 218x183, 109x92, 55x46, 28x23
---

And finally here is the map file:

---
MAP
OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
FORMATOPTION INTERLACE=false
MIMETYPE image/png
END
NAME MrSID
IMAGETYPE agg
MAXSIZE 4000
SIZE 800 800
IMAGECOLOR #B3C6D4
WEB
METADATA
  ows_enable_request *
  labelcache_map_edge_buffer -10
  wms_srs EPSG:4326 EPSG:4269
  wms_title MrSID
  wms_onlineresource
http://10.10.10.206/cgi-bin/mapserv.exe?map=E:/osm4326/mrsid.map;
END
END
CONFIG PROJ_LIB C:\ms4w\proj\nad
CONFIG MS_ERRORFILE E:\errors.txt
DEBUG 5
SHAPEPATH E:/osm4326/MrSID/
EXTENT -123.0 45.0 -122.0 46.0
UNITS dd
PROJECTION

RE: [mapserver-users] googleMap as a base layer

2011-08-11 Thread Smith, Michael ERDC-CRREL-NH
Just to clarify, the limitation is not raised with an enterprise license.

The best solution is to use something like OpenLayers (openlayers.org) and have 
a Google layer and a MapServer layer. OpenLayers and MapServer work very well 
together.

Mike


Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Thursday, August 11, 2011 4:07 AM
To: ahmet temiz
Cc: mapserver-users
Subject: Re: [mapserver-users] googleMap as a base layer

no, the google maps terms of service explicitely deny this kind of usage (this 
limitation is probably raised if you get an enterprise
license)

--
thomas

2011/8/11 ahmet temiz ahmettemi...@gmail.com:
 hello

 I was wondering if it was possible to integrate googlemap to mapserver a 
 layer ?

 regards

 --
 Ahmet Temiz
 Jeoloji Müh.
 Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma 
 Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km.
 Lodumlu / Ankara
 Tel : 0 312 2872680 / 1535
 

 Ahmet Temiz
 Geological Eng.
 Information Systems - GIS Group
 Disaster and Emergency Management
 of Presidency
 ___
 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


Re: [mapserver-users] defresolution and resolution issues in Mapserver 6

2011-07-18 Thread Smith, Michael ERDC-CRREL-NH
No, they are not annotation layers.

I'll pull the latest svn and rebuild and if I still have issues, I'll
create a small test case.

Mike

-- 
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers





On 7/18/11  12:44 PM, thomas bonfort thomas.bonf...@gmail.com wrote:

Mike,
I am not able to reproduce with the msautotest tests:

These are the steps I have taken, in msautotest/renderers
- mapserv -nh 
QUERY_STRING='map=point_ellipse.mapmode=mapmap_resolution=144map_size=8
00+600'
 result/point_ellipse.png.png
- convert -scale 50% result/point_ellipse.png.png
result/point_ellipse.png.png
- compare visually expected/point_ellipse.png.png
result/point_ellipse.png.png which should be nearly identical

ps: I've added the labels-anno.map test in case the problem you werre
having only affects annotation layers, but that does not seem to be
the case.

--
thomas

On Mon, Jul 18, 2011 at 16:49, Smith, Michael ERDC-CRREL-NH
michael.sm...@usace.army.mil wrote:
 All,
 I'm seeing symbol scaling and label size/placement issues (see images
and
 pdfs for differences) when trying to scale up for higher resolution
output.
 Font size is scaling properly but the symbols are larger at higher dpi
than
 it should be and labels are not being displayed (perhaps due to label
buffer
 issues) at the higher dpi.
 Are there additional settings I should be making beyond setting
resolution
 and defresolution?
 Example URLs
 
http://localgost/cgi-bin/mapserv6?TRANSPARENT=truemap_resolution=72MAP_
IMAGETYPE=pngMAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5map_defres
olution=72MAP_SIZE=440+483LAYERS=watersmapMODE=mapMAP=cm2_test.map
 
http://localhost/cgi-bin/mapserv6?TRANSPARENT=truemap_resolution=144MAP
_IMAGETYPE=pngMAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5map_defre
solution=72MAP_SIZE=880+966LAYERS=watersmapMODE=mapMAP=cm2_test.map
 Mike
 --
 Michael Smith
 Remote Sensing/GIS Center
 US Army Corps of Engineers



 ___
 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] transparnt polygon color

2011-07-06 Thread Smith, Michael ERDC-CRREL-NH
Use the keyword OPACITY [0-100] where 100 is fully opaque. Opacity is available 
at both the LAYER and STYLE level.

See http://mapserver.org/mapfile/layer.html and 
http://mapserver.org/mapfile/style.html

--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers


From: Amr Zakaria amrzakari...@hotmail.commailto:amrzakari...@hotmail.com
Date: Wed, 6 Jul 2011 13:40:46 +
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] transparnt polygon color

How to make polygon with transparent color

Best VB programmer , Azz.


___ mapserver-users mailing list 
mapserver-users@lists.osgeo.orgmailto: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] upgrade Mapserver 5.4 to 6.0 (gulp!)

2011-06-10 Thread Smith, Michael ERDC-CRREL-NH
For Fedora, I think you want the EPEL and ELGIS repos.

See http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 6/10/11 3:34 AM, Chris Green chris.gr...@ibstv.co.uk wrote:

 Hi Brent
  
 Thank you for your very helpful comments, much appreciated. It is pretty clear
 to me that I have to start by changing my elderly Fedora to something better
 suited to supporting GIS applications including Mapserver 6.0. It is strange ­
 I¹m not at all afraid of PHP/Mapscript (although the documentation is not
 great) or of Javascript, but the whole Linux world is just so confusing that I
 get a form of paralysis by analysis soon after I start trying to compare the
 different options.
  
 Anyway I will certainly take a look at Ubuntu / OpenSuse.
  
  
 Chris
  
 
 From: pcr...@pcreso.com [mailto:pcr...@pcreso.com]
 Sent: 10 June 2011 07:21
 To: chris.gr...@ibstv.co.uk
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
  
 Hi Chris, 
 
 I'm a Suse/Ubuntu user, in both cases totally because of the well supported
 GIS related packages for these distros. So I have completely avoided the
 issues are facing right now :-) Though I'd imagine it will not be long before
 6.0 is available natively for Fedora, given 5.6 is supported.
 
 I'm not too familiar with the RH Linux family, but the OpenSuse Geo repository
 partially supports Centos  RH4/5, and I have found the maintainers there to
 be very helpful. If a RH or Centos build will be compatible with Fedora, it
 would be worth asking around there. Mapserver is not currently built for these
 distros, but someone may be prepared to do this for you.
 
 http://download.opensuse.org/repositories/Application:/Geo/
 
 Personally, I'd suggest you switch to a distro that does what you want,  if
 that includes well maintained  supported, pre-built mapserver ( related)
 packages, Ubuntu  OpenSuse are well worth considering.
 
 HTH,
 
   Brent Wood
 
 
 
 --- On Fri, 6/10/11, Smith, Michael D ERDC-CRREL-NH
 michael.sm...@usace.army.mil wrote:
 From: Smith, Michael D ERDC-CRREL-NH michael.sm...@usace.army.mil
 Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
 To: Chris Green chris.gr...@ibstv.co.uk, 'Stephen Woodbridge'
 wood...@swoodbridge.com, mapserver-users@lists.osgeo.org
 Date: Friday, June 10, 2011, 3:31 AMChris,
 
 What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc.
 
 See http://mapserver.org/download.html#linux
 
 
 On 6/9/11  11:04 AM, Chris Green chris.gr...@ibstv.co.uk
 /mc/compose?to=chris.gr...@ibstv.co.uk  wrote:
 
  Hi Steve
  
  Thanks for your comments. I have read the documentation and realise that
  there will be quite a few changes to my mapfile(s). I'm not at all worried
  about that, it's just a question of patiently working through the changes.
  However I am very apprehensive of the upgrade itself. Before I installed 
the
  FGS package I spent many, many hours trying to compile and install
 Mapserver
  myself but eventually had to admit defeat and resort to FGS.
  
  Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe
  just some encouragement!)
  
  
  Chris
  
  -Original Message-
  From: mapserver-users-boun...@lists.osgeo.org
 /mc/compose?to=mapserver-users-boun...@lists.osgeo.org
  [mailto:mapserver-users-boun...@lists.osgeo.org
 /mc/compose?to=mapserver-users-boun...@lists.osgeo.org ] On Behalf Of
 Stephen
  Woodbridge
  Sent: 09 June 2011 15:42
  To: mapserver-users@lists.osgeo.org
 /mc/compose?to=mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
  
  On 6/9/2011 8:58 AM, Chris Green wrote:
  Hi All
  
  I have been running Mapserver 5.4 for about 18 months on a Fedora core 7
  Unix platform. I installed it via the FGS installer package which made
  the installation process relatively straightforward.
  
  Now I see that Mapserver 6.0 has been released and it includes some
  features that I really want to take advantage of, particularly the
  ability to cluster dense features. My problem is that apparently the FGS
  package has not been updated, so from the Mapserver website it looks
  like I have start from scratch with a scarily long list of libraries and
  compilations required to install Mapserver 6.0 from scratch. As
  something of a Unix novice I don't fancy this very much!
  
  I am wondering if there is a simple way to in effect replace my existing
  Mapserver 5.4 executable with Mapserver 6.0 - could I assume that
  Mapserver 6.0 only requires the same libraries as 5.4 and just compile
  the 6.0 executable? Any guidance on the direction to take here would be
  gratefully received.
  
  Hi Chris,
  
  Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a
  mapfile point of view. Make sure you read the mapserver migration guide.
  One of the big changes that we made in 6.0 was to 

Re: [mapserver-users] different maps

2011-06-09 Thread Smith, Michael ERDC-CRREL-NH
Leticia,

If each one is a separate map and handled differently, just create N
separate calls to mapserver. You could do this with OpenLayers and create
multiple map instances each calling mapserver with different map attributes
(mapfile, zoom, layers).

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 6/9/11 5:46 AM, Leticia Gomez lgo...@itba.edu.ar wrote:

 I am new in Mapserver. I need to develop a Web application where different
 maps can be display (browse) in the same page. But all the examples that I
 find consist on displaying different maps as ³layers² in the same image
 (overlapped). I need that the page manage different ³zones², each on with its
 map and layers. Each zone must be managed separately, i.e. the user might zoom
 one zone and not the other ones, etc.
 Is it possible with MapServer?
  
 I read the documentation and find that there exists only one ³map variable²
 global to the web page. I developed a page with multiple image tags, but all
 of them are associated with the same ³map variable², so they move altogether
 in the same map.
  
  
 Thanks in advance,
 Leticia
 
 
 ___
 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] msWMSDispatch(): WMS request not enabled

2011-06-06 Thread Smith, Michael ERDC-CRREL-NH
Looks like you need to review the 6.0 migration guide (
http://mapserver.org/MIGRATION_GUIDE.html#migration ).

Specifically  http://mapserver.org/MIGRATION_GUIDE.html#ogc-web-services

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 6/6/11 7:05 AM, Tonton to.ton...@gmail.com wrote:

 today is my day !:0(
 
 so now i have new error message and seems  whitout documentation on it
 
  msWMSDispatch(): WMS request not enabled. Check wms/ows_enable_request
 settings. 
 
 ows_enable_request ? is the Status on from mapfile ?
 
 
    /usr/lib/cgi-bin/mapserv -v
 MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
 SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
 SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL
 INPUT=SHAPEFILE
 
 
 ___
 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] 3d WFS Service

2011-04-26 Thread Smith, Michael ERDC-CRREL-NH
All,

Is there a way to get a 3d (from 3d source data) return from a mapserver wfs
service?

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers

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


Re: [mapserver-users] 3d WFS Service

2011-04-26 Thread Smith, Michael ERDC-CRREL-NH
Frank,

We do have a need to do this for our National Levee Database. If we could do
2.5D output (gml) using a OGR output format, that would work fine for us.

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 4/26/11 10:30 AM, Frank Warmerdam warmer...@pobox.com wrote:

 On 11-04-26 05:39 AM, Smith, Michael ERDC-CRREL-NH wrote:
 All,
 
 Is there a way to get a 3d (from 3d source data) return from a mapserver wfs
 service?
 
 
 Mike,
 
 I notice that the mapgml.c code is 2D output only.  Also, the new
 mapogroutput.c that can be used for WFS is 2D only as it stands.  It seems
 both sets of code *could* be improved to produce 2.5D output if
 USE_POINT_Z_M is defined in the mapserver build though it is a bit late
 for 6.0 now.  If you would like me to do so for the OGR based output
 let me know.
 
 Best regards,

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


Re: [mapserver-users] Production mapserver

2011-03-21 Thread Smith, Michael ERDC-CRREL-NH
In the benchmark testing we did last year, see
http://wiki.osgeo.org/wiki/Benchmarking_2010, I tested MapServer with
minimal formats (just PostGIS) compiled it vs MapServer with Oracle,
PostGIS, GDAL/OGR. There was no difference affect on performance by having a
minimal build.

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 3/21/11 1:43 PM, Andy Colson a...@squeakycode.net wrote:

 On 3/21/2011 12:33 PM, thomas bonfort wrote:
 On Mon, Mar 21, 2011 at 18:28, Andy Colsona...@squeakycode.net  wrote:
 
 Cant answer anything about Ubuntu, never used it, run Slackware myself.  I
 prefer to build mapserver from source.  I'm also using mapscript (with
 perl), so I build that as well.
 compiling stuff from source also leaves out all the parts of mapserver
 that can cause some marginal overhead. for example, if you are only
 serving shapefiles, you can leave out the gdal/ogr and postgis
 dependencies
 
 
 Indeed.  When I first started playing with mapserver, I went totally OCD
 trying to compile in every possible format it would support.  Was really
 kinda fun.  (Dont know what hdf5 is, never seen it, never needed it,
 cant say as I ever will... but I have support for it! Yeah!)
 
 Its amazing how many formats that mapserver/gdal/ogr support.  (Dude!
 Its like Pokemon!  Gotta get 'em all!)
 
 Huh.. I'm gonna need to lay off the crack again. :-)
 
 -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] Production mapserver

2011-03-21 Thread Smith, Michael ERDC-CRREL-NH
Jeff,

For the WMS Benchmarking effort, we used the FastCGI library from
http://www.fastcgi.com.

It is the mapserv executable that you will call via fastcgi.

We set up a separate fcgi-bin path for mapserver with fastcgi. That is not
actually required. The URL here would be
http://server/fcgi-bin/mapserv?map=XXX

Our apache setup looked like this

ScriptAlias /fcgi-bin/ /opt/mapserver/fcgi-bin/

Directory /opt/mapserver/fcgi-bin/
   SetHandler fcgid-script
   Options +ExecCGI +FollowSymLinks
   # Customize the next two directives for your requirements.
   Order allow,deny
   Allow from all
/Directory

IfModule fcgid_module
  FcgidInitialEnv LD_LIBRARY_PATH
/usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserver/lib:/oracle/instantclient_
11_2
  FcgidMinProcessesPerClass 0
  FcgidIdleScanInterval 1
  FcgidProcessLifeTime 10
  FcgidIOTimeout 100
  FcgidMinProcessesPerClass 0
/IfModule

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers


On 3/21/11 3:30 PM, Jeff Dege jeff.d...@korterra.com wrote:

 So, from what I'm hearing Apache vs. Lighttpd isn't going to make a
 significant difference.
 
 Cgi vs. FastCGI very definitely will.
 
 Great.  So how do I get FastCGI working?
 
 There are docs at: http://mapserver.org/optimization/fastcgi.html
 
 They are only getting me part of the way there.
 
 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and
 mod_fcgi.  Are these both needed?  Only one needed?  Are they replacements,
 alternatives, or entirely unrelated to each other?
 
 2. In the Configuration section of the above doc, it says to modify http.conf
 to load the module, and to add a handler.  The Ubuntu packages placed
 fastcgi.conf and fastcgi.load in /etc/apache2/mods-available.  I expect that I
 simply need to create a link to these in /etcs/apache2/mods-enabled, the way
 the others are.
 
 3. The Configuration section also says to add a FastCgiConfig command.  Where
 should this be? 
 
 I see nothing in that configuration that indicates that it's the mapserv
 executable I want to run via fastcgi.
 
 
 ___
 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] WFS GetFeature Help...

2010-12-04 Thread Smith, Michael ERDC-CRREL-NH
Saha,

You are getting XML back. Just do a view source on the result.

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 12/4/10 2:04 PM, Saha Aswina sahaasw...@yahoo.com wrote:

 Dear everyone,
 
 I'm new to mapserver.
 When I want to using wfs getfeature why I just get a lot of number, whats
 wrong??
 
 http://www.dharmawan.web.id/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fi
 x.mapSERVICE=WFSVERSION=1.0.0REQUEST=getfeatureTYPENAME=kecamatanMAXFEATU
 RES=1OUTPUTFORMAT=gml3
 
 I don't get same xml code like the example from web
 http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFSVERSION=1.0.0REQUEST=getfea
 tureTYPENAME=continentsMAXFEATURES=1OUTPUTFORMAT=gml3
 
 thank you
 
 
 ___
 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] Best Practices for the Spatial Index with OracleDB 11gR2

2010-10-27 Thread Smith, Michael ERDC-CRREL-NH
You can disable the spatial filtering (which is what requires the spatial
index) by using

   DATA the_geom from (SELECT SDO_GEOM.SDO_CENTROID(geometrie, 2) AS
the_geom, id FROM ereignis) USING SRID 31468 NONE

Mike


On 10/27/10 8:14 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

 Hi,
 
 I made a little test and I believe it is just impossible.  Oracle cannot do
 spatial query for the transformed geometries (centroids) returned by the first
 SELECT. It cannot find where the centroids are because they are not indexed
 and the index of the primary table does not help. You can for sure use
 centroids by pushing them into a new table or column and creating spatial
 index. There may be some SQL/Oracle trick to do it in some other way, PL/SQL
 people are doing amazing things but I am not aware of any.
 
 This is the query I used for testing and Oracle messages.  I am not at all
 sure if this query is OK, but it may be.
 
 SQL select the_geom from (SELECT SDO_GEOM.SDO_CENTROID(tt.geoloc, 2) AS
 the_geom, id
  from test_table tt)
  WHERE SDO_ANYINTERACT(the_geom, SDO_GEOMETRY(2003, 2393,
  NULL,SDO_ELEM_INFO_ARRAY(1,1003,3),SDO_ORDINATE_ARRAY(3289429,7024458,
 3288529,7026558)))
  = 'TRUE';
 
 select the_geom from (SELECT SDO_GEOM.SDO_CENTROID(gp.geoloc, 2) AS the_geom,
 id from gis_polygon gp
 *
 VIRHE rivillä 1:  # error on row 1:
 ORA-13226: interface not supported without a spatial index
 ORA-06512: at MDSYS.MD, line 1723
 ORA-06512: at MDSYS.MDERR, line 8
 ORA-06512: at MDSYS.SDO_3GL, line 70
 ORA-06512: at MDSYS.SDO_3GL, line 221
 
 -Jukka Rahkonen-
 
 
 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta
 Julian Wiersbitzki
 Lähetetty: 27. lokakuuta 2010 12:52
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] Best Practices for the Spatial Index
 with OracleDB 11gR2
 
 Hi List!
 
 I am new here in this list and with mapserver, so please tell
 me if my question is already a faq.
 
 We have mapserver 5.6.3 in use together with an Oracle DB
 11gR2 Standard Edtion. All works well so far and configuring
 layer with the mapfile is no problem. But we have two layers
 which use SDO-Function in the SELECT Statement, e.g.:
 
DATA the_geom from (SELECT
 SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM
 ereignis) USING SRID 31468
 or
DATA the_geom from (SELECT
 SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom,
 bezirksinspektion AS label FROM stadtbezirk GROUP BY
 bezirksinspektion) USING SRID 31468
 
 If I want to fetch one of these layers the mapserver tells me
 there is no spatial index. Normally we have spatial indexes
 on all our tables with SDO_GEOMETRY columns, e.g.:
 
 INSERT INTO user_sdo_geom_metadata VALUES (
   UPPER('ereignis'),
   UPPER('geometrie'),
   MDSYS.SDO_DIM_ARRAY(
 MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001),
 
 MDSYS.SDO_DIM_ELEMENT('Y',5324953.39701,5345694.05299,0.001)),
 31468);
 CREATE INDEX ereignis_geom_idx ON ereignis(geometrie)
 INDEXTYPE IS MDSYS.SPATIAL_INDEX;
 
 But how do I create a spatial index on SDO-functions in the
 database? Can I even do that? The documentations only
 describes spatial index on SDO_GEOMETRY columns, but not on
 spatial functions.
 
 What are the best practices for this kind of layers?
 
 TIA, Julian
 
 __
 
 Hamburger Berater Team GmbH   Handelsregister: HRB 31629
 Stadthausbrücke 3 (Fleethof)  Amtsgericht Hamburg
 20355 Hamburg Geschäftsführer:
 Fon:  040/369779-43   Ilse Habermann
 Fax:  040/369779-99   Hans-Joachim Habermann
 Mail: mailto:j...@hbt.de  Daniel Hoffmann
 __
 
 Internet:   http://www.hbt.de
 http://www.geofox.dehttp://www.geonetwatch.de
 __
 
 DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM
 Diese Email wurde mit ständig aktualisierten Virenscannern geprüft
 __
 
 Diese Email einschließlich eventuell angehängter Dateien
 enthält vertrauliche Informationen und ist ausschließlich
 für den bezeichneten Adressaten bestimmt. Wenn Sie nicht
 der richtige Adressat oder dessen Vertreter sind, verständigen
 Sie bitte sofort den Absender und löschen Sie dann diese Email
 und eventuell angehängte Dateien. Vielen Dank!
 Beachten Sie: Jede Form der Nutzung, Vervielfältigung oder
 Weitergabe des Inhalts fehlgeleiteter Emails ist unzulässig.
 __
 
 This e-mail is intended only for the above addressee.
 It may contain privileged information. If you are not the
 addressee you must not copy, distribute, disclose or use any
 of the information in it. If you have received it in error
 

Re: [mapserver-users] Best Practices for the Spatial Index with OracleDB 11gR2

2010-10-27 Thread Smith, Michael ERDC-CRREL-NH
When you use NONE, yes. No spatial filtering is taking place.


On 10/27/10 10:08 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

 Hi,
 
 Does it mean that Mapserver is making then all the Oracle queries without BBOX
 and just selects everything?
 
 -Jukka-
 
 Smith, Michael ERDC-CRREL-NH wrote
 
 Aihe: Re: [mapserver-users] Best Practices for the Spatial
 Index with OracleDB 11gR2
 
 You can disable the spatial filtering (which is what requires
 the spatial
 index) by using
 
DATA the_geom from (SELECT SDO_GEOM.SDO_CENTROID(geometrie, 2) AS
 the_geom, id FROM ereignis) USING SRID 31468 NONE
 
 Mike
 
 
 On 10/27/10 8:14 AM, Rahkonen Jukka
 jukka.rahko...@mmmtike.fi wrote:
 
 Hi,
 
 I made a little test and I believe it is just impossible.
 Oracle cannot do
 spatial query for the transformed geometries (centroids)
 returned by the first
 SELECT. It cannot find where the centroids are because they
 are not indexed
 and the index of the primary table does not help. You can
 for sure use
 centroids by pushing them into a new table or column and
 creating spatial
 index. There may be some SQL/Oracle trick to do it in some
 other way, PL/SQL
 people are doing amazing things but I am not aware of any.
 
 This is the query I used for testing and Oracle messages.
 I am not at all
 sure if this query is OK, but it may be.
 
 SQL select the_geom from (SELECT
 SDO_GEOM.SDO_CENTROID(tt.geoloc, 2) AS
 the_geom, id
  from test_table tt)
  WHERE SDO_ANYINTERACT(the_geom, SDO_GEOMETRY(2003, 2393,
  
 NULL,SDO_ELEM_INFO_ARRAY(1,1003,3),SDO_ORDINATE_ARRAY(3289429,7024458,
 3288529,7026558)))
  = 'TRUE';
 
 select the_geom from (SELECT
 SDO_GEOM.SDO_CENTROID(gp.geoloc, 2) AS the_geom,
 id from gis_polygon gp
 *
 VIRHE rivillä 1:  # error on row 1:
 ORA-13226: interface not supported without a spatial index
 ORA-06512: at MDSYS.MD, line 1723
 ORA-06512: at MDSYS.MDERR, line 8
 ORA-06512: at MDSYS.SDO_3GL, line 70
 ORA-06512: at MDSYS.SDO_3GL, line 221
 
 -Jukka Rahkonen-
 
 
 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta
 Julian Wiersbitzki
 Lähetetty: 27. lokakuuta 2010 12:52
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] Best Practices for the Spatial Index
 with OracleDB 11gR2
 
 Hi List!
 
 I am new here in this list and with mapserver, so please tell
 me if my question is already a faq.
 
 We have mapserver 5.6.3 in use together with an Oracle DB
 11gR2 Standard Edtion. All works well so far and configuring
 layer with the mapfile is no problem. But we have two layers
 which use SDO-Function in the SELECT Statement, e.g.:
 
DATA the_geom from (SELECT
 SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM
 ereignis) USING SRID 31468
 or
DATA the_geom from (SELECT
 SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom,
 bezirksinspektion AS label FROM stadtbezirk GROUP BY
 bezirksinspektion) USING SRID 31468
 
 If I want to fetch one of these layers the mapserver tells me
 there is no spatial index. Normally we have spatial indexes
 on all our tables with SDO_GEOMETRY columns, e.g.:
 
 INSERT INTO user_sdo_geom_metadata VALUES (
   UPPER('ereignis'),
   UPPER('geometrie'),
   MDSYS.SDO_DIM_ARRAY(
 MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001),
 
 
 MDSYS.SDO_DIM_ELEMENT('Y',5324953.39701,5345694.05299,0.001)),
 31468);
 CREATE INDEX ereignis_geom_idx ON ereignis(geometrie)
 INDEXTYPE IS MDSYS.SPATIAL_INDEX;
 
 But how do I create a spatial index on SDO-functions in the
 database? Can I even do that? The documentations only
 describes spatial index on SDO_GEOMETRY columns, but not on
 spatial functions.
 
 What are the best practices for this kind of layers?
 
 TIA, Julian
 
 __
 
 Hamburger Berater Team GmbH   Handelsregister: HRB 31629
 Stadthausbrücke 3 (Fleethof)  Amtsgericht Hamburg
 20355 Hamburg Geschäftsführer:
 Fon:  040/369779-43   Ilse Habermann
 Fax:  040/369779-99   Hans-Joachim Habermann
 Mail: mailto:j...@hbt.de  Daniel Hoffmann
 __
 
 Internet:   http://www.hbt.de
 http://www.geofox.dehttp://www.geonetwatch.de
 __
 
 DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM
 Diese Email wurde mit ständig aktualisierten Virenscannern geprüft
 __
 
 Diese Email einschließlich eventuell angehängter Dateien
 enthält vertrauliche Informationen und ist ausschließlich
 für den bezeichneten Adressaten bestimmt. Wenn Sie nicht
 der richtige Adressat oder dessen Vertreter sind, verständigen
 Sie bitte sofort den Absender und löschen Sie dann diese Email
 und eventuell angehängte Dateien. Vielen Dank!
 Beachten Sie

Re: [mapserver-users] Re: mapserver and i18n

2010-10-07 Thread Smith, Michael ERDC-CRREL-NH
Would it be better to make then available for variable substitution?

gml_ID_alias %GML_ID_NO% # must be i18n
gml_NAME_alias %GML_NAME_ALIAS% # must be i18n


Mike


-- 
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH 




On 10/7/10 9:14 AM, Stephen Woodbridge wood...@swoodbridge.com wrote:

 I'm not sure that there is any reason that this:
   could not be coded like:
 
   gml_ID_alias Number # must be i18n
   gml_NAME_alias Name # must be i18n
 
 could not be coded like:
 
   gml_ID_alias_en_US Number # must be i18n
   gml_NAME_alias_en_US Name # must be i18n
   gml_ID_alias_fr  # must be i18n
   gml_NAME_alias_fr  # must be i18n
   gml_ID_alias_es  # must be i18n
   gml_NAME_alias_es  # must be i18n
 
 if someone wanted to make a change to mapserver to support it. I hate
 the idea of having multiple mapfiles for the same map. It is a huge cost
 to build and maintain and test them if you have to make changes or
 update them.
 
 -Steve W
 
 On 10/7/2010 4:06 AM, teeschke wrote:
 
 Hi Michael,
 
 thats a realy good idea for the attributes of the geodata. But what about
 
 LAYER
 NAME 'my_highway_layer'
 TYPE LINE
 DATA geom from data where lang='%lang%'
 METADATA
  ows_title highways # must be i18n
  ows_group_title Infrastructure # must be i18n
  wms_feature_info_mime_type text/html
  wms_server_version 1.1.1
  wms_format image/png
  wms_exceptions_format application/vnd.ogc.se_xml
  gml_featureid ID
  gml_include_items ID,NAME
  gml_ID_alias Number # must be i18n
  gml_NAME_alias Name # must be i18n
END #METADATA
CLASS
   NAME 'good'  # must be i18n
   COLOR 0 255 0
 END  # CLASS
CLASS
  NAME 'bad'  # must be i18n
  COLOR 255 0 0
END #CLASS
 END # LAYER
 
 I think the only solution is to provide one mapfile for each language.
 
 Thanks a lot and regards,
 Daniel
 
 ___
 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] FastCGI, MapServer and Apache on Linux

2010-09-01 Thread Smith, Michael ERDC-CRREL-NH
Nic,

In the 2010 benchmarking effort, we are using mod_fcgid with the latest
Apache. Here are the fcgi parameters we have in our conf file

IfModule fcgid_module
  FcgidInitialEnv LD_LIBRARY_PATH
/usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserverfull/lib:/oracle/instantcli
ent_11_2:/opt/mapserver/lib
  FcgidMinProcessesPerClass 0
  FcgidIdleScanInterval 1
  FcgidProcessLifeTime 10
  FcgidIOTimeout 100
  FcgidMinProcessesPerClass 0
/IfModule


Mike


-- 
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH 



On 9/1/10 10:43 AM, Nicolas Chenier nicolas.chen...@agr.gc.ca wrote:

 Thank you Jeff!
 
 So you mean to tell me that this old tutorial is still the baseline for
 FastCGI w/ Mapserver and Apache? This was written a while back, and seems to
 be specific to Apache 1.3... Does anyone know of any modifications that need
 to be done for Apache httpd 2.2? Any other/new optimizations to the fastCGI
 settings?
 
 Thanks,
 
 Nic
 
 
 
 On Wed, 2010-09-01 at 07:48 +0200, Jeff McKenna wrote:
 
 On 10-08-31 9:44 PM, Nicolas Chenier wrote:
  Good day all,
 
  I am fairly new at this, and I am seeking help.
 
  We are currently using a MapServer setup with Apache on Linux, supported
  by Tilecache.
 
  Due to the growing number of maps and tiles, we need to cut back on
  caching as we are running out of disk space to store the tilecache.
 
  We would like to use FastCGI to generate tiles on the fly with
  MapServer, Apache and our SDE db connection, all running on Linux.
 
  I am looking for the optimal way to get this setup, using the latest
  Mapserver release with Apache2.
 
  Is there an easy step-by-step guide on getting this setup? I have been
  searching through the web, the mapserver wiki and mailing list without
 luck.
 
  I am simply looking for the optimal FastCGI configuration settings,
  along with deployment instructions from scratch... doesn't have to be
  too detailed but just an outline of how we should proceed... Does
  anything need to be recompiled with FastCGI support, etc etc...
 
  I really appreciate the help.
 
 
 Hello,
 
 You will find instructions on this at:
 http://www.mapserver.org/optimization/fastcgi.html
 
 If, during your MapServer/FastCGI travels, you have additional notes to
 add to the documentation, it would be great if you could file a ticket
 on MapServer Trac and record your additional notes there
 (http://trac.osgeo.org/mapserver/) - if you do not have a login, create
 one at: https://www.osgeo.org/cgi-bin/ldap_create_user.py
 
 Happy travels.
 
 -jeff
 
 
 
 
 
 ___
 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] mapserver as a tiling client for an untiled WMS

2010-04-18 Thread Smith, Michael ERDC-CRREL-NH
Marco,

To use the GDAL WMS Minidriver, create an XML file like below and then
reference that xml file in your MapServer layer. For more info about the
format of the WMS xml, see here http://www.gdal.org/frmt_wms.html

Example xml
---

GDAL_WMS
  Service name=WMS
  Version1.1.1/Version
 ServerUrlhttp://hazards.fema.gov/wmsconnector/wmsconnector/com.esri.wms.E
srimap/NFHL?transparent=true/ServerUrl
SRSEPSG:4326/SRS
LayersFlood_Hazard_Zones_General/Layers
Stylesdefault/Styles
ImageFormatimage/gif/ImageFormat
/Service
DataWindow
UpperLeftX-180.0/UpperLeftX
UpperLeftY90.0/UpperLeftY
LowerRightX180.0/LowerRightX
LowerRightY-90.0/LowerRightY
TileLevel19/TileLevel
TileCountX2/TileCountX
TileCountY1/TileCountY
/DataWindow
ProjectionEPSG:4326/Projection
BlockSizeX1024/BlockSizeX
BlockSizeY1024/BlockSizeY
BandsCount3/BandsCount
 Cache
Path/htdocs/orm/gdalwmscache/Path
Depth2/Depth
Extension.gif/Extension
 /Cache
  AdviseReadtrue/AdviseRead
  VerifyAdviseReadtrue/VerifyAdviseRead
/GDAL_WMS



Mapfile section
---

LAYER
  NAME femaq3
  DATA /data/fema/fema_gen_wms.xml
  OFFSITE 255 255 255
  TYPE raster
  STATUS off
  PROJECTION
proj=latlong
ellps=GRS80
  END
  CLASS
  NAME 100 year floodplain
  SYMBOL 0
COLOR 255 0 0
  END
  CLASS
  NAME 500 year floodplain
  SYMBOL 0
COLOR 255 192 203
  END
END


-- 
Michael Smith
RSGIS Center
US Army Corps of Engineers



On 4/17/10 6:29 AM, DeDuikertjes deduikert...@xs4all.nl wrote:

 Dear List,
 
 In my mapserver maps (served as a WMS) I'd like to add a layer from an
 untiled WMS (not under my control).
 Simple enough, but this WMS restricts the returned images to a maximum
 number of pixels, and also restricts the scale (only scales larger than
 a certain scale is allowed). The maps I'd like to make of course exceeds
 the limit of pixels.
 
 The solution seems simple enough: chop up the request in a series off
 requests, and stich the returned images together. So basically this is a
 tiling approach. To complicate things a bit, the service is not
 spherical mercator.
 
 I guess I have to use the GDAL-WMS minidriver and/ or TileCache, but
 I've not a clue to how to proceed. Can anyone please point me to some
 usefull examples or give me a short explanation to work from?
 
 any help again greatly appreciated ...
 
 MArco
 ___
 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] mapserver as a tiling client for an untiled WMS

2010-04-18 Thread Smith, Michael ERDC-CRREL-NH
Marco,

  Correct, these will just be regular WMS requests and GDAL will stitch them
together. If you enable the cache, the images can be cached locally.

Mike


-- 
Michael Smith
RSGIS Center
US Army Corps of Engineers



On 4/18/10 3:04 PM, DeDuikertjes deduikert...@xs4all.nl wrote:

 Michael,
 
 Thank you.
 
 Do I understand correctly that this GDAL WMS Minidriver with this xml
 file for a given map area (bounding box) will do a series of normal
 WMS requests (as opposed to tiled WMS requests) to the server to
 obtain a set of tiles which will be stitched together and incorporated
 in the map?
 
 MArco
 
 
 Smith, Michael ERDC-CRREL-NH schreef:
 Marco,
 
 To use the GDAL WMS Minidriver, create an XML file like below and then
 reference that xml file in your MapServer layer. For more info about the
 format of the WMS xml, see here http://www.gdal.org/frmt_wms.html
 
 Example xml
 ---
 
 GDAL_WMS
   Service name=WMS
   Version1.1.1/Version
  ServerUrlhttp://hazards.fema.gov/wmsconnector/wmsconnector/com.esri.wms.E
 srimap/NFHL?transparent=true/ServerUrl
 SRSEPSG:4326/SRS
 LayersFlood_Hazard_Zones_General/Layers
 Stylesdefault/Styles
 ImageFormatimage/gif/ImageFormat
 /Service
 DataWindow
 UpperLeftX-180.0/UpperLeftX
 UpperLeftY90.0/UpperLeftY
 LowerRightX180.0/LowerRightX
 LowerRightY-90.0/LowerRightY
 TileLevel19/TileLevel
 TileCountX2/TileCountX
 TileCountY1/TileCountY
 /DataWindow
 ProjectionEPSG:4326/Projection
 BlockSizeX1024/BlockSizeX
 BlockSizeY1024/BlockSizeY
 BandsCount3/BandsCount
  Cache
 Path/htdocs/orm/gdalwmscache/Path
 Depth2/Depth
 Extension.gif/Extension
  /Cache
   AdviseReadtrue/AdviseRead
   VerifyAdviseReadtrue/VerifyAdviseRead
 /GDAL_WMS
 
 
 
 Mapfile section
 ---
 
 LAYER
   NAME femaq3
   DATA /data/fema/fema_gen_wms.xml
   OFFSITE 255 255 255
   TYPE raster
   STATUS off
   PROJECTION
 proj=latlong
 ellps=GRS80
   END
   CLASS
   NAME 100 year floodplain
   SYMBOL 0
 COLOR 255 0 0
   END
   CLASS
   NAME 500 year floodplain
   SYMBOL 0
 COLOR 255 192 203
   END
 END
 
 
   

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


Re: [mapserver-users] Query functions with Oracle Spatial

2010-04-05 Thread Smith, Michael ERDC-CRREL-NH
Daiane,

What version of Mapserver are you using? I suspect a version before 5.4 ( I
think that is when it changed ). The SE_ANNO_CAD_DATA field is a BLOB and
not a supported return type for queries. You can either upgrade to a newer
version of Mapserver which excludes BLOB fields or you can write a view to
exclude that column and query the view.

Mike


-- 
Michael Smith
RSGIS Center
US Army Corps of Engineers

 

On 4/5/10 12:33 PM, Daiane Azevedo de Fraga daiane.a.fr...@gmail.com
wrote:

 Hello!
 
 I tried to execute a query function through an interface. Appeared in the
 logfile: 
 [Mon Apr 05 11:09:19 2010] msOracleSpatialLayerGetShape .621000 ():
 OracleSpatial error. Error parsing OracleSpatial DATA is variable query. To
 execute query functions you need to define one unique column [USING UNIQUE #
 column] 
 
 I added the ID column, and now appears in the logfile:
 [Mon Apr 05 11:11:47 2010] .358000 msOracleSpatialLayerGetShape ():
 OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s
 returned %s. Query statement: SELECT ID, NBLOCK, SECTOR, BLOCK, ORIGIN, TYPE,
 NAME, SUPERCOURT, COURTS, OBSERVATION, AREA, REASON, DATA, REGISTRATION,
 SE_ANNO_CAD_DATA, SHAPE FROM LOTS WHERE ID = 43,192. Check your statement
 date.
 
 What can it be? It worked in some cases. The columns are apparently right...
 There may be some incompatibility factor?
 
 Thanks!
 
 --
 Daiane
 
 
 
 
 ___
 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] ANGLE [attribute]

2010-03-31 Thread Smith, Michael ERDC-CRREL-NH
ANGLE does work with Oracle Spatial.

Mike


-- 
Michael Smith
RSGIS Center
US Army Corps of Engineers




On 3/30/10 7:56 PM, Daniel Morissette dmorisse...@mapgears.com wrote:

 Daiane Azevedo de Fraga wrote:
 Hello everyone!
 
 I wonder if ANGLE accepts an attribute that comes from a table in a
 database, eg Oracle Spatial? Either he accepts only one attribute of a DBF?
 
 
 Yes, that should work for all connection types (but I didn't test oracle
 spatial specifically myself).
 
 Daniel

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


Re: [mapserver-users] SYMBOLSET does not work on Linux (CentOS 4.2), but FONTSET works

2009-11-22 Thread Smith, Michael ERDC-CRREL-NH
Your MS4W is an older version. The SYMBOLSET requirement started with
version 5.2.1.

Mike


On 11/22/09 8:21 AM, kreshna_icehe...@yahoo.com
kreshna_icehe...@yahoo.com wrote:

 It works now, thanks!
 
 I just wonder; why does such thing work in MS4W, while not in linux-based
 MapServer?
 
 
 --- On Sun, 11/22/09, Pavel Iacovlev iacovlev.pa...@gmail.com wrote:
 
 From: Pavel Iacovlev iacovlev.pa...@gmail.com
 Subject: Re: [mapserver-users] SYMBOLSET does not work on Linux (CentOS 4.2),
 but FONTSET works
 To: kreshna_icehe...@yahoo.com kreshna_icehe...@yahoo.com
 Cc: mapserver-users@lists.osgeo.org
 Date: Sunday, November 22, 2009, 8:55 AM
 Your symbols.sym file should start
 with a SYMBOLSET and end with END
 
 On Sun, Nov 22, 2009 at 3:48 PM, kreshna_icehe...@yahoo.com
 kreshna_icehe...@yahoo.com
 wrote:
 I have compiled MapServer 5.4.2, PHP 5.2.11, and
 Apache 2.2.14 on a CentOS 4.2 box. I also have compiled Geos
 3.11, GDAL 1.6.2, and Proj 4.7.0. Here is the result of
 mapserv -v:
 MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG
 OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ
 SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
 SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 
 I tried small PHP MapScript page to test it, as well
 as a simple mapfile. Everything works fine (including raster
 and PostGIS-stored maps), until I tried to use SYMBOLSET on
 my mapfile. It just doesn't work.
 
 All I got is a blank screen. The normal HTML part
 still shows, but everything from ?php $map =
 ms_newMapObj('mapfile') just disappears.
 
 By the way, I never got any error message with this
 compilation. It also happens with other kind of errors.
 
 First I thought that I put the ./symbols directory in
 the wrong place (or I refer to the directory wrong way), but
 I have tried everything ad nauseam. SYMBOLSET just doesn't
 work.
 
 Funnily enough, SYMBOLSET work flawlessly on my MS4W.
 Windows XP. MapServer 5.0.2, Apache 2.2.8, PHP 5.2.5.
 
 Here is the result of mapserv -v of the ms4w:
 MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG
 OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG
 SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
 SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG
 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 
 However, FONTSET works on both the Linux box and my
 Windows laptop.
 
 What happens? I attached the symbol.sym file. I think
 the .sym is pretty simple, why does it cause error?
 
 Thanks  Regards,
 -Kresh
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
 -- 
 http://iap.md,
 The future is open
 
 
 
   
 ___
 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] Build Errors; Currently msLoadMap(): Unknown identifier. First token must be MAP, this doesn't look like a mapfile.

2009-11-18 Thread Smith, Michael ERDC-CRREL-NH
Richard,

Add a new line to the beginning of your mapfile of just the word MAP.

Eg 
MAP
NAME Hello_World
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00 1.00 1.00

Its part of some security changes in the latest version of Mapserver. You
also need to add a SYMBOLSET to the top of symbol files and a new magic
token to templates

See here
http://mapserver.org/development/rfc/ms-rfc-56.html
For more info

Mike


-- 
Michael Smith
RSGIS Center
US Army Corps of Engineers




On 11/18/09 11:06 PM, Richard Marsden winw...@gmail.com wrote:

 Hello,
 
 I have been using MapServer for about 18 months to serve the base maps for
 EcoMapCostaRica.com, and more recently, equal-area-maps.com
 http://equal-area-maps.com .
 Originally, I had a lot of trouble building it for the FreeBSD environment
 used by my web host (Pair Networks), but a fellow user (Jason Birch) was able
 to help. I believe this was MapServer 5.2, but could be wrong.
 
 In the past week, Pair upgraded the version of FreeBSD/etc on my server, and
 not-unexpectedly this broke MapServer.
 I've had more success than last time, and I've managed to re-build MapServer.
 My build was based on Jason's original instructions, but library  MapServer
 versions were bumped to their latest (5.4.2 for MapServer). I also configured
 GDAL to use the internal implementations of libtiff and GeoTIFF, and I skipped
 PHP  (I don't use PHP MapScript).
 
 Although it built, the two map applications (both based on OpenLayers) are
 displaying white tiles instead of their correct MapServer-rendered maps. I've
 tried a few things, including trying to use 24 bit AGG-derived images
 (interestingly this results in slower display, implying that some of
 MapServer's rendering is working? just it isn't displaying anything?).
 
 I wasn't making much progress getting these completed applications to work, so
 I thought I would go 'back to basics' and try to get a simple Hello World to
 work. I've just re-entered the Hello World from Bill Kropla's Beginning
 MapServer book. The resulting hello.map and hello.html are included below.
 Needless to say, these are not working. I am getting the strange error of:
 
 msLoadMap(): Unknown identifier. First token must be MAP, this doesn't look
 like a mapfile. 
 
 What is wrong? I can't see anything wrong in my MAP file, unless something
 fundamental has changed in the past couple of versions?  Inserting a new line
 at the beginning with a MAP simply results in a parsing error on line 1!
 Is there something to look for in my build process?  I can post the MapServer
 config if that will help.
 
 Here is my Hello World HTML:  ( http://www.winwaed.com/playpen/hello.html )
 
 html
 headtitleMapServer Hello World/title/head
 body
 form method=POST action=/playpen/mapserv.cgi
   input type=submit value=Click Me
   input type=hidden name=MAP value=/myhomedir/playpen/hello.map
   input type=hidden name=map_web_imagepath
 value=/myhomedir/playpen/tmp/
 /form
 img src=[img] width=400 height=300 border=0
 /body
 /html
 
 
 And here is my hello.map file:  ( /playpen/hello.map )
 
 NAME Hello_World
 SIZE 400 300
 IMAGECOLOR 249 245 186
 IMAGETYPE png
 EXTENT -1.00 -1.00 1.00 1.00
 WEB
   TEMPLATE /myhomedir/playpen/hello.html
   IMAGEPATH /myhomedir/playpen/tmp/
   IMAGEURL /playpen/tmp/
 END
 LAYER
   STATUS default
   TYPE point
   FEATURE
  POINTS 0.0 0.0 END
  TEXT Hello World
   END
   CLASS
  STYLE
     COLOR 255 0 0
  END
  LABEL
     TYPE bitmap
  END
   END
 END
 END
 
 
 
 Fundamentally I am trying to get MapServer working on a Pair server
 installation (FreeBSD, etc), serving WMS tiles to OpenLayers MapServer layer
 objects. Source data are Shape files and GeoTIFF tiles. Image delivery is
 currently in the form of PNG, which is preferred over JPEG (too lossy) and GIF
 (okay for the shapefiles, but not the GeoTIFF-derived imagery).
 
 
 Hopefully someone has some clues as to what is wrong with the Hello World?
 If I can get this to work, it should give me some clues (or even fix) the main
 problems I'm having with my applications.
 
 
 Cheers,
 
 Richard Marsden
 http://www.winwaed.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] Mapserver consuming Google Maps

2009-08-26 Thread Smith, Michael ERDC-CRREL-NH
With the advent of the Bing WMS service, that will be the best solution, it
appears (for now).

Mike


On 8/26/09  3:01 PM, Christopher Schmidt crschm...@metacarta.com wrote:

 On Wed, Aug 26, 2009 at 01:25:11PM -0400, Smith, Michael ERDC-CRREL-NH wrote:
 What about using the Google Maps static API and making multiple calls and
 tiling? Is that within the TOS?
 
 The Google Maps static API doesn't let you pass in a bounding box, it lets
 you pas in a 'center and zoom'. The resulting tile will not always be
 centered exactly on that point such that it can be tiled, based on what
 I understand: Requests are still based around a grid, it's just not one
 that's obvious, iiuc.
 
 That said, I have no idea if this is within the Terms of Use.
 
 It also has other side effects; Google logo on each tile, etc. so it's not
 a great solution even if it does work, but would probably be better for
 desktop solutions which have a single view that they want to display
 data over, as I understand it.
 
 Regards,

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


Re: SV: [mapserver-users] Newbie feedback

2009-08-12 Thread Smith, Michael ERDC-CRREL-NH
Steve,

I have an OSGeo login and have created tickets in the past but was getting
this same error last night.

Mike


-- 
Michael Smith
RSGIS Center
US Army Corps of Engineers



On 8/12/09  1:03 PM, Steve Lime steve.l...@dnr.state.mn.us wrote:

 Have you created an OSGeo login? Visit
 http://www.osgeo.org/osgeo_userid. Once
 you have that you should have rights to create tickets in the MapServer
 trac instance.
 
 Steve
 
 On 8/12/2009 at 1:38 AM, in message
 2349cc72a0b01c4faa4ffae6c735e1dde29...@enerasrv01.enera.local, Lars
 Westerlind lars.westerl...@enera.se wrote:
 Hello Jeff,
 Thanks for clarifications.
 I don't have TICKET_CREATE privilege it says.
 Cheers,
 Lars
 
 -Ursprungligt meddelande-
 Från: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] För Jeff McKenna
 Skickat: 11 August 2009 20:34
 Till: mapserver-users@lists.osgeo.org
 Ämne: Re: [mapserver-users] Newbie feedback
 
 Hello Lars,
 
 My comments are inline below:
 
 Lars Westerlind wrote:
 Hello all,
 
 we newly installed Mapserver as ms4w installation on windows; and we
 are 
 very satisfied.
 
 great!
 
 
 We got up and running very fast, even though we are not fluent in
 the 
 techniques
 
 used (in Partiucar, Apache webserver). However, I want to share a
 few 
 small points that caused
 
 unnecessary problems.
 
  
 
 1. A suggestion where in the directory structure to put the mapfiles
 
 would be appreciated. If there are
 
 different meanings, give two or three scenarios. Also include the
 looks 
 of the URL reference to the mapfile.
 
 You should download the MS4W addon packed named PHP/MapScript Sample
 
 Application for an example directory structure.  Here is my advice:
 
 - place the application in /ms4w/apps
 - /apps/yourapp/ should contain:
  /data (your data files)
  /docs (any relevant docs)
  /etc  (font and symbol files)
  /htdocs (application files - often html, js, or php*)
  /maps (your mapfiles)
 
 
 2. Why not enclose a small working example with one simplest
 possible 
 mapfile and one shapefile set? And
 
 perhaps another more advanced mapfile with some common techniques
 exposed?
 
 MS4W tries to do that, by providing you working examples that you can
 
 play around with.
 
 
 3. Font handling caused me much problems. As it is a windows
 installation, it could be at least a insall note / readme
 describing
 
 where to search for the .ttf files. The Mapserver documentation
 doesn't 
 say anything about Windows, and in Windows you need not be very
 
 aware of where to find the font files, so it took some time to find
 out. 
 It appears that the documentation is not very clear either;
 
 I hade to create a fontset file and refer to it to get it work; the
 
 documentation hints that font references could be written in the
 fontset
 
 clause, but I didn't manage.
 
 The best way to provide feedback on documentation (and make sure it
 is 
 recorded) is to file a ticket in the MapServer tracker
 (http://trac.osgeo.org/mapserver/), using the MapServer
 Documentation 
 component.  It would be great help if your ticket could contain
 suggested text that should be added to the page you are referring to.
 
 Thanks!
 
 
 4. The default font handling (bitmap) was confusing as it appears to
 be 
 ascii based, where the
 
  true type font appears to be Unicode/UTF-8 based. When doing the
 correct 'encoding', the output was silly until I managed to handel
 the
 
 true type fonts correctly.
 
 Maybe to be included in your ticket's text?
 
 
 5. I would suggest more examples in the documentation, especially
 around 
 mapfile editing. In examles you
 
 would also get punctuation issues and such
 
 Please do provide any examples that you think are relevant.  You can
 
 also post examples and anything that you feel is helpful to others on
 
 the MapServer Wiki (see lower section of
 http://trac.osgeo.org/mapserver/)...it's an easy way to add to the
 documentation and help others quickly!
 
  
 
 I think that was my most important points I think.
 
 
 Thanks for the feedback, keep it coming! :)
 
 -jeff
 
 ___
 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] Oracle native / Oracle OGR

2009-07-10 Thread Smith, Michael ERDC-CRREL-NH
Thomas,

To solve the second issue, use a view.

Mike


-- 
Michael Smith
Remote Sensing GIS Center
CRREL - ERDC 
US Army Corps of Engineers
Hanover, NH




On 7/10/09 2:38 PM, Thomas Bonfort thomas.bonf...@camptocamp.com wrote:

 some of our clients have come up with a few quirks in the native
 oracle driver that should be taken into account:
 
 * the strings storing the fields returned by the database have a fixed
 length in mapserver, so that might have to be overridden at compile
 time if you are planning to return data longer than a certain value
 (2048 bytes from memory). For normal map rendering this shouldn't be a
 problem, but problems may arise when doing wfs queries and returning a
 paragraph of text for example in an attribute.
 
 * I haven't investigated this much more, but we've also had problems
 with long query strings (we're talking DATA mapfile strings of several
 kbytes here)
 
 regards,
 
 thomas
 
 www.camptocamp.com
 +33 4 79 26 57 97
 
 
 
 On Fri, Jul 10, 2009 at 17:59, Schlagel, Joel D
 IWRjoel.d.schla...@usace.army.mil wrote:
 For what it's worth - we've used the oracle direct connect in a production
 environment all day, every day for several years with no quirks to report.
 
 -joel
 
 
 
 On 7/10/09 11:36 AM, Frank Warmerdam warmer...@pobox.com wrote:
 
 YOUNESS ELMEDRAOUI wrote:
 Hello everybody,
 
 i have a question:
 what's the difference between a connection to oracle DB with native
 oraclespatial and OGR?
 performance, ...??
 
 Youness,
 
 Generally speaking the direct connection should be faster since it avoids
 a lot of OGR overhead.  They are completely distict implementations so
 you might find each has quirks and strengths though I can't really identify
 them off hand.
 
 Best regards,
 
 
 -joel
 
 --
 Joel D. Schlagel
 US Army Engineer Institute for Water Resources
 http://www.iwr.usace.army.mil
 
 
 ___
 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


Re: [mapserver-users] Grave performance issue with MapServer and GDAL/OCI driver

2009-06-29 Thread Smith, Michael ERDC-CRREL-NH
You can also try using the Mapserver direct Oracle connection rather than
going through OGR.

LAYER
  NAME aree_stradali
  STATUS DEFAULT
  TYPE POLYGON
  # Dati da connessione Oracle
  CONNECTIONTYPE ORACLESPATIAL
  CONNECTION username/sec...@localhost/sitfi02t
  DATA SPATIAL_COLUMN FROM REPLICA_TOPONOMASTICA.AGGR_AREESTRADA USING
UNIQUE OBJECTID
  # Dati da shapefile
  #DATA shape/toponomastica/aree_strada.shp
  PROJECTION
init=epsg:3003
  END
  DUMP TRUE
  METADATA
wfs_title aree_stradali
gml_featureid objectid
  END
  CLASS
STYLE
  COLOR 255 0 0
  WIDTH 1
END
  END
END


On 6/29/09 10:51 AM, Frank Warmerdam warmer...@pobox.com wrote:

 Niccolo Rigacci wrote:
 I experienced a severe performance problem with MapServer
 configured as WFS server, taking data from Oracle via GDAL/OCI
 driver.
 
 All the features take about 9.6 Mb of xml data (via WFS) or 8.4
 Mb of text data (via ogrinfo).
 
 Retrieving all the features via WFS from a shapefile takes less
 than one second, retrieving the same WFS from Oracle takes about
 470 seconds. Retrieving data via the ogrinfo utility takes about
 3 seconds:
 
 Tests are performed from the same Linux box, taking data in this
 way:
 
   1 s: wget - http - Remote_host - MapServer - GDAL - shapefile
 470 s: wget - http - Remote_host - MapServer - GDAL/OCI - localhost -
 Oracle
   3 s: ogrinfo - GDAL/OCI - Remote_host - Oracle
 
 It seems that wget (int the Oracle case) starts at about 400
 Kb/sec transfer rate, then it drops down to 13 Kb/sec a few
 seconds later.
 
 Does somebody have any idea where is the bottleneck? How can I
 debug such slodown?
 
 Niccolo,
 
 This is almost certainly due to the two-pass query approach in mapserver.
 On the first pass the id's of all features matching the query are collected
 and then the features are fetched, one by one, by id.  In the case of the
 oci driver in OGR a fetch by id issues an sql select statement.  So you are
 basically getting one sql select statement per features which is very
 inefficient.
 
 What you need if you want to do large amounts of feature query - such as for
 WFS - is the new one pass query mechanism that Steve is working on.  I'm not
 exactly clear on it's status.
 
 Note that this two pass query anti-optimization does not affect feature
 drawing which is accomplished in one pass.  It also does not significantly
 affect formats like shape where fetching by id's has no noticable overhead.
 
 Best regards,

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


Re: [mapserver-users] WMS Layer with secure http url

2009-05-06 Thread Smith, Michael ERDC-CRREL-NH
Rather than putting the username/password in the URL, you can use the
metadata fields for the authentication

METADATA
  wms_auth_username foo
  wms_auth_password {FF88CFDAAE1A5E33}
  wms_auth_type basic
END


Mike


On 5/6/09 8:39 AM, Alexandre Dube ad...@mapgears.com wrote:

 Thank you both for the tips, I'll try your solutions today.
 
 Alexandre
 
 Rahkonen Jukka wrote:
 Hi,
 When the certificate is OK the next thing to do is to change the connection
 URL so that it includes username and password. If I remember right the format
 is like https://username:passw...@foo.com/mapserv?
 
 -Jukka Rahkonen-
 
 
 
 Michael Smith wrote:
 
 
 Alexandre,
 
 What you need is the servers root certificate added to your libcurl certs.
 Its failing on validating the servers ssl certificate.
 
 The curl-config should list your cert directory and then you can add your
 cert there and it should validate.
 
 Mike
 
 
   
 

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


[mapserver-users] MS4W Mapserver 5.4 Beta 1

2009-02-23 Thread Smith, Michael ERDC-CRREL-NH
Jeff,

I've downloaded the ms4w mapserver 5.4 beta 1 update but it appears that the
Oracle 10g libmap.dll is compiled for a different version of gdal (v 1.5)
than the version in ms4w 2.3.1 (v 1.6). It works fine with the non Oracle 10g
libmap.

Mike

Mike Smith
RSGIS Center
ERDC - US Army Corps of Engineers
Hanover, NH
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ms4w (fastcgi) and oracle 10?

2008-11-18 Thread Smith, Michael ERDC-CRREL-NH
Zach,

Your DATA statement is almost correct. If you are going to use the UNIQUE
keyword (for supporting queries), you must put a column name after UNIQUE
and before the SRID.

Either of these would work:

DATA ' GEOM from STATES using UNIQUE ID srid 90112'

or

DATA ' GEOM from STATES using srid 90112'

Assuming you have a column named ID, of course.

Mike


-- 
Michael Smith
RSGIS Center
ERDC - CRREL
US Army Corps of Engineers




On 11/17/08  8:21 PM, zach cruise [EMAIL PROTECTED] wrote:

 troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll:
 shp2img -m oracle.map -o oracle.png -all_debug 10
 msOracleSpatialLayerOpen called with: GEOMETRY from STATES using
 unique srid 90112
 msOracleSpatialLayerOpen. Shared connection not available. Creating one.
 msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
 msOracleSpatialLayerFreeItemInfo was called.
 msOracleSpatialLayerWhichShapes was called.
 msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing
 OracleSpatial DATA variable. Must be:'geometry_column FROM table_name
 [USING UNIQUE column SRID srid# FUNCTION]' or 'geometry_column FROM
 (SELECT stmt) [USING UNIQUE column SRID srid# FUNCTION]'. If want to
 set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or
 NONE. Your data statement: GEOM from STATES using unique srid 90112
 
 On Mon, Nov 17, 2008 at 7:34 PM, zach cruise [EMAIL PROTECTED] wrote:
 btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than
 returning multiple ora- errors, 4.8 also returns web template
 error if i use /ignored-libmap/oracle10g/libmap.dll. this error is
 even for only shapefile maps. error goes away when i switch back to
 normal libmap.dll.
 
 On Mon, Nov 17, 2008 at 5:56 PM, zach cruise [EMAIL PROTECTED] wrote:
 looks like mod_fastcgi is not an option with ms4w and oracle 10.
 anyway it had little benefits.
 
 i now got mapserver 5.2 and 4.8:
 i thought 5.2 had native built-in support for oracle 10, but it is
 giving me OracleSpatial is not supported error. i also thought 4.8
 could get ogr support for oracle 10 by following the steps on
 
http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g
.
 4.8 connects, but returns multiple ORA- errors.
 
 so:
 do i have to install oracle 10 client locally and make changes to
 httpd.conf for 5.2 to work?
 how do i find correct srid for 4.8 to work? (DATA GEOMETRY from
 (select GEOMETRY from STATES where NAME = 'New York'))
 any performance difference between native built-in and ogr supports?
 
 On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna
 [EMAIL PROTECTED] wrote:
 zach cruise wrote:
 
 does current ms4w with fastcgi work with oracle 10?
 
 here're warnings
 http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi
 
 http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to1
 8394152.html
 in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3,
 but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: mod_fcgid: get
 overlap result error)
 
 if not, any workarounds?
 
 I tested and wrote that note...and am not aware of a workaround yet. You
 should also send this question to the MS4W mailing list (subscribe at:
 http://lists.maptools.org/mailman/listinfo/ms4w-users)
 
 
 --
 Jeff McKenna
 FOSS4G Consulting and Training Services
 http://www.gatewaygeomatics.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

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