[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


[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
  

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

2010-01-20 Thread Kent Morrison
Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to figure out PROJECTIONS... Any suggestions or sites with 
examples that will help me here would be greatly appreciated.

Thanks
Kent 

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: Tuesday, January 19, 2010 4:25 PM
To: Kent Morrison; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Images returning blank

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.

[mapserver-users] RE: Images returning blank

2010-01-20 Thread Kent Morrison
One thing I tried was to use the ogr2ogr tool to convert the files so they use 
the same projection.  I need to create an srs def ... any sites with examples 
or tutorials suggested?

The other alternative is to figure out how to create a PROJECTION element in 
the map file to match the shp file.  which I am also trying to learn.

thanks,

Kent




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

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


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

2010-01-20 Thread Kent Morrison
I am trying to display the data as a map layer that can overly a Vitural Earth 
map.

Some of my shape files that were not working before are now working where 
others are still not, but at least I now have a clue to what the heck I am 
doing!

I'll look at the links you sent me and try to figure out the other files.

Thanks!

Kent

-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] 
Sent: Wednesday, January 20, 2010 11:06 AM
To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

If you were just trying to display the data in a simple map, you could go 
without the projection info and still see something if you only wanted to 
display that layer.

Let's add a PROJECTION obj to your layer:

Take a look at http://spatialreference.org/ref/esri/102740/.  I am pretty sure 
that this is the spatial reference system (SRS) that your data is in.  

MapServer uses SRS definitions in Proj.4 format.  Here is a link to this SRS in 
Proj.4:  http://spatialreference.org/ref/esri/102740/proj4/

In your LAYER, add

PROJECTION
   "proj=lcc"
   "lat_1=28.38"
   "lat_2=30.283334"
   "lat_0=27.83"
   "lon_0=-99" 
   "x_0=60.01"
   "y_0=400"
   "ellps=GRS80"
   "datum=NAD83"
   "to_meter=0.3048006096012192"
   "no_defs"
END

Does this work?

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Wednesday, January 20, 2010 10:45 AM
To: 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to figure out PROJECTIONS... Any suggestions or sites with 
examples that will help me here would be greatly appreciated.

Thanks
Kent 

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi]
Sent: Tuesday, January 19, 2010 4:25 PM
To: Kent Morrison; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Images returning blank

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 

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

2010-01-20 Thread Kent Morrison
One question I have is:
1. The PROJECTION settings from spatialreference.org for 
NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet is

  PROJECTION 
"proj=lcc"
"lat_1=47.5"
"lat_2=49.73"
"lat_0=47.0"
"lon_0=-120.83" 
"x_0=50.01"
"y_0=0"
"ellps=GRS80"
"to_meter=0.3048006096012192"
"no_defs"
  END

I can see where all the settings come fro mthe .PRJ file except for the x_0 and 
y_0, where did these come from?

I though tit might be the "False_Easting"/"False_Northing" settings but 
changing x_0 = 1640416.7 caused the images to disapear so that's not 
it. 


The .PRJ file is:

PROJCS["NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet",
GEOGCS["GCS_North_American_1983_HARN",
DATUM["D_North_American_1983_HARN",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1640416.7],
PARAMETER["False_Northing",0.0],
PARAMETER["Central_Meridian",-120.8],
PARAMETER["Standard_Parallel_1",47.5],
PARAMETER["Standard_Parallel_2",48.73],
PARAMETER["Latitude_Of_Origin",47.0],
UNIT["Foot_US",0.3048006096012192]],

VERTCS["NAVD_1988",
VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],
PARAMETER["Direction",1.0],
UNIT["Foot_US",0.3048006096012192]]
 
I need to be able to create the PROJECTION settings from the .PRJ file. My 
application needs to allow users to upload shape files on their own. The 
PROJECTION settings is the last part.



-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] 
Sent: Wednesday, January 20, 2010 11:06 AM
To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

If you were just trying to display the data in a simple map, you could go 
without the projection info and still see something if you only wanted to 
display that layer.

Let's add a PROJECTION obj to your layer:

