[mapserver-users] PHP MapScript pixel coordinates to map coordinates

2010-01-19 Thread Shorthouse, David
Folks,

This question has no doubt been asked many times, but for the life of
me I cannot find a solution. Here's what I'm trying to do:

I have a jQuery-based front-end that uses the wonderful jcrop
extension (http://deepliquid.com/content/Jcrop.html) that helps
coordinate zoom. I'm hoping to use this same front-end to permit
cropping of a resultant map image, which means I need to pass the four
pixel corner coordinates, convert to map coordinates (projection may
be variable), then set the extent such that the resultant map image
will have the same dimensions as that described by the user on the
front-end. So, how can I convert pixel coordinates to map coordinates?
Note that the map projection is not always DD so I cannot merely use
proportions as I have seen in some solutions. Surely this is easier
than I am making it out to be.

Thanks for any advice,

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


[mapserver-users] query by point results in IE vs. Firefox

2010-01-19 Thread Jeanette McBride
Query by point works fine in IE, but in Firefox it actually returns a point 
about half an inch (screen units) north of the one selected.  (see link below) 
Any ideas?  Thanks!  Jenny
http://www.plantconservation.us/map.phtml

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


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

2010-01-19 Thread Rahkonen Jukka
Hi,

The non-working one is in some other projection than epsg:4326. You will get 
that layer visible by removing projection 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 294550.472704 do not suit.

-Jukka-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Kent Morrison
Lähetetty: ke 20.1.2010 0:14
Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users@lists.osgeo.org'
Aihe: [mapserver-users] RE: Images returning blank
 
I ran ogrinfo.exe on the non-working file.

C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200
7.shp trafficflow_2007 -so
INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp'
  using driver `ESRI Shapefile' successful.

Layer name: trafficflow_2007
Geometry: Line String
Feature Count: 4212
Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704)
Layer SRS WKT:
(unknown)
CounterID: Integer (10.0)
Location: String (50.0)
StartDate: Date (10.0)
ADT_Total: Integer (10.0)
AWD_Total: Integer (10.0)
XCoord: Real (19.8)
YCoord: Real (19.8)
StreetID: String (16.0)
Shape_len: Real (19.11)


I added:

EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704

to the map file and changed the Layer Status to Default.

[Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676
[Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 
6051371.431753) (-13071348.108486, 6053807.862029)
[Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 
0.000s
[Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s
[Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s
[Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not 
incl.): 0.031s
[Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10.

Still a blank image.

When I ran ogrinfo.exe on the working shapefile:


C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s
o co48_d00
INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp'
  using driver `ESRI Shapefile' successful.

Layer name: co48_d00
Geometry: Polygon
Feature Count: 265
Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704)
Layer SRS WKT:
(unknown)
AREA: Real (20.5)
PERIMETER: Real (20.5)
CO48_D00_: Real (11.0)
CO48_D00_I: Real (11.0)
STATE: String (2.0)
COUNTY: String (3.0)
NAME: String (90.0)
LSAD: String (2.0)
LSAD_TRANS: String (50.0)


The Extents on the working file are in lat/lon. In the non-working file it 
looks to be in something else.

I'm trying to return VE image tiles..

not sure where to go from here to get the first file to work.

Thanks


From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Tuesday, January 19, 2010 3:28 PM
To: Kent Morrison; 'mapserver-users@lists.osgeo.org'
Subject: RE: Images returning blank



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 image back.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Tuesday, January 19, 2010 3:17 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Images returning blank

I have mapserver 5.4.2 installed.

I have two different shape files, one renders properly the other only returns 
blank images

The debug log for the one that does not work returns:

[Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180
[Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to 
generate map extent.
[Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. 
Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, 
maxy=-1.00.
[Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 
6046512.903143) (-13071381.549686, 6066004.345353)
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 
0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s
[Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s
[Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not 
incl.): 0.062s
[Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00.
[Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160.

the map file is:

MAP
IMAGETYPE AGG
SIZE 256 2

[mapserver-users] RE: Images returning blank

2010-01-19 Thread Fawcett, David (MPCA)
I think that this is pretty obviously your problem.

Before you can transform between spatial reference systems (SRS), you need to 
know what the original SRS is.  To create VE image tiles, it needs to transform 
to 'Web Mercator'.  It can't do that if you don't correctly identify the SRS of 
your layer.

I believe that your lat/lon layer works because it is inheriting the projection 
from the MAP.  For your 'something else' layer, you will need to define the 
correct projection for that layer.

David.

From: Kent Morrison [mailto:kmorri...@advantrack.com]
Sent: 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 else.

I'm trying to return VE image tiles..


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


[mapserver-users] RE: Images returning blank

2010-01-19 Thread Kent Morrison
I ran ogrinfo.exe on the non-working file.

C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200
7.shp trafficflow_2007 -so
INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp'
  using driver `ESRI Shapefile' successful.

Layer name: trafficflow_2007
Geometry: Line String
Feature Count: 4212
Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704)
Layer SRS WKT:
(unknown)
CounterID: Integer (10.0)
Location: String (50.0)
StartDate: Date (10.0)
ADT_Total: Integer (10.0)
AWD_Total: Integer (10.0)
XCoord: Real (19.8)
YCoord: Real (19.8)
StreetID: String (16.0)
Shape_len: Real (19.11)


I added:

EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704

to the map file and changed the Layer Status to Default.

[Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676
[Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 
6051371.431753) (-13071348.108486, 6053807.862029)
[Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 
0.000s
[Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s
[Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s
[Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not 
incl.): 0.031s
[Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10.

Still a blank image.

When I ran ogrinfo.exe on the working shapefile:


C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s
o co48_d00
INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp'
  using driver `ESRI Shapefile' successful.

Layer name: co48_d00
Geometry: Polygon
Feature Count: 265
Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704)
Layer SRS WKT:
(unknown)
AREA: Real (20.5)
PERIMETER: Real (20.5)
CO48_D00_: Real (11.0)
CO48_D00_I: Real (11.0)
STATE: String (2.0)
COUNTY: String (3.0)
NAME: String (90.0)
LSAD: String (2.0)
LSAD_TRANS: String (50.0)


The Extents on the working file are in lat/lon. In the non-working file it 
looks to be in something else.

I'm trying to return VE image tiles..

not sure where to go from here to get the first file to work.

Thanks


From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Tuesday, January 19, 2010 3:28 PM
To: Kent Morrison; 'mapserver-users@lists.osgeo.org'
Subject: RE: Images returning blank



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 image back.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Tuesday, January 19, 2010 3:17 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Images returning blank

I have mapserver 5.4.2 installed.

I have two different shape files, one renders properly the other only returns 
blank images

The debug log for the one that does not work returns:

[Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180
[Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to 
generate map extent.
[Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. 
Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, 
maxy=-1.00.
[Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 
6046512.903143) (-13071381.549686, 6066004.345353)
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 
0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s
[Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s
[Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not 
incl.): 0.062s
[Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00.
[Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160.

the map file is:

MAP
IMAGETYPE AGG
SIZE 256 256
SHAPEPATH "/MapServerData/ShapeFiles/1"
IMAGECOLOR 255 255 255
TRANSPARENT ON
FONTSET "../../fonts/fonts.list"

CONFIG PROJ_LIB "c:\ms4w\proj\nad\"
CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt"
DEBUG 5

PROJECTION
"init=epsg:4326"
END

OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END #Outputformat

LAYER
NAME SpokaneTrafficFlows
DATA TrafficFlow_2007
STATUS ON
TYPE LINE

DEBUG 5

CLASS
NAME "classSpokaneTrafficFlows"

STYLE
COLOR 127 255 64
OPACITY 50
OUTLINECOLOR 255 128 64
WIDTH 3
E

[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 image back.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Tuesday, January 19, 2010 3:17 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Images returning blank

I have mapserver 5.4.2 installed.

I have two different shape files, one renders properly the other only returns 
blank images

The debug log for the one that does not work returns:

[Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180
[Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to 
generate map extent.
[Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. 
Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, 
maxy=-1.00.
[Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 
6046512.903143) (-13071381.549686, 6066004.345353)
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 
0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s
[Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s
[Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not 
incl.): 0.062s
[Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00.
[Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160.

the map file is:

MAP
IMAGETYPE AGG
SIZE 256 256
SHAPEPATH "/MapServerData/ShapeFiles/1"
IMAGECOLOR 255 255 255
TRANSPARENT ON
FONTSET "../../fonts/fonts.list"

CONFIG PROJ_LIB "c:\ms4w\proj\nad\"
CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt"
DEBUG 5

PROJECTION
"init=epsg:4326"
END

OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END #Outputformat

LAYER
NAME SpokaneTrafficFlows
DATA TrafficFlow_2007
STATUS ON
TYPE LINE

DEBUG 5

CLASS
NAME "classSpokaneTrafficFlows"

STYLE
COLOR 127 255 64
OPACITY 50
OUTLINECOLOR 255 128 64
WIDTH 3
END #style
END #class
END #layer
END #Map

running shp2img.exe returns:
msLoadMap(): Image handling error. Unable to initialize image
msCalculateScale(): General error message. invalid image extent 

I get the same results for shp2img on the working shapefile/map file.


THE FOLLOWING WORKS:

MAP

  IMAGETYPE  AGG
  SIZE   256 256
  SHAPEPATH  "/MapServerData/ShapeFiles/1"
  IMAGECOLOR 255 255 255
  TRANSPARENTON
  FONTSET"../../fonts/fonts.list"

CONFIG PROJ_LIB "c:\ms4w\proj\nad\"

  PROJECTION
 "init=epsg:4326"
  END

  OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
  END #Outputformat

  LAYER
NAME  TxCounties
DATA   co48_d00
STATUS  ON
TYPEPolygon

CLASS
NAME  "classTxCounties"

STYLE
COLOR 0 255 0
OPACITY  25
OUTLINECOLOR  0 0 0
WIDTH   2
END #style
END #class
  END #layer
END #Map



Anyone have any idea's why this might not work in the first case? Or what else 
can I do to debug the problem?


Kent

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


Re: [mapserver-users] Images returning blank

2010-01-19 Thread Rahkonen Jukka
Hi,

I would start by adding EXTENT element at MAP level, see for example
http://www.mapserver.org/introduction.html

-Jukka Rahkonen-


> Kent Morrison wrote:

> I have mapserver 5.4.2 installed.

> I have two different shape files, one renders properly the other only returns 
> blank images

> The debug log for the one that does not work returns:

> [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180
[Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to 
generate map extent.
[Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. 
Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, 
maxy=-1.00.
[Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 
6046512.903143) (-13071381.549686, 6066004.345353)
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 
0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s
[Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s
[Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not 
incl.): 0.062s
[Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00.
[Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160.

the map file is:

MAP
IMAGETYPE AGG
SIZE 256 256
SHAPEPATH "/MapServerData/ShapeFiles/1"
IMAGECOLOR 255 255 255
TRANSPARENT ON
FONTSET "../../fonts/fonts.list"

CONFIG PROJ_LIB "c:\ms4w\proj\nad\"
CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt"
DEBUG 5

PROJECTION
"init=epsg:4326"
END

OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END #Outputformat

LAYER
NAME SpokaneTrafficFlows
DATA TrafficFlow_2007
STATUS ON
TYPE LINE

DEBUG 5

CLASS
NAME "classSpokaneTrafficFlows"

STYLE
COLOR 127 255 64
OPACITY 50
OUTLINECOLOR 255 128 64
WIDTH 3
END #style
END #class
END #layer
END #Map

running shp2img.exe returns:
msLoadMap(): Image handling error. Unable to initialize image
msCalculateScale(): General error message. invalid image extent 

I get the same results for shp2img on the working shapefile/map file.


THE FOLLOWING WORKS:

MAP

  IMAGETYPE  AGG
  SIZE   256 256
  SHAPEPATH  "/MapServerData/ShapeFiles/1"
  IMAGECOLOR 255 255 255
  TRANSPARENTON
  FONTSET"../../fonts/fonts.list"

CONFIG PROJ_LIB "c:\ms4w\proj\nad\"

  PROJECTION
 "init=epsg:4326"
  END

  OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
  END #Outputformat

  LAYER
NAME  TxCounties
DATA   co48_d00
STATUS  ON
TYPEPolygon

CLASS
NAME  "classTxCounties"

STYLE
COLOR 0 255 0
OPACITY  25
OUTLINECOLOR  0 0 0
WIDTH   2
END #style
END #class
  END #layer
END #Map



Anyone have any idea's why this might not work in the first case? Or what else 
can I do to debug the problem?


Kent



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


[mapserver-users] Images returning blank

2010-01-19 Thread Kent Morrison
I have mapserver 5.4.2 installed.

I have two different shape files, one renders properly the other only returns 
blank images

The debug log for the one that does not work returns:

[Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180
[Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to 
generate map extent.
[Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. 
Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, 
maxy=-1.00.
[Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 
6046512.903143) (-13071381.549686, 6066004.345353)
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 
0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s
[Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s
[Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not 
incl.): 0.062s
[Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00.
[Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160.

the map file is:

MAP
IMAGETYPE AGG
SIZE 256 256
SHAPEPATH "/MapServerData/ShapeFiles/1"
IMAGECOLOR 255 255 255
TRANSPARENT ON
FONTSET "../../fonts/fonts.list"

CONFIG PROJ_LIB "c:\ms4w\proj\nad\"
CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt"
DEBUG 5

PROJECTION
"init=epsg:4326"
END

OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END #Outputformat

LAYER
NAME SpokaneTrafficFlows
DATA TrafficFlow_2007
STATUS ON
TYPE LINE

DEBUG 5

CLASS
NAME "classSpokaneTrafficFlows"

STYLE
COLOR 127 255 64
OPACITY 50
OUTLINECOLOR 255 128 64
WIDTH 3
END #style
END #class
END #layer
END #Map

running shp2img.exe returns:
msLoadMap(): Image handling error. Unable to initialize image
msCalculateScale(): General error message. invalid image extent 

I get the same results for shp2img on the working shapefile/map file.


THE FOLLOWING WORKS:

MAP

  IMAGETYPE  AGG
  SIZE   256 256
  SHAPEPATH  "/MapServerData/ShapeFiles/1"
  IMAGECOLOR 255 255 255
  TRANSPARENTON
  FONTSET"../../fonts/fonts.list"

CONFIG PROJ_LIB "c:\ms4w\proj\nad\"

  PROJECTION
 "init=epsg:4326"
  END

  OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
  END #Outputformat

  LAYER
NAME  TxCounties
DATA   co48_d00
STATUS  ON
TYPEPolygon

CLASS
NAME  "classTxCounties"

STYLE
COLOR 0 255 0
OPACITY  25
OUTLINECOLOR  0 0 0
WIDTH   2
END #style
END #class
  END #layer
END #Map



Anyone have any idea's why this might not work in the first case? Or what else 
can I do to debug the problem?


Kent


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


Re: [mapserver-users] windows 2008 server

2010-01-19 Thread Jeff McKenna

steve.tout...@inspq.qc.ca wrote:


Hi,
My IT service wants to install windows 2008 server on my server.
Does MapServer work on this platform? Is there known issues?



Steve,

I have run MS4W on Windows 2008 Server (32bit) without issues.  If you 
wish to run MapServer in 64bit you would require a custom build.


If you hit any walls you can contact my team for support.

-jeff


--
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


Re: [mapserver-users] windows 2008 server

2010-01-19 Thread Daniel Walton
We've installed mapserver (CGI mode only, using IIS7's FastCGI module) onto
Windows Server 2008 x64 with no issues.

-Dan Walton
GIS Fire Tools
http://gisfiretools.com


On Tue, Jan 19, 2010 at 1:25 PM,  wrote:

>
> Hi,
> My IT service wants to install windows 2008 server on my server.
> Does MapServer work on this platform? Is there known issues?
>
> thanks in advance
> Steve
>
>
> ___
> 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] windows 2008 server

2010-01-19 Thread Steve . Toutant
Hi,
My IT service wants to install windows 2008 server on my server.
Does MapServer work on this platform? Is there known issues?

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


Re: [mapserver-users] symbol at start and end of polyline ?

2010-01-19 Thread thomas bonfort
On Tue, Jan 19, 2010 at 15:12, Oliver Christen <
oliver.chris...@camptocamp.com> wrote:

>  At first I thought I had some oddity with the data I used for my testing
> ( see 
> http://dev.camptocamp.com/~ochriste/line_with_style.png
>  with
> the star symbol on every vertex of one line feature)
>
> but after trying with some other set of data, I only have the star symbol
> on start and end of the whole line feature ( and, strangely, also on
> cross-section if the line separate in two at some point )
>
where the stars are put depends on the structure of your geometry, as stored
in your database or shapefiles


> http://dev.camptocamp.com/~ochriste/line_feature_extremities.png
> so I thought the problem was solved, but upon zooming on the extrmities of
> the line feature, im again having strange behavior:
> http://dev.camptocamp.com/~ochriste/line_feature_extremity_zoomed.png
> with multiple star symbols.
> the red star in these two image are from the same line feature.
>
are you sure your class expression matches only one geometry ?


>
> why is there more than 2 stars ?
> does the geomtransform 'end' only work for line features consisting of only
> 2 points ?
>
> - Original Message -
> *From:* thomas bonfort 
> *To:* Oliver Christen 
> *Cc:* mapserver-users@lists.osgeo.org
> *Sent:* Tuesday, January 19, 2010 2:10 PM
> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ?
>
> if you're using postgis, you can use a unique key from your table (i.e.
> gid)
> if you have a shapefile, you'll have to find an or a combination of
> attributes in the dbf that's unique to identify that particular feature.
>
> --
> thomas
>
> On Tue, Jan 19, 2010 at 11:59, Oliver Christen <
> oliver.chris...@camptocamp.com> wrote:
>
>>  it makes sens, but how do I do that ?
>> do line segment get automaticaly an id ?
>> or how to get (or set) the id of the line segment?
>>
>>  - Original Message -
>> *From:* thomas bonfort 
>> *To:* Oliver Christen 
>> *Cc:* mapserver-users@lists.osgeo.org
>>   *Sent:* Tuesday, January 19, 2010 10:50 AM
>> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ?
>>
>> well, if you want only one line segment to have start markers, you must
>> tell mapserver which segment that is.
>>
>> On Tue, Jan 19, 2010 at 10:48, Oliver Christen <
>> oliver.chris...@camptocamp.com> wrote:
>>
>>>  thx Thomas, but im not sure I understand what you are telling me here.
>>> do line segments have id ?
>>>
>>> - Original Message -
>>> *From:* thomas bonfort 
>>> *To:* Oliver Christen 
>>> *Cc:* mapserver-users@lists.osgeo.org
>>> *Sent:* Tuesday, January 19, 2010 10:30 AM
>>> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ?
>>>
>>> hi,
>>>
>>> class
>>>   expression ([id]=321)
>>>   style
>>> geomtransform end
>>> ...
>>>   end
>>> end
>>> class
>>>   style
>>> ... #all the others
>>>   end
>>> end
>>>
>>> On Tue, Jan 19, 2010 at 10:14, Oliver Christen <
>>> oliver.chris...@camptocamp.com> wrote:
>>>
 hello

 I would like to add a symbol at the start and end of a polyline.

 I tried using GEOMTRANSFORM with "start" and "end" in a style block in
 the layer but sadely this will add a symbol to all start and end of every
 vertex of the polyline, which is not the result wanted :/

 is there any way to do that, beside creating a new point layer ?

 thanks in advance
 Oliver
 ___
 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] handling multiple styles for WMS layers

2010-01-19 Thread Stephan Holl
Hello Verena,

Verena Diewald , [20100119 - 14:27:49]

> Hi list,
> 
> I have one question concerning style handling in MapServer. Is it 
> possible to define multiple layer styles for my WMS and request the 
> single styles in the styles parameter in the GetMap request? And how
> are the single styles defined in the layer section of the mapfile?

Have a look at GROUP[1] and CLASSGROUP[2].

This should should give what you want.

Best

Stephan

[1] http://mapserver.org/mapfile/class.html
[2] http://mapserver.org/mapfile/layer.html

-- 
Stephan Holl  | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


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


[mapserver-users] Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver]

2010-01-19 Thread Steve . Toutant
Stela
Did you have a look at openlayers example 
 http://openlayers.org/dev/examples/ 
See Feature Info in popup
It will work with a Mapserver WMS.

You got to define an OL control
You also have to make your layer queryable, in your mapfile define a 
tolerance and a template.
Steve
 




stela anders @openlayers.org 
Envoyé par : users-boun...@openlayers.org
19/01/2010 07:37 AM

A
bwoodall 
cc
openlayers user list , mapserver-users 

Objet
Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver]








Thanks, but do you have any sample and how use WMSGetFeatureInfo with 
Mapserver ?

Stella

2010/1/19 stela anders 
Thanks...


2010/1/14 bwoodall 

Howdy,

Granted it has been awhile since I played with the OL WMS code, but I
think the only way is to use the TOLERANCE and TOLERANCE-UNITS in the
LAYER for mapserver to get the desired 'BBOX' type results.

http://mapserver.org/mapfile/layer.html?highlight=tolerance

Hope that helps

..Bill,

On Thu, 2010-01-14 at 15:23 -0500, Stephen Woodbridge wrote:
> Stella,
>
> I forwarded this to the lists because there are more people there that
> might be able to help. If you are not signup to these lists I recommend
> that you sign up.
>
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> Users mailing list
> us...@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
> -Steve
>
>  Original Message 
> Subject:  WMSGetFeatureInfo with Mapserver
> Date: Thu, 14 Jan 2010 15:57:34 -0300
> From: stela anders 
> To:   wood...@swoodbridge.com
>
>
>
> Hello!
>
> I´m trying to implement tha sample :
> 
http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html

>
> with mapserver...
> But I kind of lost...
> Could you send-me any sample how to do that?
> And is possible to use a BOX instead a POINT to query?
>
> Thanks for the help
>
> Stella
> ___
> Users mailing list
> us...@openlayers.org
> http://openlayers.org/mailman/listinfo/users


___
Users mailing list
us...@openlayers.org
http://openlayers.org/mailman/listinfo/users



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


Re: [mapserver-users] symbol at start and end of polyline ?

2010-01-19 Thread Oliver Christen
At first I thought I had some oddity with the data I used for my testing
( see http://dev.camptocamp.com/~ochriste/line_with_style.png with the star 
symbol on every vertex of one line feature)

but after trying with some other set of data, I only have the star symbol on 
start and end of the whole line feature ( and, strangely, also on cross-section 
if the line separate in two at some point ) 
http://dev.camptocamp.com/~ochriste/line_feature_extremities.png
so I thought the problem was solved, but upon zooming on the extrmities of the 
line feature, im again having strange behavior:
http://dev.camptocamp.com/~ochriste/line_feature_extremity_zoomed.png
with multiple star symbols.
the red star in these two image are from the same line feature.

why is there more than 2 stars ?
does the geomtransform 'end' only work for line features consisting of only 2 
points ?
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 19, 2010 2:10 PM
  Subject: Re: [mapserver-users] symbol at start and end of polyline ?


  if you're using postgis, you can use a unique key from your table (i.e. gid)
  if you have a shapefile, you'll have to find an or a combination of 
attributes in the dbf that's unique to identify that particular feature.

  --
  thomas


  On Tue, Jan 19, 2010 at 11:59, Oliver Christen 
 wrote:

it makes sens, but how do I do that ?
do line segment get automaticaly an id ?
or how to get (or set) the id of the line segment?
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 19, 2010 10:50 AM
  Subject: Re: [mapserver-users] symbol at start and end of polyline ?


  well, if you want only one line segment to have start markers, you must  
tell mapserver which segment that is.


  On Tue, Jan 19, 2010 at 10:48, Oliver Christen 
 wrote:

thx Thomas, but im not sure I understand what you are telling me here.
do line segments have id ?
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 19, 2010 10:30 AM
  Subject: Re: [mapserver-users] symbol at start and end of polyline ?


  hi,

  class
expression ([id]=321)
style
  geomtransform end
  ...
end
  end
  class
style
  ... #all the others
end
  end


  On Tue, Jan 19, 2010 at 10:14, Oliver Christen 
 wrote:

hello

I would like to add a symbol at the start and end of a polyline.

I tried using GEOMTRANSFORM with "start" and "end" in a style block 
in the layer but sadely this will add a symbol to all start and end of every 
vertex of the polyline, which is not the result wanted :/

is there any way to do that, beside creating a new point layer ?

thanks in advance
Oliver 
___
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] handling multiple styles for WMS layers

2010-01-19 Thread Verena Diewald

Hi list,

I have one question concerning style handling in MapServer. Is it 
possible to define multiple layer styles for my WMS and request the 
single styles in the styles parameter in the GetMap request? And how are 
the single styles defined in the layer section of the mapfile?


Greetings

Verena

--


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


Re: [mapserver-users] symbol at start and end of polyline ?

2010-01-19 Thread thomas bonfort
if you're using postgis, you can use a unique key from your table (i.e. gid)
if you have a shapefile, you'll have to find an or a combination of
attributes in the dbf that's unique to identify that particular feature.

--
thomas

On Tue, Jan 19, 2010 at 11:59, Oliver Christen <
oliver.chris...@camptocamp.com> wrote:

>  it makes sens, but how do I do that ?
> do line segment get automaticaly an id ?
> or how to get (or set) the id of the line segment?
>
> - Original Message -
> *From:* thomas bonfort 
> *To:* Oliver Christen 
> *Cc:* mapserver-users@lists.osgeo.org
> *Sent:* Tuesday, January 19, 2010 10:50 AM
> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ?
>
> well, if you want only one line segment to have start markers, you must
> tell mapserver which segment that is.
>
> On Tue, Jan 19, 2010 at 10:48, Oliver Christen <
> oliver.chris...@camptocamp.com> wrote:
>
>>  thx Thomas, but im not sure I understand what you are telling me here.
>> do line segments have id ?
>>
>> - Original Message -
>> *From:* thomas bonfort 
>> *To:* Oliver Christen 
>> *Cc:* mapserver-users@lists.osgeo.org
>> *Sent:* Tuesday, January 19, 2010 10:30 AM
>> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ?
>>
>> hi,
>>
>> class
>>   expression ([id]=321)
>>   style
>> geomtransform end
>> ...
>>   end
>> end
>> class
>>   style
>> ... #all the others
>>   end
>> end
>>
>> On Tue, Jan 19, 2010 at 10:14, Oliver Christen <
>> oliver.chris...@camptocamp.com> wrote:
>>
>>> hello
>>>
>>> I would like to add a symbol at the start and end of a polyline.
>>>
>>> I tried using GEOMTRANSFORM with "start" and "end" in a style block in
>>> the layer but sadely this will add a symbol to all start and end of every
>>> vertex of the polyline, which is not the result wanted :/
>>>
>>> is there any way to do that, beside creating a new point layer ?
>>>
>>> thanks in advance
>>> Oliver
>>> ___
>>> 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: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver]

2010-01-19 Thread stela anders
Thanks, but do you have any sample and how use WMSGetFeatureInfo with
Mapserver ?

Stella

2010/1/19 stela anders 

> Thanks...
>
>
> 2010/1/14 bwoodall 
>
> Howdy,
>>
>> Granted it has been awhile since I played with the OL WMS code, but I
>> think the only way is to use the TOLERANCE and TOLERANCE-UNITS in the
>> LAYER for mapserver to get the desired 'BBOX' type results.
>>
>> http://mapserver.org/mapfile/layer.html?highlight=tolerance
>>
>> Hope that helps
>>
>> ..Bill,
>>
>> On Thu, 2010-01-14 at 15:23 -0500, Stephen Woodbridge wrote:
>> > Stella,
>> >
>> > I forwarded this to the lists because there are more people there that
>> > might be able to help. If you are not signup to these lists I recommend
>> > that you sign up.
>> >
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>> > Users mailing list
>> > us...@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
>> > -Steve
>> >
>> >  Original Message 
>> > Subject:  WMSGetFeatureInfo with Mapserver
>> > Date: Thu, 14 Jan 2010 15:57:34 -0300
>> > From: stela anders 
>> > To:   wood...@swoodbridge.com
>> >
>> >
>> >
>> > Hello!
>> >
>> > I´m trying to implement tha sample :
>> >
>> http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html
>> >
>> > with mapserver...
>> > But I kind of lost...
>> > Could you send-me any sample how to do that?
>> > And is possible to use a BOX instead a POINT to query?
>> >
>> > Thanks for the help
>> >
>> > Stella
>> > ___
>> > Users mailing list
>> > us...@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>>
>>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver]

2010-01-19 Thread stela anders
Thanks...


2010/1/14 bwoodall 

> Howdy,
>
> Granted it has been awhile since I played with the OL WMS code, but I
> think the only way is to use the TOLERANCE and TOLERANCE-UNITS in the
> LAYER for mapserver to get the desired 'BBOX' type results.
>
> http://mapserver.org/mapfile/layer.html?highlight=tolerance
>
> Hope that helps
>
> ..Bill,
>
> On Thu, 2010-01-14 at 15:23 -0500, Stephen Woodbridge wrote:
> > Stella,
> >
> > I forwarded this to the lists because there are more people there that
> > might be able to help. If you are not signup to these lists I recommend
> > that you sign up.
> >
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> > Users mailing list
> > us...@openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> > -Steve
> >
> >  Original Message 
> > Subject:  WMSGetFeatureInfo with Mapserver
> > Date: Thu, 14 Jan 2010 15:57:34 -0300
> > From: stela anders 
> > To:   wood...@swoodbridge.com
> >
> >
> >
> > Hello!
> >
> > I´m trying to implement tha sample :
> >
> http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html
> >
> > with mapserver...
> > But I kind of lost...
> > Could you send-me any sample how to do that?
> > And is possible to use a BOX instead a POINT to query?
> >
> > Thanks for the help
> >
> > Stella
> > ___
> > Users mailing list
> > us...@openlayers.org
> > http://openlayers.org/mailman/listinfo/users
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] COM.Geo 2010: Computing for Geospatial Conference & Exhibition (June 2010 Washington DC)

2010-01-19 Thread Jan Hartmann

Hi Puneet,

Glad to see you are still alive and kicking (hard). Do you still have 
the same good memories as I do of the real "leading conference" of this 
decennium? IMHO, time ***has*** already told ...


http://mapserver.sara.nl/conferences/2003/mum/photos/group.jpg

Cheers,

Jan

On 19-1-2010 6:34, P Kishor wrote:

On Mon, Jan 18, 2010 at 10:02 PM, Andrew Clark  wrote:
   

COM.Geo 2010: Conference and Exhibition on Computing for Geospatial Research
and Application (June 2010, Washington DC)
http://www.com-geo.org

 

Sounds nice, but...

   

COM.Geo 2010 is a leading conference and exhibition on computing for
geospatial research and application ..
 

How can COM.Geo [sic] be "a leading conference" when the first one is
still six months in the future? [1] And the front page copy on the web
site has such flowery text that I don't know whether to feel flush
with gratefulness or grimace with bitterness at lost opportunity.
Let's see -- "computing driven location based applications" have not
revolutionized anything with the prominent exception of online mapping
for finding directions, cloud computing is still hot air, and the
hottest term of the 90s was not .com but sex, and still is so.

As always, time will tell.

--
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


[mapserver-users] Queryng map with WMS and Openlayers...

2010-01-19 Thread stela anders
Hello, I´d like to execute a query(point and area) in my Openlayers map
(Mapserver-WMS)...
How Can I do that?

Thanks

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


Re: [mapserver-users] symbol at start and end of polyline ?

2010-01-19 Thread Oliver Christen
it makes sens, but how do I do that ?
do line segment get automaticaly an id ?
or how to get (or set) the id of the line segment?
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 19, 2010 10:50 AM
  Subject: Re: [mapserver-users] symbol at start and end of polyline ?


  well, if you want only one line segment to have start markers, you must  tell 
mapserver which segment that is.


  On Tue, Jan 19, 2010 at 10:48, Oliver Christen 
 wrote:

thx Thomas, but im not sure I understand what you are telling me here.
do line segments have id ?
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 19, 2010 10:30 AM
  Subject: Re: [mapserver-users] symbol at start and end of polyline ?


  hi,

  class
expression ([id]=321)
style
  geomtransform end
  ...
end
  end
  class
style
  ... #all the others
end
  end


  On Tue, Jan 19, 2010 at 10:14, Oliver Christen 
 wrote:

hello

I would like to add a symbol at the start and end of a polyline.

I tried using GEOMTRANSFORM with "start" and "end" in a style block in 
the layer but sadely this will add a symbol to all start and end of every 
vertex of the polyline, which is not the result wanted :/

is there any way to do that, beside creating a new point layer ?

thanks in advance
Oliver 
___
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] symbol at start and end of polyline ?

2010-01-19 Thread thomas bonfort
well, if you want only one line segment to have start markers, you must
tell mapserver which segment that is.

On Tue, Jan 19, 2010 at 10:48, Oliver Christen <
oliver.chris...@camptocamp.com> wrote:

>  thx Thomas, but im not sure I understand what you are telling me here.
> do line segments have id ?
>
> - Original Message -
> *From:* thomas bonfort 
> *To:* Oliver Christen 
> *Cc:* mapserver-users@lists.osgeo.org
> *Sent:* Tuesday, January 19, 2010 10:30 AM
> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ?
>
> hi,
>
> class
>   expression ([id]=321)
>   style
> geomtransform end
> ...
>   end
> end
> class
>   style
> ... #all the others
>   end
> end
>
> On Tue, Jan 19, 2010 at 10:14, Oliver Christen <
> oliver.chris...@camptocamp.com> wrote:
>
>> hello
>>
>> I would like to add a symbol at the start and end of a polyline.
>>
>> I tried using GEOMTRANSFORM with "start" and "end" in a style block in the
>> layer but sadely this will add a symbol to all start and end of every vertex
>> of the polyline, which is not the result wanted :/
>>
>> is there any way to do that, beside creating a new point layer ?
>>
>> thanks in advance
>> Oliver
>> ___
>> 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] symbol at start and end of polyline ?

2010-01-19 Thread Oliver Christen
thx Thomas, but im not sure I understand what you are telling me here.
do line segments have id ?
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 19, 2010 10:30 AM
  Subject: Re: [mapserver-users] symbol at start and end of polyline ?


  hi,

  class
expression ([id]=321)
style
  geomtransform end
  ...
end
  end
  class
style
  ... #all the others
end
  end


  On Tue, Jan 19, 2010 at 10:14, Oliver Christen 
 wrote:

hello

I would like to add a symbol at the start and end of a polyline.

I tried using GEOMTRANSFORM with "start" and "end" in a style block in the 
layer but sadely this will add a symbol to all start and end of every vertex of 
the polyline, which is not the result wanted :/

is there any way to do that, beside creating a new point layer ?

thanks in advance
Oliver 
___
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] symbol at start and end of polyline ?

2010-01-19 Thread thomas bonfort
hi,

class
  expression ([id]=321)
  style
geomtransform end
...
  end
end
class
  style
... #all the others
  end
end

On Tue, Jan 19, 2010 at 10:14, Oliver Christen <
oliver.chris...@camptocamp.com> wrote:

> hello
>
> I would like to add a symbol at the start and end of a polyline.
>
> I tried using GEOMTRANSFORM with "start" and "end" in a style block in the
> layer but sadely this will add a symbol to all start and end of every vertex
> of the polyline, which is not the result wanted :/
>
> is there any way to do that, beside creating a new point layer ?
>
> thanks in advance
> Oliver
> ___
> 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] symbol at start and end of polyline ?

2010-01-19 Thread Oliver Christen

hello

I would like to add a symbol at the start and end of a polyline.

I tried using GEOMTRANSFORM with "start" and "end" in a style block in the 
layer but sadely this will add a symbol to all start and end of every vertex 
of the polyline, which is not the result wanted :/


is there any way to do that, beside creating a new point layer ?

thanks in advance
Oliver 


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