Re: [mapserver-users] Problem with attribute query, multiple attributes

2012-11-29 Thread Fawcett, David (MPCA)
Since OGR accesses the GDB via ESRI's API/Library, it may (should) take advantage of attribute indexes built on the data with ArcMap. You should make sure that the feature classes in the GDB have attribute indexes on any column that you want to use as query criteria and that they have good

Re: [mapserver-users] SDE Connection

2012-09-11 Thread Fawcett, David (MPCA)
With earlier versions like 9.2, ESRI put the SDK install files out on their Web site. With some of the later versions, you need to have the install CDs. You didn't say what service pack version you are running with 9.2, but here is a page with the SDK for 9.2 sp2:

Re: [mapserver-users] retrieve map coordinates with different EPSG

2012-09-07 Thread Fawcett, David (MPCA)
I looked at the documentation because I haven't used in a while. The docs aren't clear, but seem to imply that MAPXY should return coordinates in the same spatial reference system as the layer that you are querying. I kind of think that they should be in the spatial reference system of the

Re: [mapserver-users] label MINSCALEDENOM, MAXSCALEDENOM usage

2012-08-30 Thread Fawcett, David (MPCA)
You may want to read the mapfile documentation. Here is the page for layers: http://mapserver.org/mapfile/layer.html I would also suggest only sending messages to one of the mapserver lists at a time. David. From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] mapserver user can not make the shapefile data correctly show in the browser

2012-08-22 Thread Fawcett, David (MPCA)
Yang Li, You may want to try to use a relative URL for the IMAGEURL. Try changing it from: IMAGEURL /output/ To: IMAGEURL output/ David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of ?? Sent: Wednesday, August 22, 2012 11:50 AM

Re: [mapserver-users] validation block

2012-08-21 Thread Fawcett, David (MPCA)
I do something like the second example in one of my applications. I send the comma-delimited string for use as part of the IN statement. This basically allows you to symbolize features from your spatial data set based on data passed in through the URL. I pass these URL vars:

Re: [mapserver-users] Reading a custom GDAL raster format via MapServer...

2012-08-09 Thread Fawcett, David (MPCA)
Is MapServer using the same GDAL as the commandline GDAL that can successfully open the file? From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Shri I Sent: Thursday, August 09, 2012 9:49 AM To: mapserver-users@lists.osgeo.org Subject:

Re: [mapserver-users] World File's

2012-06-19 Thread Fawcett, David (MPCA)
Maybe convert to planar coordinates, calculate the other corners based on distance and then convert back to LCC? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeff Lake Sent: Tuesday, June 19, 2012

RE: [mapserver-users] elevation profile

2012-05-07 Thread Fawcett, David (MPCA)
Thanks Puneet. Very nice looking app. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mr. Puneet Kishor Sent: Saturday, May 05, 2012 1:15 PM To: mapserver Subject: Re: [mapserver-users] elevation profile The

RE: [mapserver-users] No map in preview

2012-03-28 Thread Fawcett, David (MPCA)
If you are really trying to get a Geoserver instance running, I would suggest the Geoserver mailing list.. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dott. Scolavino Alessandro Sent: Wednesday,

RE: [mapserver-users] RE: HI

2012-03-21 Thread Fawcett, David (MPCA)
I haven't tested it, but try something like this: LAYER NAME 'gtroads' TYPE LINE DUMP false EXTENT -143.208273 40.614882 -50.461099 84.297613 DATA '../Data/gtroads.shp' METADATA 'ows_title' 'gtroads' END STATUS DEFAULT #TRANSPARENCY 100 # TRANSPARENCY is

RE: [mapserver-users] Aligning labels within a polygon

2012-02-21 Thread Fawcett, David (MPCA)
If you are storing the data in PostGIS, you could possibly take advantage of ST_Azimuth(). http://www.postgis.org/docs/ST_Azimuth.html It takes two point objects as the args, but you could potentially use the start and end points of your linestring. David. From:

RE: [mapserver-users] Aligning labels within a polygon