Take a look at http://spatialreference.org/ref/esri/102740/.  I am pretty sure 
that this is the spatial reference system (SRS) that your data is in.  

MapServer uses SRS definitions in Proj.4 format.  Here is a link to this SRS in 
Proj.4:  http://spatialreference.org/ref/esri/102740/proj4/

In your LAYER, add

PROJECTION
   "proj=lcc"
   "lat_1=28.38"
   "lat_2=30.283334"
   "lat_0=27.83"
   "lon_0=-99" 
   "x_0=60.01"
   "y_0=400"
   "ellps=GRS80"
   "datum=NAD83"
   "to_meter=0.3048006096012192"
   "no_defs"
END

Does this work?

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Wednesday, January 20, 2010 10:45 AM
To: 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to fig

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

2010-01-20 Thread Kent Morrison
I think I figured out my own answer. X_0 is the False_easting * the unit 
value... In this case foot_us = 0.3048006096012192



-Original Message-
From: Kent Morrison 
Sent: Wednesday, January 20, 2010 1:49 PM
To: 'Fawcett, David (MPCA)'; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

One question I have is:
1. The PROJECTION settings from spatialreference.org for 
NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet is

  PROJECTION 
"proj=lcc"
"lat_1=47.5"
"lat_2=49.73"
"lat_0=47.0"
"lon_0=-120.83" 
"x_0=50.01"
"y_0=0"
"ellps=GRS80"
"to_meter=0.3048006096012192"
"no_defs"
  END

I can see where all the settings come fro mthe .PRJ file except for the x_0 and 
y_0, where did these come from?

I though tit might be the "False_Easting"/"False_Northing" settings but 
changing x_0 = 1640416.7 caused the images to disapear so that's not 
it. 


The .PRJ file is:

PROJCS["NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet",
GEOGCS["GCS_North_American_1983_HARN",
DATUM["D_North_American_1983_HARN",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1640416.7],
PARAMETER["False_Northing",0.0],
PARAMETER["Central_Meridian",-120.8],
PARAMETER["Standard_Parallel_1",47.5],
PARAMETER["Standard_Parallel_2",48.73],
PARAMETER["Latitude_Of_Origin",47.0],
UNIT["Foot_US",0.3048006096012192]],

VERTCS["NAVD_1988",
VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],
PARAMETER["Direction",1.0],
UNIT["Foot_US",0.3048006096012192]]
 
I need to be able to create the PROJECTION settings from the .PRJ file. My 
application needs to allow users to upload shape files on their own. The 
PROJECTION settings is the last part.



-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Wednesday, January 20, 2010 11:06 AM
To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

If you were just trying to display the data in a simple map, you could go 
without the projection info and still see something if you only wanted to 
display that layer.

Let's add a PROJECTION obj to your layer:

Take a look at http://spatialreference.org/ref/esri/102740/.  I am pretty sure 
that this is the spatial reference system (SRS) that your data is in.  

MapServer uses SRS definitions in Proj.4 format.  Here is a link to this SRS in 
Proj.4:  http://spatialreference.org/ref/esri/102740/proj4/

In your LAYER, add

PROJECTION
   "proj=lcc"
   "lat_1=28.38"
   "lat_2=30.283334"
   "lat_0=27.83"
   "lon_0=-99" 
   "x_0=60.01"
   "y_0=400"
   "ellps=GRS80"
   "datum=NAD83"
   "to_meter=0.3048006096012192"
   "no_defs"
END

Does this work?

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Wednesday, January 20, 2010 10:45 AM
To: 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Nort

[mapserver-users] WMS setup help

2010-05-21 Thread Kent Morrison
I'm trying to get a map file configured to produce tiles using a WMS source 
(http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilities&SERVICE=WMS)

I get the following error:

[Fri May 21 16:33:36 2010].698000 CGI Request 1 on process 3172
[Fri May 21 16:33:36 2010].698000 mapserv(): Web application error. No way to 
generate map extent.
[Fri May 21 16:33:36 2010].698000 msCalculateScale(): General error message. 
Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, 
maxy=-1.00.
[Fri May 21 16:33:36 2010].698000 msTileSetExtent (-10613123.724549, 
3475749.327014) (-10610687.294272, 3478185.757290)
[Fri May 21 16:33:36 2010].698000 msDrawMap(): Drawing Label Cache, 0.000s
[Fri May 21 16:33:36 2010].698000 msDrawMap() total time: 0.000s
[Fri May 21 16:33:36 2010].745000 msSaveImage() total time: 0.047s

My map file is:

MAP

  IMAGETYPE  AGG
  SIZE   256 256
  IMAGECOLOR 255 255 255
  TRANSPARENTON
  FONTSET"../../fonts/fonts.list"

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

  WEB
IMAGEPATH "/tmp/ms_tmp/"
  END #Web

  PROJECTION
 "init=epsg:4326"
  END

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

  LAYER
DEBUG ON

NAME "SatImage"
TYPE RASTER
STATUS ON
CONNECTION 
"http://imsortho.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Texas?";
CONNECTIONTYPE WMS
EXTENT -95.9342769159 28.7882994499 -94.979133 29.1916672087
METADATA
 "wms_srs" "EPSG:4326"
 "wms_name"  "Houston-GalvestonTX_1.0ft_Color_Dec_2007_08"
 "wms_server_version"  "1.1.1"
 "wms_format"  "image/png"
  "wms_latlonboundingbox" "-95.9342769159 28.7882994499 
-94.979133 29.1916672087"

END #METADATA

  END #Layer

END #Map
I have ms4w tools installed.

What am I missing?

Thanks

Kent W. Morrison
Software Development Manager
Advanced Tracking Technologies, Inc.
6001 Savoy, Suite 600, Houston Texas 77036
(W) 713-353-6065 (C) 832-434-8175


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


[mapserver-users] RE: mapserver-users Digest, Vol 28, Issue 46 (Re: WMS setup help)

2010-05-21 Thread Kent Morrison
 
Thanks for the response Jeff. That eleminated the error but I get blank tiles. 
When I look at the WMS using Gaia 3.4.2 I can see the image. Using mapserver I 
get blank tiles for the same area.

The mapserver log shows:
[Fri May 21 18:34:32 2010].534000 CGI Request 1 on process 2928
[Fri May 21 18:34:32 2010].534000 msTileSetExtent (-10566616.570158, 
3404849.205975) (-10547125.127948, 3424340.648185)
[Fri May 21 18:34:32 2010].534000 msDrawMap(): Drawing Label Cache, 0.000s
[Fri May 21 18:34:32 2010].534000 msDrawMap() total time: 0.000s
[Fri May 21 18:34:32 2010].55 msSaveImage() total time: 0.016s
[Fri May 21 18:34:32 2010].565000 mapserv request processing time (loadmap not 
incl.): 0.031s

So it doesn't look like there are any errors.


Does anyone have a map file they used to access USGS WMS theat I can look at?

Thanks,
Kent


Message: 2
Date: Fri, 21 May 2010 14:07:33 -0300
From: Jeff McKenna 
Subject: Re: [mapserver-users] WMS setup help
To: "'mapserver-users@lists.osgeo.org'"

Message-ID: <4bf6bdd5.2060...@gatewaygeomatics.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello Kent,

My guess is that you are missing the EXTENT parameter at the MAP object level.  
In other words, copy the EXTENT line from your LAYER object, and place it after 
your FONTSET line.

I hope that helps.

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services http://www.gatewaygeomatics.com/




