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

2010-10-12 Thread Fawcett, David (MPCA)
--Original Message- From: mapserver-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-use

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.map&mode=map&map_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 t

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; mapserver-users@lists.osgeo.o

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-

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 th

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 [mailto:mapserver-users-boun...@lists.osgeo.org

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

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 you

RE: [mapserver-users] problems defining outline width using min/max

2010-08-26 Thread Fawcett, David (MPCA)
Dara, Take a look at SYMBOLSCALEDENOM in the LAYER block. This defines the scale at which the line appears 'normal' sized. You may also need to define a WIDTH in the style. For the value in SYMBOLSCALEDENOM, if you want this scale to be 1:10,000 the value would be 1. Since scales in Web

RE: [mapserver-users] projecting in degrees

2010-08-24 Thread Fawcett, David (MPCA)
My understanding of spatial reference systems(SRS) is that the units of the utilized by the SRS are inherently part of the definition. When data is projected to a particular SRS, the units are set by that SRS. It sounds like you are looking for some sort of cylindrical based SRS Maybe Miller

RE: [mapserver-users] Offset values from database

2010-08-12 Thread Fawcett, David (MPCA)
Thanks Thomas That looks nice in my test example. David. -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Thursday, August 12, 2010 10:45 AM To: Fawcett, David (MPCA) Cc: Wim Vanbelle; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset

RE: [mapserver-users] GDAL with MrSID

2010-08-12 Thread Fawcett, David (MPCA)
Eric, You didn't mention what platform you are on. For Windows, the MS4W package has built-in support: http://www.maptools.org/ms4w/ It looks like OSGEO4W also has built-in support: http://trac.osgeo.org/osgeo4w/wiki/PackageListing William's rockin FOSS4G binaries of OSX include MrSID support:

RE: [mapserver-users] Offset values from database

2010-08-12 Thread Fawcett, David (MPCA)
very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010

RE: [mapserver-users] Offset values from database

2010-08-12 Thread Fawcett, David (MPCA)
Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists

RE: [mapserver-users] Vector symbol drawing problem

2010-08-10 Thread Fawcett, David (MPCA)
o.org] On Behalf Of Jez Walters Sent: Tuesday, August 10, 2010 4:25 AM To: Fawcett, David (MPCA) Cc: 'mapserver-users@lists.osgeo.org' Subject: RE: [mapserver-users] Vector symbol drawing problem David, As you may have noticed, I've just submitted a bug for this - ticket #3511. I

RE: [mapserver-users] Vector symbol drawing problem

2010-08-09 Thread Fawcett, David (MPCA)
What does the rest of the map file look like? What is your map extent? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jez Walters Sent: Monday, August 09, 2010 11:00 AM To: mapserver-users@lists.osgeo

RE: [mapserver-users] Mapfile from Postgis, just Background No Map?

2010-08-05 Thread Fawcett, David (MPCA)
(as you set your second UNITS block), you are mapping an area ~400k x ~300k. What does your GIS tell you about the data’s SRS? David. From: elisabeth theresia [mailto:dbee_ka...@yahoo.com] Sent: Thursday, August 05, 2010 7:43 AM To: Fawcett, David (MPCA) Subject: Re: [mapserver-users] Mapfile

RE: [mapserver-users] Mapfile from Postgis, just Background No Map?

2010-08-04 Thread Fawcett, David (MPCA)
I see a few potential issues with your mapfile: 1.For testing, set your layer STATUS to DEFAULT or add '&layer=tb_kasusdbd' to your URL 2. You have two entries for UNITS (DD and KILOMETERS). You should only have one of these lines, and the units should match the units of your ou

RE: [mapserver-users] Raster data performance

2010-07-28 Thread Fawcett, David (MPCA)
I don't know anything about your work flow, but if possible, you could add a pre-processing step where you use a script to read your text file and pre-classify the data. You would end up with integers representing each class as 'cell' values. Instead of : EXPRESSION([pixel] >= -4 AND [pixel] <

RE: [mapserver-users] MAXSCALEDENOM [scale_field]

2010-07-16 Thread Fawcett, David (MPCA)
You could store your style info in a separate '.map' file and then use INCLUDE to pull that style definition into each class. http://mapserver.org/mapfile/Include.html David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.