2012-02-21 Thread Fawcett, David (MPCA)
rendering time. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Tuesday, February 21, 2012 11:18 AM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Aligning labels

RE: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly?

2012-02-14 Thread Fawcett, David (MPCA)
Great work Jukka (and Even). Thanks for pursuing this!! David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, February 14, 2012 2:24 AM To: 'mapserver-users@lists.osgeo.org'

RE: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly?

2012-02-13 Thread Fawcett, David (MPCA)
A pretty good story to tell when talking about the advantages of OpenSource software... -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Saturday, February 11, 2012 3:43 PM To: Even

RE: [mapserver-users] Shapefiles not rendered

2012-01-13 Thread Fawcett, David (MPCA)
Juan, The projection block at the map level specifies 4326 as the spatial reference system, but the units of your extent look like they are in meters, not decimal degrees. This may be involved in the issue, or maybe not, but it would screw up a regular MapServer CGI request if you don't

RE: [mapserver-users] ticket for 'trimlast'?

2011-12-13 Thread Fawcett, David (MPCA)
for a change in the documentation at: http://mapserver.org/output/template_output.html David. -Original Message- From: Puneet Kishor [mailto:punk.k...@gmail.com] Sent: Thursday, October 20, 2011 4:15 PM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver

RE: [mapserver-users] Attribute query at geographic coordinate

2011-11-14 Thread Fawcett, David (MPCA)
If you didn't need to use WFS and just wanted to do MapServer queries, you could put together a template that would build you a list. Take a look at the examples on this page: http://mapserver.org/output/template_output.html The JSON example is probably the most applicable. Like others have

RE: [mapserver-users] subsetted output, but I don't want that

2011-11-09 Thread Fawcett, David (MPCA)
Is the raster georeferenced? It kind of sounds like it is using pixel coordinates instead of coordinates from a spatial reference system. What do you get if you run gdalinfo on the image file? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] subsetted output, but I don't want that

2011-11-09 Thread Fawcett, David (MPCA)
-0.03 -179.98 89.98 David. -Original Message- From: Kevin Ward [mailto:kablu...@gmail.com] Sent: Wednesday, November 09, 2011 1:47 PM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users

RE: [mapserver-users] subsetted output, but I don't want that

2011-11-09 Thread Fawcett, David (MPCA)
To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] subsetted output, but I don't want that No, it's just a plain PNG. I was operating under the assumption that the EXTENT and UNITS parameters in the mapfile would define the coordinates of the source image

[mapserver-users] OpenLayers JSONP getFeatureInfo

2011-11-03 Thread Fawcett, David (MPCA)
I posted a similar question to the OpenLayers list, but know that there isn't complete overlap. Can anyone point me to an example that uses JSONP to get around the same origin policy when making a getFeatureInfo request from OpenLayers to MapServer? Is it possible? Thanks, David.

RE: [mapserver-users] default values if not provided in the URL

2011-10-27 Thread Fawcett, David (MPCA)
Two hackish thoughts: 1. Utilize a pair of mapfiles. The first one has all of the classes on by default. The second one has all of the class with STATUS OFF. On the client side, you determine if you have any class args and route the request to the appropriate mapfile. If the client has a

RE: [mapserver-users] MS template file extensions

2011-10-26 Thread Fawcett, David (MPCA)
At the same time, I don't believe that a template will get handed off to the php, java, etc. engine after processing by MapServer. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Puneet Kishor Sent:

[mapserver-users] qlayer for multiple layers

2011-10-20 Thread Fawcett, David (MPCA)
I know that this is a simple question, but I can't find any confirmation. If I want to do a point query on multiple layers, I know that I can set all layer STATUS to DEFAULT. Is it possible to query some of the layers (status=ON) by identifying them in the URL. For example, something like

[mapserver-users] ticket for 'trimlast'?

2011-10-20 Thread Fawcett, David (MPCA)
I also can't get trimlast=',' to remove the trailing comma in a json formatted query result. [resultset layer=stations] { stations: [ [feature trimlast=','] { name: [NAME], stationId: [STATION_ID }, [/feature] ] } [/resultset]