Kent Morrison wrote:
> I'm trying to get a map file configured to produce tiles using a WMS 
> source 
> (http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilities&SERVICE=WMS
>  
> <http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilities&SERVICE=WMS>)
>  
> I get the following error:
>  
> [Fri May 21 16:33:36 2010].698000 CGI Request 1 on process 3172
> [Fri May 21 16:33:36 2010].698000 mapserv(): Web application error. No 
> way to generate map extent.
> [Fri May 21 16:33:36 2010].698000 msCalculateScale(): General error 
> message. Invalid image extent, minx=-1.00, miny=-1.00, 
> maxx=-1.00, maxy=-1.00.
> [Fri May 21 16:33:36 2010].698000 msTileSetExtent (-10613123.724549, 
> 3475749.327014) (-10610687.294272, 3478185.757290)
> [Fri May 21 16:33:36 2010].698000 msDrawMap(): Drawing Label Cache, 0.000s
> [Fri May 21 16:33:36 2010].698000 msDrawMap() total time: 0.000s
> [Fri May 21 16:33:36 2010].745000 msSaveImage() total time: 0.047s
>  
> My map file is:
>  
> MAP 
> 
>   IMAGETYPE  AGG
>   SIZE   256 256
>   IMAGECOLOR 255 255 255
>   TRANSPARENTON 
>   FONTSET"../../fonts/fonts.list" 
>
> CONFIG PROJ_LIB "c:\ms4w\proj\nad\" 
> CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt"
> DEBUG 3
>  
>   WEB
> IMAGEPATH "/tmp/ms_tmp/"
>   END #Web
>  
>   PROJECTION
>  "init=epsg:4326" 
>   END
> 
>   OUTPUTFORMAT  
> NAME 'AGG'  
> DRIVER AGG/PNG  
> IMAGEMODE RGB   
>   END #Outputformat 
>  
>   LAYER
> DEBUG ON
>  
> NAME "SatImage"
> TYPE RASTER
> STATUS ON
> CONNECTION 
> "http://imsortho.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Texas?";
> CONNECTIONTYPE WMS
> EXTENT -95.9342769159 28.7882994499 -94.979133 29.1916672087
> METADATA
>  "wms_srs" "EPSG:4326"
>  
> "wms_name"  "Houston-GalvestonTX_1.0ft_Color_Dec_2007_08"
>  "wms_server_version"  "1.1.1"
>  "wms_format"  "image/png" 
>   "wms_latlonboundingbox" "-95.9342769159 28.7882994499 
> -94.979133 29.1916672087"
>  
> END #METADATA
>  
>   END #Layer
>
> END #Map
> I have ms4w tools installed.
>  
> What am I missing?
>  
> Thanks
>  
> Kent W. Morrison
> Software Development Manager
> *Advanced Tracking Technologies, Inc.*
> 6001 Savoy, Suite 600, Houston Texas 77036
> (W) 713-353-6065 (C) 832-434-8175
> <mailto:kmorri...@advantrack.com> 
>  
> 


--



End of mapserver-users Digest, Vol 28, Issue 46
***
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: WMS setup

2010-05-22 Thread Kent Morrison
 
Turned out it was the IMAGEPATH... I had the IMAGEURL as the IMAGEPATH.. Once I 
corrected those two settings it worked like a charm.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
mapserver-users-requ...@lists.osgeo.org
Sent: Saturday, May 22, 2010 11:00 AM
To: mapserver-users@lists.osgeo.org
Subject: mapserver-users Digest, Vol 28, Issue 47

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of mapserver-users digest..."


Today's Topics:

   1. RE: mapserver-users Digest, Vol 28,   Issue 46 (Re: WMS setup
  help) (Kent Morrison)


--

Message: 1
Date: Fri, 21 May 2010 13:40:37 -0500
From: Kent Morrison 
Subject: [mapserver-users] RE: mapserver-users Digest, Vol 28,  Issue
46 (Re: WMS setup help)
To: 'Jeff McKenna' ,
"'mapserver-users@lists.osgeo.org'" 
Message-ID:
<4dcddd4507e4e847920443d1b98c588d1e3d8cf...@mail1.advantrack.local>
Content-Type: text/plain; charset="us-ascii"

 
Thanks for the response Jeff. That eleminated the error but I get blank tiles. 
When I look at the WMS using Gaia 3.4.2 I can see the image. Using mapserver I 
get blank tiles for the same area.

