--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
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
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
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-
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
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
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
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
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
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
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
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
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:
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
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
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
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
(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
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
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] <
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
'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
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
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
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
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
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
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
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
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
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
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
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.
---
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
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
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
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
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
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
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
>
>
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
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
101 - 163 of 163 matches
Mail list logo