RE: [mapserver-users] Chart Layers

2011-10-14 Thread Fawcett, David (MPCA)
I am guessing that this person is looking at layers of TYPE CHART. http://mapserver.org/output/dynamic_charting.html#dynamic-charting I don't see any discussion of querying CHART layers in the above URL or in the section on TYPE in the LAYER docs: http://mapserver.org/mapfile/layer.html

RE: [mapserver-users] gradient display of raster DEM data

2011-10-14 Thread Fawcett, David (MPCA)
John, Take a look at the gdaldem utility. http://www.gdal.org/gdaldem.html You likely already have it on your machine already. Aside from being able to generate data products like slope grids, it can produce hillshade images or color relief maps. David. From:

[mapserver-users] Expressions on Cluster Objects

2011-10-12 Thread Fawcett, David (MPCA)
I have been playing around with the new cluster functionality a little bit. I am looking for way to classify the clusters based on their feature counts. E.g. larger circles for clusters of 10 features and even larger circles for clusters of 100 features. Because Cluster:FeatureCount

RE: [mapserver-users] Expressions on Cluster Objects

2011-10-12 Thread Fawcett, David (MPCA)
TRUETYPE SIZE 8 COLOR 255 255 255 END END END From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Wednesday, October 12, 2011 2:53 PM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org

RE: [mapserver-users] Using a Symbol instead of text for a label

2011-09-28 Thread Fawcett, David (MPCA)
Matt, I haven't fully thought it through, but maybe the new Cluster functionality might work for this. You could have a generic park symbol for the cluster symbol. http://mapserver.org/mapfile/cluster.html David. From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] File Geodatabase - Feature Dataset

2011-09-23 Thread Fawcett, David (MPCA)
Craig, Do you have an instance of OGR that can read ESRI's proprietary File Geodatabase format? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Craig Anderson Sent: Friday, September 23, 2011 9:52

RE: [mapserver-users] Re: passing values to mapfile

2011-09-21 Thread Fawcett, David (MPCA)
http://mapserver.org/mapfile/class.html?highlight=validation You need to set up a validation block with an expression that will match the value of the variable that you are passing through the GET request. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] Image Pyramid with gdal_retile and two UTM zones

2011-09-20 Thread Fawcett, David (MPCA)
The problem is that both images are showing up in the same UTM Zone. A quick glance at the gdal_retile.py doc page indicates that all of the input tiles need to be in the same spatial reference system. http://www.gdal.org/gdal_retile.html I assume that you could reproject one of your tiles

RE: [mapserver-users] RE: Image Pyramid with gdal_retile and two UTM zones

2011-09-20 Thread Fawcett, David (MPCA)
For performance, you will want the imagery pre-warped into one spatial reference system. (The same SRS as your output SRS.) I don't know if you will want the output SRS to be one of the two UTM Zones, or if you want to choose a different SRS. David. -Original Message- From:

RE: [mapserver-users] MapScript WMS request

2011-09-09 Thread Fawcett, David (MPCA)
Puneet, As far as I know, OpenLayers still has support for a layer based on MapServer CGI. Because MapServer can also serve up WMS well, this layer type isn't necessarily recommended or as well supported. http://dev.openlayers.org/docs/files/OpenLayers/Layer/MapServer-js.html David.

RE: [mapserver-users] MapScript WMS request

2011-09-09 Thread Fawcett, David (MPCA)
. Puneet Kishor Sent: Friday, September 09, 2011 9:35 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MapScript WMS request On Sep 9, 2011, at 8:39 AM, Fawcett, David (MPCA) wrote: Puneet, As far as I know, OpenLayers still has support for a layer based on MapServer CGI

RE: [mapserver-users] MapScript WMS request