The mapserver log shows:
[Fri May 21 18:34:32 2010].534000 CGI Request 1 on process 2928 [Fri May 21 
18:34:32 2010].534000 msTileSetExtent (-10566616.570158, 3404849.205975) 
(-10547125.127948, 3424340.648185) [Fri May 21 18:34:32 2010].534000 
msDrawMap(): Drawing Label Cache, 0.000s [Fri May 21 18:34:32 2010].534000 
msDrawMap() total time: 0.000s [Fri May 21 18:34:32 2010].55 msSaveImage() 
total time: 0.016s [Fri May 21 18:34:32 2010].565000 mapserv request processing 
time (loadmap not incl.): 0.031s

So it doesn't look like there are any errors.


Does anyone have a map file they used to access USGS WMS theat I can look at?

Thanks,
Kent


Message: 2
Date: Fri, 21 May 2010 14:07:33 -0300
From: Jeff McKenna 
Subject: Re: [mapserver-users] WMS setup help
To: "'mapserver-users@lists.osgeo.org'"

Message-ID: <4bf6bdd5.2060...@gatewaygeomatics.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello Kent,

My guess is that you are missing the EXTENT parameter at the MAP object level.  
In other words, copy the EXTENT line from your LAYER object, and place it after 
your FONTSET line.

I hope that helps.

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services http://www.gatewaygeomatics.com/




Kent Morrison wrote:
> I'm trying to get a map file configured to produce tiles using a WMS 
> source 
> (http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/cap
> abilities_1_1_1.xml?REQUEST=capabilities&SERVICE=WMS
> <http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/cap
> abilities_1_1_1.xml?REQUEST=capabilities&SERVICE=WMS>)
>  
> I get the following error:
>  
> [Fri May 21 16:33:36 2010].698000 CGI Request 1 on process 3172 [Fri 
> May 21 16:33:36 2010].698000 mapserv(): Web application error. No way 
> to generate map extent.
> [Fri May 21 16:33:36 2010].698000 msCalculateScale(): General error 
> message. Invalid image extent, minx=-1.00, miny=-1.00, 
> maxx=-1.00, maxy=-1.00.
> [Fri May 21 16:33:36 2010].698000 msTileSetExtent (-10613123.724549,
> 3475749.327014) (-10610687.294272, 3478185.757290) [Fri May 21 
> 16:33:36 2010].698000 msDrawMap(): Drawing Label Cache, 0.000s [Fri 
> May 21 16:33:36 2010].698000 msDrawMap() total time: 0.000s [Fri May 
> 21 16:33:36 2010].745000 msSaveImage() total time: 0.047s
>  
> My map file is:
>  
> MAP 
> 
>   IMAGETYPE  AGG
>   SIZE   256 256
>   IMAGECOLOR 255 255 255
>   TRANSPARENTON 
>   FONTSET"../../fonts/fonts.list" 
>
> CONFIG PROJ_LIB "c:\ms4w\proj\nad\" 
> CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt"
> DEBUG 3
>  
>   WEB
> IMAGEPATH "/tmp/ms_tmp/"
>   END #Web
>  
>   PROJECTION
>

[mapserver-users] MySQL data

2010-06-17 Thread Kent Morrison
I have data stored in MySQL. When I configure the map file to pull from a small 
subset of the data, tiles are generated correctly. If I change the map file to 
point to the larger master table, map server returns "CGI Timeout". I dont't 
really want to breakdown the master data table into hundreds of smaller tables. 
I need additional informaiton and/or suggestions on how to get mapserver to 
work with millions of rows of data in MySQL.

Kent W. Morrison
Software Development Manager
Advanced Tracking Technologies, Inc.
6001 Savoy, Suite 600, Houston Texas 77036
(W) 713-353-6065 (C) 832-434-8175


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


[mapserver-users] RE: MySQL data

2010-06-23 Thread Kent Morrison
Thanks for the reply. 

Below is the information used to generate tiles from TigerLine data for 1 
county.. The tiles are generated but the perfomance is excutiatinly slow. This 
is a test set of data.

I guess what I need is some guidance on using mapserver with MySQL and how to 
optimize the performance. Ultimately my tables will contain millions of rows of 
data pulled from difference sources.



