place a point in the map
N M
mapserver at HOTMAIL.COM
Tue Jul 12 04:12:40 PDT 2005
Hi David,
I follow all steps in the information on the URL you send me, I think that
DSN runs perfectly, I created the TXT database, the OVF file and I modifed
my .map file with the parameters of the example. My question now is, how can
I calculate the EXTENT coordinates. When I had a shapefile I used it to do
it. Which could be my .map file so I could display it?
Have I to change anything in my .map file so it runs? My EXTEND is the one
of my old shapefile. Thank you
MAP
IMAGETYPE PNG
EXTENT 0.000000 -205.000000 300.000000 0.000000
SIZE 585 400
SHAPEPATH "data"
IMAGECOLOR 255 180 0
#PROJECTION
# "proj=laea"
# "ellps=clrk66"
# "lat_0=45"
# "lon_0=-100"
#
# Alternatively, you can specify an EPSG code.
# "init=epsg:2163"
#
#END
# Start of LAYER DEFINITIONS ---------------------------------------------
LAYER # Capa de raster
NAME mapafig
DATA "raster/figueres.tif"
STATUS DEFAULT
TYPE RASTER
PROCESSING "BANDS=1"
#OFFSITE 71 74 65 #Color que ha de ser transparent
#PROJECTION
# "init=epsg:4326"
#END
END # Fi capa de raster
LAYER
CONNECTION "mapa21.ovf"
CONNECTIONTYPE OGR
DATA "prova"
METADATA
"wms_srs" "4326"
"wms_title" "prova"
END
NAME "prova"
SIZEUNITS PIXELS
STATUS ON
TOLERANCE 0
TOLERANCEUNITS PIXELS
TYPE POINT
UNITS METERS
CLASS
STYLE
COLOR 0 0 0
MAXSIZE 100
MINSIZE 1
SIZE 6
SYMBOL "symbols/prova.gif"
END
END
END
# End of LAYER DEFINITIONS -------------------------------
END # end of map file
>If you don't want to place your data in ESRI shapefiles or a database, you
>can use a simple text file as the data source for a layer.
>
>If your Mapserver binary has been compiled with OGR support (quite likely),
>you can use a virtual data source. Take a look at the Vector Data Access
>Reference
>http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/VirtualSpatialData
>
>If you search the list archives for OGR and VRT, you will most likely find
>some example map file layers.
>
>David.
>
>David Fawcett
>Minnesota Office of Environmental Assistance
>david.fawcett at moea.state.mn.us
>651.215.0200
>
>
>-----Original Message-----
>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
>Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri
>Sent: Monday, July 11, 2005 4:52 AM
>To: MAPSERVER-USERS at LISTS.UMN.EDU
>Subject: [UMN_MAPSERVER-USERS] place a point in the map
>
>
>Recently I managed to create my own map and placed a symbol in it from a
>database.
>
>Now I need to place several points in the map. My database contains gps
>coordinates like this:
>
>4216 9669 259
>
>Latitude: 42º 16'N
>Longitude: 258ºE
>
>I translated this gps coordinates to UTM coordinates to obtain:
>
>Zone: 14
>Easting: 252608
>Norting: 4683531
>
>I need to show this point in the map.
>
>Someone could explain my how to do it? Thank you.
>
>My present .map file is:
>
>MAP
> IMAGETYPE PNG
> EXTENT 0.000000 -205.000000 300.000000 0.000000
> SIZE 600 410
> SHAPEPATH "data"
> IMAGECOLOR 255 180 0
> FONTSET "fonts/fonts.list"
>
> #PROJECTION
> # "proj=laea"
> # "ellps=clrk66"
> # "lat_0=45"
> # "lon_0=-100"
> #
> # Alternatively, you can specify an EPSG code.
> # "init=epsg:2163"
> #
> #END
>
> # Start of LAYER DEFINITIONS
>--------------------------------------------
>-
>
> LAYER # Capa de raster
> NAME mapafig
> DATA "raster/figueres.tif"
> STATUS DEFAULT
> TYPE RASTER
> PROCESSING "BANDS=1"
> #OFFSITE 71 74 65 #Color que ha de ser transparent
>
> #PROJECTION
> # "init=epsg:4326"
> #END
> END # Fi capa de raster
>
>
>
> LAYER
> NAME simbols
> GROUP grup
> STATUS DEFAULT
> DATA mapa
> TYPE ANNOTATION
> LABELITEM "SIMB"
> CLASSITEM "C"
> CLASS
> EXPRESSION "2"
> STYLE
> COLOR 0 0 0 # dummy color
> SYMBOL 'symbols/prova.gif'
> END
> LABEL
> MINFEATURESIZE 20
> MINDISTANCE 50
> POSITION CC
> SIZE TINY
> COLOR 255 255 255
> END
> END
>
> PROJECTION
> "init=epsg:4326"
> END
> END
>
>
>
> # End of LAYER DEFINITIONS -------------------------------
>END # end of map file
_________________________________________________________________
Descarga gratis la Barra de Herramientas de MSN
http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH
More information about the MapServer-users
mailing list