2011-09-09 Thread Fawcett, David (MPCA)
DNS issue, should be fixed by Monday... ; (' -Original Message- From: Mr. Puneet Kishor [mailto:punk.k...@gmail.com] Sent: Friday, September 09, 2011 10:00 AM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MapScript WMS request David

RE: [mapserver-users] how to define the CLASSITEM and EXPRESSION in this case?

2011-09-08 Thread Fawcett, David (MPCA)
Have you looked at this page in the documentation? http://mapserver.org/mapfile/expressions.html#arithmetic-operations-and-functions-that-return-a-number You should be able to do this. You wouldn't use a CLASSITEM, just an expression. Create individual classes for green, yellow, and red.

RE: [mapserver-users] Map size question?

2011-08-18 Thread Fawcett, David (MPCA)
Chris, If you are in tile mode, I assume that you probably don't want an embedded legend on each tile. Have you thought about doing a separate call/request/object for the legend? If you were doing this via CGI, I would recommend doing a separate mode=legend request. David. From:

RE: [mapserver-users] free multilayer GIS data

2011-08-17 Thread Fawcett, David (MPCA)
For data at a smaller scale, you may also want to look at the Natural Earth data sets. Raster and vector, clean data, with attributes, liberal (Public Domain) license. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim

[mapserver-users] PDF Generation - file suffix?

2011-08-17 Thread Fawcett, David (MPCA)
I don't want to pollute Jukka's thread about large .pdf creation, so I am forking it. The .pdf file generated by his request renders fast and looks nice, but the file doesn't have a .pdf suffix. This confused my browser and didn't automatically associate the file with Acrobat Reader.

RE: [mapserver-users] Web application error. Malformed template name

2011-08-16 Thread Fawcett, David (MPCA)
Dara, Can you share the part of your mapfile that describes this layer? David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dara Olson Sent: Tuesday, August 16, 2011 9:01 AM To: mapserver-users@lists.osgeo.org Subject:

RE: [mapserver-users] Web application error. Malformed template name

2011-08-16 Thread Fawcett, David (MPCA)
Dara, I am pretty sure that relative paths work for templates, but for testing purposes, try using the absolute path to the template. David. From: Dara Olson [mailto:dol...@glifwc.org] Sent: Tuesday, August 16, 2011 10:03 AM To: Fawcett, David (MPCA); mapserver-users@lists.osgeo.org Subject

[mapserver-users] runtime substitution - class name

2011-08-16 Thread Fawcett, David (MPCA)
Is it still possible to runtime-sub a class name in 6.0.1? I used to do it like this in 4.x: http://myserver/cgi-bin/mapserv?mode=legendmap=mymap.mapmap_basemap_class_0_name=fitger I am trying to do it like this in 6.0.1:

[mapserver-users] RE: runtime substitution - class name

2011-08-16 Thread Fawcett, David (MPCA)
] On Behalf Of Fawcett, David (MPCA) Sent: Tuesday, August 16, 2011 3:05 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] runtime substitution - class name Is it still possible to runtime-sub a class name in 6.0.1? I used to do it like this in 4.x: http://myserver/cgi-bin/mapserv

RE: [mapserver-users] WFS Spatial Filter Problem

2011-08-09 Thread Fawcett, David (MPCA)
Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/debugging.html#debugging David. From:

RE: [mapserver-users] Plotting points as a line from sqlite database

2011-07-28 Thread Fawcett, David (MPCA)
:41 PM To: Fawcett, David (MPCA); Stephen Woodbridge; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database Gents, Thanks for these ideas, however I cannot seem to find a MakeLine function in spatialite 2.4.0. Where should I be looking

RE: [mapserver-users] diffferent map image size for different layer

2011-07-21 Thread Fawcett, David (MPCA)
I assume that you could handle it on the client side by adjusting your calls to mapserver based on which layers you have selected. e.g. layer=riversimgsize=200+200 or layer=lakesimgsize=1000+1000 David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] Plotting points as a line from sqlite database

2011-06-30 Thread Fawcett, David (MPCA)
ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-adjacent.html Another example is in this thread from the

RE: [mapserver-users] Query-wrong results in IE8 if zoomsize is not 100%

2011-06-29 Thread Fawcett, David (MPCA)
This sounds like a client issue, not a MapServer issue. What client are you using? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tipatino Sent: Wednesday, June 29, 2011 1:26 PM To:

RE: [mapserver-users] RE: Query-wrong results in IE8 if zoomsize is not 100%

2011-06-29 Thread Fawcett, David (MPCA)
I can reproduce it in both IE8 and FF3. Not sure what the issue is. I switched to the townships layer to make sure that it wasn't a tolerance issue in querying a point feature. Obviously, they guy who built this page knows nothing about MapServer ; / David. -Original Message-

RE: [mapserver-users] color standards in layers

2011-06-24 Thread Fawcett, David (MPCA)
You may also want to look at ColorBrewer: http://colorbrewer2.org/ It is very useful in helping you decide on color themes for maps. It will also provide you with the color codes (RGB or Hex) that you can use directly in MapServer. David. -Original Message- From:

RE: [mapserver-users] Mapserver 6.0 WMS

2011-06-16 Thread Fawcett, David (MPCA)
Chris, I can't find that ticket either, but this should help. Look at: http://mapserver.org/MIGRATION_GUIDE.html#ogc-web-services And this: http://mapserver.org/development/rfc/ms-rfc-67.html David. From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] Simple mapserver HTML template file?

2011-06-09 Thread Fawcett, David (MPCA)
it at your WMS. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/lite.html David. -Original Message- From: Gerry Creager [mailto:gerry.crea...@tamu.edu] Sent: Thursday, June 09, 2011 10:50 AM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users

RE: [mapserver-users] purchasing satellite imagery

2011-06-09 Thread Fawcett, David (MPCA)
Where on the globe is this municipality? That may determine the availability, resolution, cost of the imagery. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Esmin Gracic Sent: Thursday, June 09, 2011 12:35 PM To:

[mapserver-users] Hwy Shields

2011-06-01 Thread Fawcett, David (MPCA)
Does anyone have a highway shield example map file and symbol set that they are willing to share? Thanks, David. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

RE: VS: [mapserver-users] Mapserver search performance