Versions:
Mysql: 5.1.41
Mapserver: using  MS4W is version 3.0 beta 11  install

Access method: ? (see map file text below)

Spacial data: MySQL geometries

Map File:
MAP  
 
  IMAGETYPE  AGG 
  SIZE   256 256 
  SHAPEPATH  "/mapdata/shapefiles" 
  IMAGECOLOR 255 255 255 
  TRANSPARENTON  
  FONTSET"../fonts/fonts.list"  
  
  EXTENT -95.909985 29.523624 -95.014496 30.110732
   
  CONFIG PROJ_LIB "c:\ms4w\proj\nad\"  
   

CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors.txt" 
DEBUG 2
  
  PROJECTION 
 "init=epsg:4326"  
  END
 
  OUTPUTFORMAT   
NAME 'AGG'   
DRIVER AGG/PNG   
IMAGEMODE RGB
  END #Outputformat  
  
  LAYER
DEBUG ON  

NAMEroads
STATUS  ON
CONNECTIONTYPE OGR

CONNECTION  
"MYSQL:revgeotest,host=tws1r-tj,user=*,password=*,port=3306,tables=tl_2009_48201_edges"
DATA"SELECT SHAPE as the_geom, fullname FROM tl_2009_48201_edges"

TYPELINE  

   CLASS
STYLE
COLOR   0 0 0
WIDTH   8
END #Style
END #End Class

  END #layer
   
   
   
END #Map

-Original Message-
From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] 
Sent: Friday, June 18, 2010 8:39 AM
To: Kent Morrison; 'mapserver-users@lists.osgeo.org'
Subject: RE: MySQL data

Hi Kent: Probably need more information regarding:

  - versions
  - access method (are you using GDAL?)
  - what type of spatial data (MySQL geometries vs points in x/y columns)
  - etc...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison 
[kmorri...@advantrack.com]
Sent: Thursday, June 17, 2010 2:13 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] MySQL data

I have data stored in MySQL. When I configure the map file to pull from a small 
subset of the data, tiles are generated correctly. If I change the map file to 
point to the larger master table, map server returns "CGI Timeout". I dont't 
really want to breakdown the master data table into hundreds of smaller tables. 
I need additional informaiton and/or suggestions on how to get mapserver to 
work with millions of rows of data in MySQL.

Kent W. Morrison
Software Development Manager
Advanced Tracking Technologies, Inc.
6001 Savoy, Suite 600, Houston Texas 77036
(W) 713-353-6065 (C) 832-434-8175
<mailto:kmorri...@advantrack.com>

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


RE: [mapserver-users] RE: MySQL data

2010-06-23 Thread Kent Morrison
Yes.  The SHAPE field is indexed. I looked at the FILTER statement but not sure 
how I can implement that. All the examples I've seen for FILTER have static 
values.

-Original Message-
From: pram...@cleverelephant.ca [mailto:pram...@cleverelephant.ca] On Behalf Of 
Paul Ramsey
Sent: Wednesday, June 23, 2010 1:44 PM
To: Kent Morrison
Cc: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: MySQL data

Did you create spatial indexes on your MySQL tables?