RE: [mapserver-users] multiple map layers with different scales

2010-07-14 Thread Fawcett, David (MPCA)
Create a layer for each data set. Use Layer MAXSCALEDENOM and MINSCALEDENOM to define when the layer should be drawn. http://mapserver.org/mapfile/layer.html David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On B

RE: [mapserver-users] project on the fly through mapserver or openlayers?

2010-07-14 Thread Fawcett, David (MPCA)
When possible, the best performance comes from preprocessing the data to put it all in the same spatial reference system. I don't have any good data for you for your original question. I would guess that the performance of OpenLayers projection would vary based on the client machine and brow

[mapserver-users] RE: [OpenLayers-Users] Strange behaviour with OpenLayers.Request.POST and MapServer

2010-06-21 Thread Fawcett, David (MPCA)
David, I just skimmed the text of post XML, but if your OpenLayers app is sending a query to MapServer, your layer will need a template. In the case of WFS, I don't think that you need a real template file. But, you still might need an entry in your LAYER that is something like TEMPLATE "du

RE: [mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile?

2010-06-11 Thread Fawcett, David (MPCA)
You could also use Python or the other languages supported by gdal. In Python, here is a little bit of code to show the function. >>> spatialReference = layer.GetSpatialRef() >>> spatialReference.ExportToProj4() David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org

RE: [mapserver-users] Map background color using OL/WMS

2010-05-25 Thread Fawcett, David (MPCA)
If you really needed to set a background color, you could probably create an image of that color, georeference it to have an extent that matches your map extent and then set layer status to default for both of your layers. It still may be possible for someone to send a WMS to request only your

RE: [mapserver-users] wms layer query

2010-05-10 Thread Fawcett, David (MPCA)
Have you tried a direct getFeatureInfo request from a browser? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Friday, May 07, 2010 2:19 PM To: mapserver-users@lists.osgeo.org Su

RE: [mapserver-users] wms projection

2010-05-03 Thread Fawcett, David (MPCA)
Can you post the text of your mapfile and the URL call that you are using to request a map? That would make it a lot easier for people to help you. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tonton Sent: Monday, May 03, 20

RE: [mapserver-users] Re: WMS and tiles cutting off

2010-04-30 Thread Fawcett, David (MPCA)
Adam, It sounds like you have boiled the issue down to too much of a time lag between the time the query is executed and the image appears in the client. Is it taking a long time for MapServer to draw the image, or is it the delivery of the image to the requesting machine and subsequent placeme

RE: [mapserver-users] MapServer Keywords List

2010-04-16 Thread Fawcett, David (MPCA)
If it worked in TextWrangler too, that would be very cool! If you get one pulled together, please announce it to the list. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson Sent: Friday, Apri

RE: [mapserver-users] contours in mapfile

2010-04-08 Thread Fawcett, David (MPCA)
Oz, Between fixing the expression format as Jeff suggested and setting layer STATUS to DEFAULT, I was able to get it to draw. I simplified your map file, but I was able to get it to draw with the below map file. David. MAP EXTENT 3366307 5813354 3367797 5814955 SIZE 6

RE: [mapserver-users] contours in mapfile

2010-04-08 Thread Fawcett, David (MPCA)
Oz, In looking at your layer definition, you have defined a layer extent in coordinates that don't appear to match the spatial reference system you have defined for that layer in the projection block. It looks like you have meters or feet in your extent and the units for the projection that

RE: [mapserver-users] How to filter ArcGIS WFS service?

2010-04-05 Thread Fawcett, David (MPCA)
If the bug was on ESRI's side, I am sure the bug would have been fixed just as quickly ; / -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Miloslav Kmet Sent: Saturday, April 03, 2010 8:57 AM To: mapserve

RE: [mapserver-users] ANGLE [attribute]

2010-03-31 Thread Fawcett, David (MPCA)
Are you using TrueType fonts for your label? My memory could be bad, but I believe that you can only do label rotation with TrueType fonts, not with the default bitmap fonts. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daia

RE: [mapserver-users] Looking for advice for OGC Services Server hardware requirements

2010-03-10 Thread Fawcett, David (MPCA)
David, I don't remember all of your original post, so forgive me if you have already covered this. When looking at performance, make sure that you have done everything possible to optimize your data. -tiles and pyramids for rasters -all data in the output spatial reference system -precomput

RE: [mapserver-users] LABEL-formatting options

2010-03-10 Thread Fawcett, David (MPCA)
Stephan, Since there isn't a MapServer solution until 6.0, a work around could be a python/php/other language script to populate a new column with a lower precision value. It wouldn't be that hard to write. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mai

RE: [mapserver-users] small maps of alaska and hawaii

2010-02-23 Thread Fawcett, David (MPCA)
Depending on the spatial reference system that your data is in, you could try 'just moving the shapes' as you suggested. I don't know what it would look like, but it might be worth a try. If you figured out where you wanted Alaska to fall, you could determine a coordinate shift to apply to you

RE: [mapserver-users] vertical alignment of symbols along a line

2010-02-23 Thread Fawcett, David (MPCA)
In your symbol definition, make your GAP value negative. e.g. SYMBOL NAME "tie" TYPE TRUETYPE FONT "arial-bold" CHARACTER "|" GAP -4 ANTIALIAS TRUE END David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.os

RE: [mapserver-users] Refresh changes on map

2010-02-09 Thread Fawcett, David (MPCA)
Eduardo, Yes, this is possible. Every request to MapServer is made against the latest version of your data. To draw only points with a value of 'yes' in the column named 'visible': - add a layer to your map file that connects to your data source. - add a class to the layer - add a style t

RE: [mapserver-users] many raster projections

2010-02-08 Thread Fawcett, David (MPCA)
Andy, It looks like you have data in at least two or three different projections. If you want to display them in the same map using MapServer, you need: - a projection block at the MAP level. This defines your output projection. The map UNITS and EXTENT need tobe consistent with this projec

RE: [mapserver-users] Rendering bridges

2010-02-03 Thread Fawcett, David (MPCA)
The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'. * bridge: yes * highway: trunk * layer: 1 * name: Manchester Road * ref: A56 If you just wanted to use the road data and not create an additional bridges data set, you w

RE: [mapserver-users] Using e00 files

2010-02-02 Thread Fawcett, David (MPCA)
Jon, If you are not calling the layer name explicitly in the URL, try setting the layer status to DEFAULT. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jon Miner Sent: Tuesday, February 02, 2010 1

RE: [mapserver-users] De-coupling legend from class name

2010-01-28 Thread Fawcett, David (MPCA)
's never been hooked up... > > Steve > > > From: mapserver-users-boun...@lists.osgeo.org > [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David > (MPCA) [david.fawc...@state.mn.us] > Sent: Wednesday, January 27, 2010 9:05 AM &g

RE: [mapserver-users] De-coupling legend from class name

2010-01-27 Thread Fawcett, David (MPCA)
Nick, Just as you did with 'style[0]', you can reference a layer or class by it's numeric index. This gives you the flexibility to change the class name, but now you need to know which class it is based on order (index). http://mapserver.org/cgi/controls.html?highlight=Example%203#using-m

RE: [mapserver-users] Repeating annotation, using LABEL_NO_CLIP=1 with Open Layers

2010-01-27 Thread Fawcett, David (MPCA)
Ted, If you go the tile route, each image request to MapServer is independent, so it will get a copyright notice. You can go use an OpenLayers Layer.WMS layer with singleTile set to True and a ratio of 1 to get one tile that only fills the viewport. (This is similar to the deprecated OpenL

RE: [mapserver-users] Re: WMSGetFeatureInfo problem (No results, using OL)

2010-01-26 Thread Fawcett, David (MPCA)
Stella, What does the getFeatureInfo call look like? Use Firebug to find the URL used to make the request and post it here.' David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of stela anders Sent: Tuesday, January 26, 2010 1:33 PM T

RE: [mapserver-users] Raster layer as a way of branding

2010-01-22 Thread Fawcett, David (MPCA)
This example should help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Frost89 Sent: Friday, January 22, 2010 3

RE: [mapserver-users] RE: Images returning blank

2010-01-20 Thread Fawcett, David (MPCA)
ojection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents. Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294

[mapserver-users] RE: Images returning blank

2010-01-19 Thread Fawcett, David (MPCA)
t: Tuesday, January 19, 2010 4:15 PM To: Fawcett, David (MPCA); 'mapserver-users@lists.osgeo.org' Subject: RE: Images returning blank The Extents on the working file are in lat/lon. In the non-working file it looks to be in something el

[mapserver-users] RE: Images returning blank

2010-01-19 Thread Fawcett, David (MPCA)
Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an

RE: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-13 Thread Fawcett, David (MPCA)
chris...@camptocamp.com] Sent: Wednesday, January 13, 2010 3:05 AM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi David Im requesting the image through wms indeed. Though the bbox x/y ratio is exactly the sa

RE: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-12 Thread Fawcett, David (MPCA)
Are you requesting your image through a WMS and maybe getting a ‘non-square pixel’ effect? If you are using WMS, are the symbols round when you do a cgi request in mode=map or mode=tile? David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On B

RE: [mapserver-users] Tilemode Projection Problem

2010-01-06 Thread Fawcett, David (MPCA)
Ian, I haven't used tilemode, but my assumption is that the map projection block is used to define what the output projection for your tile is (like in the other MapServer modes). Try setting map projection to epsg:3785 or using the proj4 text: +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137

RE: [mapserver-users] Rendering overlapping data

2009-12-21 Thread Fawcett, David (MPCA)
Take a look at symbol TYPE HATCH here: http://mapserver.org/mapfile/symbol.html I am sorry that I don't have an example handy for you. You can also see how to create hatch symbols using pixmaps for areas here: http://mapserver.org/mapfile/symbology/construction.html#area-symbols David. ---

RE: [mapserver-users] Expression Syntax

2009-12-10 Thread Fawcett, David (MPCA)
At a minimum, I think that you will need to add quotes around the query columns. (just use single quotes, not the fancy Microsofty ones below...) FILTER ('[USE1_DESC]'=%idOwnerQueryDESC% AND '[BLOCK]'=%idOwnerQueryBLOCK%) Try setting a filter with static values from your data to get the filter

RE: [mapserver-users] Shapefile, itemnquery and HTML image map generation problem

2009-12-08 Thread Fawcett, David (MPCA)
John, What features are not being rendered? Are they randomly distributed? located at the outside edges of the rendered features? Any pattern to the IDs? David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of W.John Guineau Sent: Fr

RE: [mapserver-users] PGeo (Personal Geodatabases) options under Linux

2009-11-30 Thread Fawcett, David (MPCA)
I think that the more important question than, "can I get MapServer to use the personal geodatabase?", is, "what data source will support the efficiency/optimization that my project requires?" Even if you can get the personal geodatabase to work, it may be that it won't perform to meet your nee

RE: [mapserver-users] Can not draw single point

2009-11-30 Thread Fawcett, David (MPCA)
You should also note that if your point is not in Antarctica, but instead in Afton NY, USA, you are specifying your XY values in reverse order. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ludwig

RE: [mapserver-users] Build Errors; Currently "msLoadMap(): Unknown identifier. First token must be MAP, this doesn't look like a mapfile. "

2009-11-19 Thread Fawcett, David (MPCA)
If you still get an error, you will want to make sure that your MAP has an associated END line to close out the MAP block. It will likely be the last line in your map file. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Richa

RE: [mapserver-users] template not showing map

2009-11-18 Thread Fawcett, David (MPCA)
esday, November 18, 2009 2:53 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] template not showing map Fawcett, David (MPCA) schrieb: > Also, do you have an opening tag for your image? I just see the below line > with only a closing tag for img: > > hre

RE: [mapserver-users] template not showing map

2009-11-18 Thread Fawcett, David (MPCA)
s] template not showing map Fawcett, David (MPCA) schrieb: > Also, do you have an opening tag for your image? I just see the below line > with only a closing tag for img: > > href='http://www.umn-mapserver-community.de'>http://www.umn-mapserver-community.de > >

RE: [mapserver-users] template not showing map

2009-11-18 Thread Fawcett, David (MPCA)
Is your IMAGEURL correct? Is your template correctly referencing the directory where the image is being created? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Wednesday, Novembe

RE: [mapserver-users] only one SYMBOLSET ?????

2009-11-13 Thread Fawcett, David (MPCA)
I believe that you can only specify one symbolset. The behavior that you describe seems to back that up. I don't know your use case and don't have any idea how it would perform (but that has never stopped me before...) Since you can define a symbol explicitly in the map file and you can use I

<    1   2