2011-05-03 Thread Fawcett, David (MPCA)
I was thinking the same thing... You could either just import the shapefiles or use the virtual shape functionality. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Korver Sent: Tuesday, May 03,

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Fawcett, David (MPCA)
One potential way to do it would be with the use of 'include's. http://mapserver.org/mapfile/Include.html The primary mapfile wouldn't have a connection object, but it would contain: INCLUDE connect_info.map Then on each machine, you would have a different version of connect_info.map that

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Fawcett, David (MPCA)
The file inc_data_majclip.map contains: DATA majclip Based on this, I would assume that you should be able to do the same with the CONNECTION for each of your layers. David. From: Nicolas BOUTET [mailto:nicolas.bou...@geosys.com] Sent: Friday, April 29, 2011 9:49 AM To: Fawcett, David (MPCA

RE: [mapserver-users] multiple layers in a class

2011-04-27 Thread Fawcett, David (MPCA)
Mukesh, If you want to symbolize SMALL PIG and BIG PIG differently, you will need two classes. A class is used to select features that match the (optional) class expression. You can have multiple styles within a class, but they would be applied equally to all of the features in that class.

RE: [mapserver-users] multiple layers in a class

2011-04-27 Thread Fawcett, David (MPCA)
No. That is what classes are for. What is your concern about using multiple classes? From: Mukesh Subedee [mailto:msube...@yahoo.com] Sent: Wednesday, April 27, 2011 3:41 PM To: Fawcett, David (MPCA); mapserver mailing list Subject: Re: [mapserver-users] multiple layers in a class Oops, my bad

RE: [mapserver-users] Problem with cascading WMS reprojection

2011-03-24 Thread Fawcett, David (MPCA)
Should the MAP PROJECTION block be in the MAP object? -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of William Hudspeth Sent: Thursday, March 24, 2011 12:50 PM To: mapserver-users@lists.osgeo.org Cc:

RE: [mapserver-users] Spherical Mercator Projection Problem

2011-02-24 Thread Fawcett, David (MPCA)
Sergey, If your data is in epsg:4326 and you want to publish the data as epsg:3785, you will need to projection blocks to your layers. Something like: PROJECTION init=epsg:4326 END The Projection block in the MAP section defines your output projection. Because your data is

RE: [mapserver-users] Clip Raster with a Polygon

2011-02-18 Thread Fawcett, David (MPCA)
I have done this with static mask images. It wouldn't be hard to pass the ID of the feature that you want to be the 'hole' in the URL and then use that url variable in an expression for that layer/class . David. From: mapserver-users-boun...@lists.osgeo.org

[mapserver-users] RE: polygon tool

2011-02-17 Thread Fawcett, David (MPCA)
You might want to look at OpenLayers. www.openlayers.orghttp://www.openlayers.org Here is a basic example that allows you to draw some vector features and then select them by drawing a box. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/select-feature.html David. From:

RE: [mapserver-users] Looking for mobile WebMapping-Applications

2011-02-17 Thread Fawcett, David (MPCA)
Kai, Take a look at this page. http://wiki.osgeo.org/wiki/Mobile_Solutions Near the bottom of the page is list of current projects. I don't know how current it is, but it is a pretty good start. David -Original Message- From: mapserver-users-boun...@lists.osgeo.org

[mapserver-users] RE: polygon tool

2011-02-17 Thread Fawcett, David (MPCA)
I assume that with php and MapScript you still need to have some client-side code (javascript or flash/Silverlight) for the draw and select tool. David. From: Bistrais, Bob [mailto:bob.bistr...@maine.gov] Sent: Thursday, February 17, 2011 8:58 AM To: Fawcett, David (MPCA); mapserver-users

RE: [mapserver-users] capability to reproject to 2 different projections within the map object of the map file

2011-01-21 Thread Fawcett, David (MPCA)
I believe that in CGI mode, you can only have one output projection, so your approach won't work. You can support multiple SRS/projection in WMS mode. To do this, you put multiple SRS codes in the wms_srs metadata for a layer. You might be able to change the map projection on the fly by

RE: [mapserver-users] ArcGIS Server layer

2011-01-12 Thread Fawcett, David (MPCA)
For Option #2, you need to have a MapServer instance that is built with SDE support. SDE support isn't there 'by default', so if you want to make direct SDE connections, you will want to take this into account when you are installing MapServer. David. From:

RE: [mapserver-users] DATA and SUBSET keywords

2010-12-20 Thread Fawcett, David (MPCA)
Stephan, This might be some newer syntax that I haven’t seen before, but I would try it a different way: DATA “'locaux_etj6_poly” FILTER (“[unite]” == “SCTA” AND “[dur_occ]” == “permanent”) Note: This is no longer using LIKE, but because you didn’t have any wildcards in your original

RE: [mapserver-users] Mapserver Google Maps

2010-12-20 Thread Fawcett, David (MPCA)
Rashad, The short answer is, you can't do it. (That might be the long answer too.) From a technical standpoint MapServer can't consume tiles directly from Google and from a legal standpoint, when you accept Google's terms of service, you agree to not do something like this. If you want to

RE: [mapserver-users] OGR data layer type - points and lines

2010-12-20 Thread Fawcett, David (MPCA)
driver works and if it can accept geometries created on-the-fly, or if they need to come from a geometry column. David. -Original Message- From: Fawcett, David (MPCA) Sent: Friday, December 17, 2010 10:23 AM To: 'Stephen Woodbridge'; Ian Walberg Cc: mapserver-users@lists.osgeo.org Subject

RE: [mapserver-users] OGR data layer type - points and lines

2010-12-17 Thread Fawcett, David (MPCA)
Ian, I thought that there was a pretty simple answer to this, but it seems as though I have imagined some non-existing functionality. Assuming that you have a Spatialite db containing a point data set, and you have a MapServer layer that draws this, I think that I have a solution for you.

RE: [mapserver-users] OGR data layer type - points and lines

2010-12-17 Thread Fawcett, David (MPCA)
I guess I spoke a little too soon... When I attempted to test this data definition, I got a mapserv.exe crash. I am using a recent version of MSW4. Also, in looking a little bit at the OGR driver page for sqlite: http://www.gdal.org/ogr/drv_sqlite.html, I am guessing that the driver can't

RE: [mapserver-users] OGR data layer type - points and lines

2010-12-17 Thread Fawcett, David (MPCA)
Steve, I need to do some more testing before I can report a bug. I have both OSGEO4W and MS4W installed on this machine and I was actually using the MapServer (5.4) from MS4W. I want to get a clean install and test before reporting this as a bug. I have a Spatialite point layer

RE: [mapserver-users] Join from SHP file to PostgreSQL table

2010-11-29 Thread Fawcett, David (MPCA)
Flavio, Take a look at this page if you haven't: http://mapserver.org/mapfile/join.html Under 'Description', it mentions that you can't use joined data to 'affect the look of a map'. I am pretty sure that this rules out your case. David. -Original Message- From:

RE: [mapserver-users] Re: Raster Data from PostGIS

2010-11-29 Thread Fawcett, David (MPCA)
If I remember correctly, you can use a PostGIS data set as a tileindex. Perhaps it would be possible to have a PostGIS polygon layer that serves as the tileindex with a where clause that only includes the footprint polygons for the rasters that a particular user should be able to see. Has

RE: [mapserver-users] Re: Join from SHP file to PostgreSQL table

2010-11-29 Thread Fawcett, David (MPCA)
Your client has some pretty custom requirements. How current does the data published by the Web server need to be? Could it be refreshed nightly or hourly, or do changes to the data have to be immediately reflected in on the Web? From: mapserver-users-boun...@lists.osgeo.org

[mapserver-users] Compiling Trunk - problems with gifs

2010-11-28 Thread Fawcett, David (MPCA)
I am working on compiling a pretty stripped down mapserv binary based on trunk (11/25) on CentOS 5. I successfully compiled GD with jpeg, png, and freetype support. Gdlib-config --features returns GD_JPEG, GD_FREETYPE, GD_PNG, GD_GIF, GD_GIFANIM, GD_OPENPOLYGON. When I try to compile

RE: [mapserver-users] Label backgroundcolor

2010-11-19 Thread Fawcett, David (MPCA)
] On Behalf Of Michael Schulz Sent: Friday, November 19, 2010 4:35 AM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Label backgroundcolor Hi David, not sure, but have you tried using/increasing the BUFFER value of the label? Cheers, Michael 2010/11/18