On Wed, Jun 23, 2010 at 11:29 AM, Kent Morrison  
wrote:
> Thanks for the reply.
>
> Below is the information used to generate tiles from TigerLine data for 1 
> county.. The tiles are generated but the perfomance is excutiatinly slow. 
> This is a test set of data.
>
> I guess what I need is some guidance on using mapserver with MySQL and how to 
> optimize the performance. Ultimately my tables will contain millions of rows 
> of data pulled from difference sources.
>
>
>
> Versions:
> Mysql: 5.1.41
> Mapserver: using  MS4W is version 3.0 beta 11  install
>
> Access method: ? (see map file text below)
>
> Spacial data: MySQL geometries
>
> Map File:
> MAP
>
>  IMAGETYPE      AGG
>  SIZE           256 256
>  SHAPEPATH      "/mapdata/shapefiles"
>  IMAGECOLOR     255 255 255
>  TRANSPARENT    ON
>  FONTSET        "../fonts/fonts.list"
>
>  EXTENT -95.909985 29.523624 -95.014496 30.110732
>
>  CONFIG PROJ_LIB "c:\ms4w\proj\nad\"
>
>
> CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors.txt"
> DEBUG 2
>
>  PROJECTION
>     "init=epsg:4326"
>  END
>
>  OUTPUTFORMAT
>    NAME 'AGG'
>    DRIVER AGG/PNG
>    IMAGEMODE RGB
>  END #Outputformat
>
>  LAYER
>    DEBUG ON
>
>    NAME        roads
>    STATUS      ON
>    CONNECTIONTYPE OGR
>
>    CONNECTION  
> "MYSQL:revgeotest,host=tws1r-tj,user=*,password=*,port=3306,tables=tl_2009_48201_edges"
>    DATA        "SELECT SHAPE as the_geom, fullname FROM tl_2009_48201_edges"
>
>    TYPE        LINE
>
>   CLASS
>        STYLE
>                COLOR   0 0 0
>                WIDTH   8
>        END #Style
>    END #End Class
>
>  END #layer
>
>
>
> END #Map
>
> -Original Message-
> From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
> Sent: Friday, June 18, 2010 8:39 AM
> To: Kent Morrison; 'mapserver-users@lists.osgeo.org'
> Subject: RE: MySQL data
>
> Hi Kent: Probably need more information regarding:
>
>  - versions
>  - access method (are you using GDAL?)
>  - what type of spatial data (MySQL geometries vs points in x/y 
> columns)
>  - etc...
>
> Steve
> 
> From: mapserver-users-boun...@lists.osgeo.org 
> [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison 
> [kmorri...@advantrack.com]
> Sent: Thursday, June 17, 2010 2:13 PM
> To: 'mapserver-users@lists.osgeo.org'
> Subject: [mapserver-users] MySQL data
>
> I have data stored in MySQL. When I configure the map file to pull from a 
> small subset of the data, tiles are generated correctly. If I change the map 
> file to point to the larger master table, map server returns "CGI Timeout". I 
> dont't really want to breakdown the master data table into hundreds of 
> smaller tables. I need additional informaiton and/or suggestions on how to 
> get mapserver to work with millions of rows of data in MySQL.
>
> Kent W. Morrison
> Software Development Manager
> Advanced Tracking Technologies, Inc.
> 6001 Savoy, Suite 600, Houston Texas 77036
> (W) 713-353-6065 (C) 832-434-8175
> <mailto:kmorri...@advantrack.com>
>
> ___
> 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: OSM renderer with MapServer (christopher.schm...@nokia.com)

2010-06-28 Thread Kent Morrison
 





I tried to get OSM running on MapServer using the instructions linked below and 
was only partially successful. It would render the coastlines but nothing else 
and there was no error messages in the debug file. 

Kent






Message: 3
Date: Fri, 25 Jun 2010 20:25:19 +0200
From: "christopher.schm...@nokia.com" 
Subject: Re: [mapserver-users] OSM renderer with MapServer
To: 
Cc: mapserver-users@lists.osgeo.org
Message-ID: <058b56d2-801e-4cdf-af06-506432dfd...@nokia.com>
Content-Type: text/plain; charset="Windows-1252"


On Jun 25, 2010, at 1:52 PM, ext Brian Fischer wrote:

> Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap 
> data in the U.S.?  I?m interested in creating a mapfile that displays nice 
> cartographic map for the roads and uses highway shields for the labels.  
> Ultimately turning this into a TMS using tilecache.  Or would people 
> recommend sticking with Mapnik?s stylesheets to render the data into images?  
> I did a few searches and only came across this.  
> http://code.google.com/p/mapserver-utils/source/browse/trunk  I?m new to OSM 
> data so just starting to explore options.
> 

http://trac.osgeo.org/mapserver/wiki/RenderingOsmData leads to that location as 
well; This is the mapfile that is used for the map on the homepage:

  http://mapserver.org/

So it's probably a safe starting point.

Regards,
-- 
Christopher Schmidt
Nokia



--

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


End of mapserver-users Digest, Vol 29, Issue 43
***
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Re: OSM renderer with MapServer (christopher.schm...@nokia.com)

2010-06-28 Thread Kent Morrison
Thanks for the quick feed back.

I've got the map file.. Out sys admin ran it through a preprocessor on a linux 
machien for me. 

I thought the problem was/is probably a projection issue. I made the chaged all 
the "using srid=4326" to "using srid=900913" in all the DATA statements and 
changed all the PROJECTION statements from "init=epsg:4326" to 
"init=epsg:900913".

Every thing renders perfectly now!

If any windows user needs the map file I can email it to you.

Kent



-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: Monday, June 28, 2010 8:40 AM
To: thomas bonfort; Kent Morrison
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Re: OSM renderer with MapServer 
(christopher.schm...@nokia.com)

Hi,

The Windows version of osm2pgsql does not find automatically proj4 libraries 
which are needed for doing import with -l switch or with -E switch. For making 
these switches to work user should install proj4 in some way and set an 
environment variable to point to that location. Too tricky, so I would suggest 
Windows users to import with the default projection 900913. The data can be 
rather fast reprojected afterwards inside PostGIS, if needed.

Windows is also lacking the preprocessor that is needed to build up the final 
mapfile if user is following the cookbook by Thomas. Perhaps there could be 
also a ready compiled mapfile available for Windows users for a quicker start?  


-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: thomas bonfort
Lähetetty: ma 28.6.2010 16:24
Vastaanottaja: Kent Morrison
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Re: OSM renderer with MapServer 
(christopher.schm...@nokia.com)
 
The document needs to be updated. You should either update the mapfiles and 
change "using srid=4326" to "using srid=900913", or reimport the osm data in 
lonlat format (osm2pgsql -l switch).
regards,
thomas

On Mon, Jun 28, 2010 at 15:18, Kent Morrison  wrote:
>
>
>
>
>
>
> I tried to get OSM running on MapServer using the instructions linked below 
> and was only partially successful. It would render the coastlines but nothing 
> else and there was no error messages in the debug file.
>
> Kent
>
>
>
>
>
>
> Message: 3
> Date: Fri, 25 Jun 2010 20:25:19 +0200
> From: "christopher.schm...@nokia.com" 
> Subject: Re: [mapserver-users] OSM renderer with MapServer
> To: 
> Cc: mapserver-users@lists.osgeo.org
> Message-ID: <058b56d2-801e-4cdf-af06-506432dfd...@nokia.com>
> Content-Type: text/plain; charset="Windows-1252"
>
>
> On Jun 25, 2010, at 1:52 PM, ext Brian Fischer wrote:
>
>> Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap 
>> data in the U.S.?  I?m interested in creating a mapfile that displays nice 
>> cartographic map for the roads and uses highway shields for the labels.  
>> Ultimately turning this into a TMS using tilecache.  Or would people 
>> recommend sticking with Mapnik?s stylesheets to render the data into images? 
>>  I did a few searches and only came across this.  
>> http://code.google.com/p/mapserver-utils/source/browse/trunk  I?m new to OSM 
>> data so just starting to explore options.
>>
>
> http://trac.osgeo.org/mapserver/wiki/RenderingOsmData leads to that location 
> as well; This is the mapfile that is used for the map on the homepage:
>
>  http://mapserver.org/
>
> So it's probably a safe starting point.
>
> Regards,
> --
> Christopher Schmidt
> Nokia
>
>
>
> --
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> End of mapserver-users Digest, Vol 29, Issue 43
> ***
> ___
> 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver and tile caching

2010-07-01 Thread Kent Morrison
I'm using mapserver to produce overlays for Bing maps... I'd like to implement 
tile caching. Does anyone have any recommendations for implementing tile 
caching? 

I've setup TileCache using 
(http://viswaug.wordpress.com/2008/02/03/setting-up-tilecache-on-iis/) but I'm 
not sure how to translate that into a Bing implementation instead of openlayers.

Thanks

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