[mapserver-users] Re: [mapserver-dev] Build with AGG support at windows
Johan: * you're posting to the devellopment mailing list which is a low traffic list aimed at working on the internals of mapserver. your message belongs to the users mailing list (which I've forwarded it to) * be specific if you want people to be able to help. I happen to know your architecture, but others don't: - your question is how to build on a *windows* platform - the version you're trying to build is *trunk* please keep these recommendations in mind for your next messages. cheers, thomas -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Rép. : [mapserver-users] Problem crea ting WMS
Hi bernardo for your layer, you need a wms_name... to use a getFeatureInfo you need to add (DUMP TRUE) and (TEMPLATE ../templates/todo.html)... the html file dont need to exist...! it's a good idea to specify a TOLERENCE to restrict the search in the map... and use gml_include_items and ows_exclude_items in metadata.. if you work with a RDBMS(postgis or Oracle) dont forget to add your primary key field off your feature class( ... USING UNIQUE ID ... ) in your DATA tag layer... good luck LAYER NAME LEP_V_MUNICIPALITE_GEO GROUP DGEQ CONNECTIONTYPE oraclespatial CONNECTION {..} PROCESSING CLOSE_CONNECTION=DEFER DATA geom_s FROM ADMGEO1.LEP_V_MUNICIPALITE_GEO USING UNIQUE ID SRID 32198 TYPE POLYGON DUMP TRUE TEMPLATE ../templates/todo.html TOLERANCE 10 TOLERANCEUNITS PIXELS MAXSCALE 70 MINSCALE 1 LABELMAXSCALE 20 LABELMINSCALE 1 LABELITEM NM_MUNCP METADATA wms_group_title Référentiel d'adresse wms_name LEP_V_MUNICIPALITE_GEO wms_title Municipalité wms_keywordlist wms_server_version1.1.1 wms_abstract (1/700 000) wms_srs EPSG:2036 EPSG:2037 EPSG:2148 EPSG:2149 EPSG:2150 EPSG:4269 EPSG:4326 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187 EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:42105 EPSG:42304 wms_extent-110 -23500 110 2253500 gml_include_items all gml_exclude_items ID ows_include_items all ows_exclude_items ID END PROJECTION init=epsg:32198 END CLASS NAME Municipalité LABEL OUTLINECOLOR 235 235 235#--Halo TYPE TRUETYPE FONT vera SIZE 8 POSITION AUTO COLOR 123 104 238 MINDISTANCE 5 BUFFER 10 END STYLE SYMBOL 'line_solid' OUTLINECOLOR 123 104 238 SIZE 1 END END END Simon mercier Ministère de la Sécurité publique bernardo [EMAIL PROTECTED] 25/3/2008 18:35 Hello all: I'm trying to create a WMS, but i need to use it with a client named gvSIG. This program cannot read feature info in type text/html, only gml METADATA wms_title Layer wms_srs EPSG:23030 wms_abstract Layer wms_feature_info_mime_type gml #wms_feature_info_mime_type text/html END That i wanna do is to show a web page or url for feature info. Any ideas? Bernardo Martín García Director Técnico iNCARGiS, C.I.G., S.L. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] upload/stream data from GPS unit?
Please let's not hijack my poor thread :)! Anyway, here's my original question: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto [EMAIL PROTECTED] wrote: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth [EMAIL PROTECTED] wrote: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] upload/stream data from GPS unit?
Bill, There are probably many solutions available depending on the various technical components that you might have in the solution. One possible solution might be something along these lines: 1) stream data to some service that you probably have to build 2) have said service load the points into a postgres/postgis database 3) create a mapfile with a LAYER to disply the data from postgis 4) Use a client like OpenLayers to render you map from mapserver 5) add a timer event to refresh your map every X secs -Steve W http://imaptools.com/ Bill Wordsworth wrote: Please let's not hijack my poor thread :)! Anyway, here's my original question: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill ___ 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: Rép. : [mapserver-users] Pr oblem creating WMS
There seems to be lots of confusion around wms_name these days... just to clarify: when setting up a WMS service, it is the layer's NAME member that is used as the name in the GetCapabilities output. The wms_name metadata has no effect on WMS servers, it is a WMS client (i.e. CONNECTIONTYPE WMS) parameter only. Daniel SIMON MERCIER wrote: Hi bernardo for your layer, you need a wms_name... to use a getFeatureInfo you need to add (DUMP TRUE) and (TEMPLATE ../templates/todo.html)... the html file dont need to exist...! it's a good idea to specify a TOLERENCE to restrict the search in the map... and use gml_include_items and ows_exclude_items in metadata.. if you work with a RDBMS(postgis or Oracle) dont forget to add your primary key field off your feature class( ... USING UNIQUE ID ... ) in your DATA tag layer... good luck LAYER NAME LEP_V_MUNICIPALITE_GEO GROUP DGEQ CONNECTIONTYPE oraclespatial CONNECTION {..} PROCESSING CLOSE_CONNECTION=DEFER DATA geom_s FROM ADMGEO1.LEP_V_MUNICIPALITE_GEO USING UNIQUE ID SRID 32198 TYPE POLYGON DUMP TRUE TEMPLATE ../templates/todo.html TOLERANCE 10 TOLERANCEUNITS PIXELS MAXSCALE 70 MINSCALE 1 LABELMAXSCALE 20 LABELMINSCALE 1 LABELITEM NM_MUNCP METADATA wms_group_title Référentiel d'adresse wms_name LEP_V_MUNICIPALITE_GEO wms_title Municipalité wms_keywordlist wms_server_version1.1.1 wms_abstract (1/700 000) wms_srs EPSG:2036 EPSG:2037 EPSG:2148 EPSG:2149 EPSG:2150 EPSG:4269 EPSG:4326 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187 EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:42105 EPSG:42304 wms_extent-110 -23500 110 2253500 gml_include_items all gml_exclude_items ID ows_include_items all ows_exclude_items ID END PROJECTION init=epsg:32198 END CLASS NAME Municipalité LABEL OUTLINECOLOR 235 235 235#--Halo TYPE TRUETYPE FONT vera SIZE 8 POSITION AUTO COLOR 123 104 238 MINDISTANCE 5 BUFFER 10 END STYLE SYMBOL 'line_solid' OUTLINECOLOR 123 104 238 SIZE 1 END END END Simon mercier Ministère de la Sécurité publique bernardo [EMAIL PROTECTED] 25/3/2008 18:35 Hello all: I'm trying to create a WMS, but i need to use it with a client named gvSIG. This program cannot read feature info in type text/html, only gml METADATA wms_title Layer wms_srs EPSG:23030 wms_abstract Layer wms_feature_info_mime_type gml #wms_feature_info_mime_type text/html END That i wanna do is to show a web page or url for feature info. Any ideas? Bernardo Martín García Director Técnico iNCARGiS, C.I.G., S.L. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] upload/stream data from GPS unit?
Thanks Steve. I am clear about the mapping part. I am not so sure about streaming/uploading near-real-time GPS data from on-site to webserver across WPA? Cheers, Bill On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge [EMAIL PROTECTED] wrote: Bill, There are probably many solutions available depending on the various technical components that you might have in the solution. One possible solution might be something along these lines: 1) stream data to some service that you probably have to build 2) have said service load the points into a postgres/postgis database 3) create a mapfile with a LAYER to disply the data from postgis 4) Use a client like OpenLayers to render you map from mapserver 5) add a timer event to refresh your map every X secs -Steve W http://imaptools.com/ Bill Wordsworth wrote: Please let's not hijack my poor thread :)! Anyway, here's my original question: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto: mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill ___ 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] upload/stream data from GPS unit?
Bill, Maybe. It depends what your expectations are with respect to Near-Real-Time. Mapserver can support GDAL/OGR layers if Mapserver is built with GDAL+Expat (not uncommon, but my version isn't built with Expat). I think the layer definition might look something like: LAYER NAME gps TYPE point STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION mygps.gpx CLASS STYLE COLOR 0 0 255 END END END Hopefully (!) there won't be any file access problems if your GPS s/w is creating the gpx file the same time Mapserver/GDAL is trying to read it. We implemented a tracking system a few years ago by writing a program to insert/update positions (received every 30 minutes per gps unit by email) into a PostgreSQL database and have Mapserver read the positions from there. Using a relational database avoids the file locking problem and provided a few other benefits. Another limitation of Mapserver is the fact that is doesn't push any data to the end application (e.g. browser, WMS/WFS client) until it is requested. For example if you show a raster map in a browser and don't refresh it for an hour, your positions as displayed in the browser are an hour old. Of course it is possible to code some html/javascript to request a new map every so often. If your main interest is in how to get the positions from the GPS receivers into a database, as far as I know there are no open standards used directly by the GPS vendors. One open project is http://www.opendmtp.org/. Another effort is the Ham radio APRS (while the radio part is for non-commercial use only, you might be able to use some the ideas in the upper levels of the protocol). In any case, you'll likely need to do some programming/scripting... Brent Fraser GeoAnalytic Inc. Calgary, Alberta - Original Message - From: Bill Wordsworth [EMAIL PROTECTED] To: mapserver-users@lists.osgeo.org Sent: Thursday, March 27, 2008 11:52 AM Subject: Re: [mapserver-users] upload/stream data from GPS unit? Please let's not hijack my poor thread :)! Anyway, here's my original question: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto [EMAIL PROTECTED] wrote: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth [EMAIL PROTECTED] wrote: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill ___ 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] upload/stream data from GPS unit?
Bill, Am still not particularly proficient with MapServer to help with the how -- instead, I'm curious about the how near real time. Within 10 seconds or 10 minutes? Also, how much data? if it is just x,y,z info could you have the machine that's reading the GPS append points to a (say) ShapeFile, and send the whole thing? This would work if your ShapeFile held the last couple of hundred points; Then it might be possible to display those points + another layer that would have an accumulation of the points, and a process on the server that would append the newest points to the accumulated file. I'll confess to being more than a little curious about what you are doing... Ken - Original Message - From: Bill Wordsworth To: mapserver-users@lists.osgeo.org Sent: Thursday, March 27, 2008 1:21 PM Subject: Re: [mapserver-users] upload/stream data from GPS unit? Thanks Steve. I am clear about the mapping part. I am not so sure about streaming/uploading near-real-time GPS data from on-site to webserver across WPA? Cheers, Bill On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge [EMAIL PROTECTED] wrote: Bill, There are probably many solutions available depending on the various technical components that you might have in the solution. One possible solution might be something along these lines: 1) stream data to some service that you probably have to build 2) have said service load the points into a postgres/postgis database 3) create a mapfile with a LAYER to disply the data from postgis 4) Use a client like OpenLayers to render you map from mapserver 5) add a timer event to refresh your map every X secs -Steve W http://imaptools.com/ Bill Wordsworth wrote: Please let's not hijack my poor thread :)! Anyway, here's my original question: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill ___ 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
RE: [mapserver-users] upload/stream data from GPS unit?
My guess is that you will need some sort of device to log the data from the GPS and then transmit it across a wireless network (pager, SMS, cell phone). At your base station, you would have capture the messages, parse them, and then probably stuff the data into a database (PostGIS?). Your MapServer map file could then point to the spatial data layer in PostGIS. Every hit to MapServer would show the latest data. David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Wordsworth Sent: Thursday, March 27, 2008 12:52 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upload/stream data from GPS unit? Please let's not hijack my poor thread :)! Anyway, here's my original question: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto [EMAIL PROTECTED] wrote: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth [EMAIL PROTECTED] wrote: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] upload/stream data from GPS unit?
On Mar 27, 2008, at 12:43 PM, Fawcett, David wrote: My guess is that you will need some sort of device to log the data from the GPS and then transmit it across a wireless network (pager, SMS, cell phone). At your base station, you would have capture the messages, parse them, and then probably stuff the data into a database (PostGIS?). Your MapServer map file could then point to the spatial data layer in PostGIS. Every hit to MapServer would show the latest data. Bill, I would just like to mention that if help with automating this is needed, I could easily develop a solution for Mac OS X. GIS automation on the Mac is my specialty. ;) Cheers, Jeshua Lacock, Owner http://OpenOSX.com phone: 877.240.1364 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] upload/stream data from GPS unit?
On Mar 27, 2008, at 12:43 PM, Fawcett, David wrote: My guess is that you will need some sort of device to log the data from the GPS and then transmit it across a wireless network (pager, SMS, cell phone). At your base station, you would have capture the messages, parse them, and then probably stuff the data into a database (PostGIS?). Your MapServer map file could then point to the spatial data layer in PostGIS. Every hit to MapServer would show the latest data. This is exactly the approach I have taken in providing similar data showing vessel movements track. It works well. Database views queries provide a simple latest (ie, current) position as well as easily permitting automated building of objects like daily paths, etc, for long term warehousing of conveniently packaged path data. Cheers, Brent Wood ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Polygon labeling
Howdy Folks, I would like to label the polygons in my map, however none of the labels seem to fall within my polygons. Instead, they are labeled outside of each shape. I am displaying the polygons as lines in the map. Is that my problem? If so, how do I get around it. I have no wish to fill my polygons with color. Thanks in advance for any help. The relevant portion of my map file is shown below: LAYER # Counties polygon layer begins here NAME CountyLine DATA pgn_ca_county STATUS DEFAULT TYPE LINE LABELITEMName CLASS NAME County Boundary STYLE COLOR0 115 76 WIDTH1 END LABEL# Labeling Test COLOR 132 31 31 #SHADOWCOLOR 218 218 218 #SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 200 BUFFER 4 END END END Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Polygon labeling
Try TYPE POLYGON instead. Thomas Campitelli wrote: Howdy Folks, I would like to label the polygons in my map, however none of the labels seem to fall within my polygons. Instead, they are labeled outside of each shape. I am displaying the polygons as lines in the map. Is that my problem? If so, how do I get around it. I have no wish to fill my polygons with color. Thanks in advance for any help. The relevant portion of my map file is shown below: LAYER # Counties polygon layer begins here NAME CountyLine DATA pgn_ca_county STATUS DEFAULT TYPE LINE LABELITEMName CLASS NAME County Boundary STYLE COLOR0 115 76 WIDTH1 END LABEL# Labeling Test COLOR 132 31 31 #SHADOWCOLOR 218 218 218 #SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 200 BUFFER 4 END END END Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ 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] Polygon labeling
Many thanks for the response. However, it still did not fix this issue. It just puts the label directly on one of the border lines. I suspect that I need to include the county boundaries as a polygon layer and label them. I will see if that gets me anywhere. - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Thomas Campitelli [EMAIL PROTECTED] Sent: Thursday, March 27, 2008 7:06:18 PM Subject: Re: [mapserver-users] Polygon labeling Try: POSITION CC -Original Message- From: Thomas Campitelli [EMAIL PROTECTED] Date: Thu, 27 Mar 2008 17:51:41 To:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Polygon labeling Howdy Folks, I would like to label the polygons in my map, however none of the labels seem to fall within my polygons. Instead, they are labeled outside of each shape. I am displaying the polygons as lines in the map. Is that my problem? If so, how do I get around it. I have no wish to fill my polygons with color. Thanks in advance for any help. The relevant portion of my map file is shown below: LAYER # Counties polygon layer begins here NAME CountyLine DATA pgn_ca_county STATUS DEFAULT TYPE LINE LABELITEMName CLASS NAME County Boundary STYLE COLOR0 115 76 WIDTH1 END LABEL# Labeling Test COLOR 132 31 31 #SHADOWCOLOR 218 218 218 #SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSEMINDISTANCE 200 BUFFER 4 END ENDEND Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Resampling and image quality?
Hi, all. We're seeing some distortion in an image, a loss of viewing quality, and am hoping that y'all can provide some insight into what may be the issue. Here are the URLs: http://dev.geowake.com/chart.test/index.php http://ms2.geowake.com/ Yes, it's Google Maps, but bear with me. :) The dev one is using a PNG sliced for use in Google Maps. The ms2 one is Mapserver WMS, using the same PNG but with a worldfile and without slicing since the idea here is to use WMS and save a lot of work as well as being vendor-neutral. You'll see that the dev one has a much smoother look to it. If you zoom in three notches, you can read the map's title clearly. The Mapserver WMS version, the text is very obviously blocky even if you zoom in 4 notches. As you keep zooming in, the quality difference becomes more obvious as you can read the PNG's smaller text but not the WMS's. So, what to do? I have tried and eliminated several possibilities, and am stumped. - Source image quality; the PNGs on both sides are visually identical in an image viewer. I have tried the source image in TIFF and PNG with various options. - Bad world file; the spatial extent matches that of the other map, and I've checked the math repeatedly and found it A-OK - Image format options; I have tried every image format supported, and the image always comes out looking the same, so it's not interlacing gone wrong, nor lossy JPEG compression, etc. The outputformat block is set to generate PNG-24 RGBA, and I have verified by downloading from the WMS that it is doing so. Possibilities I've not yet exhausted: - Resampling; using PROCESSING RESAMPLE=AVERAGE improved the image quality but only very slightly. - Reprojection; the images are in WGS84 (EPSG 4326) and I know that Google uses their weird Mercator (54004). I added 54004 to our EPSG file, and have tried various approaches such as reprojecting the image to 54004 ahead of time, and using 54004's numbers in a worldfile so there'd be no reprojection at all, but the effect is always the same. Any ideas what's up here? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development hosting services http://www.HostGIS.com/ Remember that no one cares if you can back up, only if you can restore. - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Label Follows streets alignment issue
Hi Thomas, I have noticed that labels in a google style symbology that follow a straight line segment at approximately 45 degrees upper left to lower right and slightly off being aligned with the street. It is just enough to be annoying once you notice it. Have you noticed this? Can this be fixed? Thanks in advance, -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Label Follows streets alignment issue
Hi Thomas, I have noticed that labels in a google style symbology that follow a straight line segment at approximately 45 degrees upper left to lower right and slightly off being aligned with the street. It is just enough to be annoying once you notice it. Have you noticed this? Can this be fixed? Thanks in advance, -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Resampling and image quality?
On 3/27/08, Gregor Mosheh [EMAIL PROTECTED] wrote: Hi, all. We're seeing some distortion in an image, a loss of viewing quality, and am hoping that y'all can provide some insight into what may be the issue. Here are the URLs: http://dev.geowake.com/chart.test/index.php http://ms2.geowake.com/ Yes, it's Google Maps, but bear with me. :) The dev one is using a PNG sliced for use in Google Maps. The ms2 one is Mapserver WMS, using the same PNG but with a worldfile and without slicing since the idea here is to use WMS and save a lot of work as well as being vendor-neutral. You'll see that the dev one has a much smoother look to it. If you zoom in three notches, you can read the map's title clearly. The Mapserver WMS version, the text is very obviously blocky even if you zoom in 4 notches. As you keep zooming in, the quality difference becomes more obvious as you can read the PNG's smaller text but not the WMS's. yikes! The ms2 version is fugly. So, what to do? I have tried and eliminated several possibilities, and am stumped. This sounds really silly, but have you tried with exactly the same image in both instances? That is, not the sliced version for MapServer, but exactly the same one you have for Google Maps? - Source image quality; the PNGs on both sides are visually identical in an image viewer. I have tried the source image in TIFF and PNG with various options. - Bad world file; the spatial extent matches that of the other map, and I've checked the math repeatedly and found it A-OK - Image format options; I have tried every image format supported, and the image always comes out looking the same, so it's not interlacing gone wrong, nor lossy JPEG compression, etc. The outputformat block is set to generate PNG-24 RGBA, and I have verified by downloading from the WMS that it is doing so. Possibilities I've not yet exhausted: - Resampling; using PROCESSING RESAMPLE=AVERAGE improved the image quality but only very slightly. - Reprojection; the images are in WGS84 (EPSG 4326) and I know that Google uses their weird Mercator (54004). I added 54004 to our EPSG file, and have tried various approaches such as reprojecting the image to 54004 ahead of time, and using 54004's numbers in a worldfile so there'd be no reprojection at all, but the effect is always the same. Any ideas what's up here? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development hosting services http://www.HostGIS.com/ Remember that no one cares if you can back up, only if you can restore. - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Puneet Kishor http://punkish.eidesis.org/ Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Resampling and image quality?
I'll be on the plane all day tomorrow, on my way to DC for the PostgreSQL East conference. If I don't reply, it's not personal. :) P Kishor wrote: yikes! The ms2 version is fugly. M hm. This is the first time we've ever compared the PNG with the Mapserver output side by side, especially in a situation where the raster has text in it, so I'm also surprised! This sounds really silly, but have you tried with exactly the same image in both instances? That is, not the sliced version for MapServer, but exactly the same one you have for Google Maps? The one I'm given for use in Mapserver, is the same PNG except left whole and with a world file added. The plain PNG version is sliced for use in a GTileoverlay, but is otherwise the same. Or did I misunderstand the question? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development hosting services http://www.HostGIS.com/ Remember that no one cares if you can back up, only if you can restore. - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Resampling and image quality?
Frank Warmerdam wrote: I zoomed in on both, and I don't see the effect you are talking about. Perhaps you need something a little less error prone, like screen snaps that demonstrate what you are talking about! Sure thing: http://ms2.geowake.com/ms_fullview.png http://ms2.geowake.com/ms_3_notches_in.png http://ms2.geowake.com/ms_5_notches_in.png http://ms2.geowake.com/png_fullview.png http://ms2.geowake.com/png_3_notches_in.png http://ms2.geowake.com/png_5_notches_in.png Note how the png ones lack the jagged crunchy quality, how even the smaller text is legible and smooth at the tighter zoomlevels. The Mapserver one, though, is illegible and looks as if it's been downsized or something. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development hosting services http://www.HostGIS.com/ Remember that no one cares if you can back up, only if you can restore. - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users