[mapserver-users] RE: querying multiple features in a layer

2010-11-19 Thread Fawcett, David (MPCA)
If you are saying that you are getting multiple querymaps back, try moving the querymap to the query header or footer template. (Or maybe outside of the [feature] block if you are using a modern MapServer query template) David. -Original Message- From:

[mapserver-users] Label Position Binding?

2010-11-19 Thread Fawcett, David (MPCA)
I am just wishing here, but I don't suppose that attribute binding is supported for label position is it? (and the docs just haven't been updated...) David. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org

[mapserver-users] Label backgroundcolor

2010-11-18 Thread Fawcett, David (MPCA)
I know that you can set a shadow for the backgroundcolor (billboard). Can you increase the size of the billboard? E.g. 5 pixels all of the way around? Thanks, David. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org

RE: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS

2010-11-09 Thread Fawcett, David (MPCA)
Matt, It looks like Steve Lime's regular expression example will get you what you are looking for. One strategy to think about with MapServer (and any other Web map server) is that when you are looking for the best performance, you want to pre-process your data as much as possible. This

RE: [mapserver-users] Real life sample of a Mapfile for shp files on WMS

2010-11-08 Thread Fawcett, David (MPCA)
Matt, It sounds like you have several different line layers and they are all currently being displayed in the default style (and that looks kind of crappy)... To make your data look better, you can use classes and styles within your layers. If you want all of the features within a layer to

RE: [mapserver-users] Tiger line file and mapserver

2010-11-05 Thread Fawcett, David (MPCA)
to be in the output SRS, but you can make your map rendering more efficient by pre-projecting the data to the output SRS. David. From: Adam Eskreis [mailto:aeskr...@gmail.com] Sent: Friday, November 05, 2010 12:12 PM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver

[mapserver-users] RE: DEM display

2010-11-04 Thread Fawcett, David (MPCA)
I would pre-render all of my hillshades and then add them as simple raster layers. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David Hildebrand Sent: Wednesday, November 03, 2010 6:25 PM To: mapserver-users@lists.osgeo.org

[mapserver-users] RE: Tool for configure mapfile

2010-11-03 Thread Fawcett, David (MPCA)
One approach is to create files for each layer or chunk of code and then use includes to pull them into a master map file. http://mapserver.org/mapfile/Include.html David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] postgis to spatile-ogr

2010-10-21 Thread Fawcett, David (MPCA)
I looks like with gdal 1.7, spatialite support has improved. If you need to support layers based on queries that link geometry tables with attribute tables, spatialite could still potentially work. I haven't tested out a spatialite layer yet though. http://www.gdal.org/ogr/drv_sqlite.html

RE: [mapserver-users] The order of Classes in A Layer

2010-10-20 Thread Fawcett, David (MPCA)
You could try putting an ORDER BY in your PostGIS layer definition to order it by area descending. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ibrahim Saricicek Sent: Wednesday, October 20, 2010

RE: [mapserver-users] WMS Request for a single point?

2010-10-12 Thread Fawcett, David (MPCA)
-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Robert Hicks Sent: Tuesday, October 12, 2010 8:06 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org; Fawcett, David (MPCA) Subject: Re: [mapserver-users] WMS Request for a single point? Ok

RE: [mapserver-users] WMS Request for a single point?

2010-10-08 Thread Fawcett, David (MPCA)
This example works: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.mapmode=mapmap_layer[0]=FEATURE+POINTS+27+696000+END+END You can access your layer through the layer name or it's (zero-based) index. The simple example layer is below with a simple circle symbol defined in

RE: [mapserver-users] Get the legend of a layer .map file

2010-09-23 Thread Fawcett, David (MPCA)
If your request URL string currently includes mode=map, change it to mode=legend From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of michele pierri Sent: Thursday, September 23, 2010 10:12 AM To: Bob Basques;

RE: [mapserver-users] CGI returning a 502 error

2010-09-21 Thread Fawcett, David (MPCA)
According to the docs, starting with MapServer 5.0, there is no limit to the number of layers in a mapfile. http://mapserver.org/introduction.html#layer-object I am guessing that you are running into a different issue. Have you captured the post request string and examined it to make sure

FW: [mapserver-users] Symbology

2010-09-21 Thread Fawcett, David (MPCA)
Apologies for the dup, my original response got embargoed due to the large image included… From: Fawcett, David (MPCA) Sent: Tuesday, September 21, 2010 9:13 AM To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams' Subject: RE: [mapserver-users] Symbology I think

RE: [mapserver-users] Could not read data from MySQL database

2010-09-17 Thread Fawcett, David (MPCA)
I don't know if this applies to your case at all. In other cases where people have had mysql connections fail, it has sometimes been due to the lack of mysql support in ogr. One question to figure out is whether the ogr being used by MapServer is the same ogr that you are hitting when you run

RE: [mapserver-users] Symbology

2010-09-16 Thread Fawcett, David (MPCA)
You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your symbols.sym file. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] Dynamically draw different sized ellipses on map

2010-09-08 Thread Fawcett, David (MPCA)
It sounds like you really want to define polygons in an orthogonal projection and then re-project them to geographic to show the distortion. Unless you calculate the appropriate distortion for a particular coordinate and then can pass in the x and y radii for an ellipse symbol, I think that

RE: [mapserver-users] RE: Dynamically draw different sized ellipses on map

2010-09-08 Thread Fawcett, David (MPCA)
I think that others will be able to answer this far better than I can. There are likely many ways to do this, it might help if you gave us a little bit more info about what you are doing. It sounds like the coordinates and area of the polys are determined on the client side and then need to

  1   2   >