Re: [mapserver-users] Still impossible to force labels inside their polygons?
Jukka, If you look at RFC 81, it is likely that using this placement algorithm with leader lines would also work well with these kinds of parcels. It would be interesting to see how they determine the font size. It looks like it might be based on a function of the horizontal width of the polygon at the label point. It is not clear to me how they compute the label point based on these images. I think they use the leader lines if the horizontal width of the polygon at the label point is less than some %age of the label length. I just updated this ticket. https://github.com/mapserver/mapserver/issues/3948 You guys might want to watch this ticket also and add any additional comments to this ticket so that they are all captured in one place. Thanks, -Steve W On 9/4/2012 2:59 PM, Rahkonen Jukka wrote: Hi, The polygons in the data are cadastrial parcels and user wants that each parcel could be identified right. GetFeatureInfo is not enough because he wants also printed maps. Therefore each parcel should have a label that is readable in some scale. That is not always easy because the size of parcels varies a lot. Here is a reference implementation by the National Land Survey of Finland: http://www.paikkatietoikkuna.fi/web/fi/kartta?zoomLevel=10&coord=271051.5_6947937&mapLayers=base_35+100+!default!,90+100+,99+100+&showMarker=false&forceCache=true NLS has decided to use vertical labels with variable font size for keeping the label text usually inside their polygons. Sometimes there seems to be also leader lines. The result is rather readable but I believe that labels have at least partly set by hand. In the NLS service the labels comes from a readily rasterised layer and they are shown only on three highest zoom levels. Here is another place with very long and narrow parcels. The NLS labeling system does not suit here very well for web browsing because labels are often in a fixed place outside the map window. http://www.paikkatietoikkuna.fi/web/fi/kartta?zoomLevel=10&coord=227539.5_6999494&mapLayers=base_35+100+!default!,90+100+,99+100+&showMarker=false&forceCache=true -Jukka- Stephen Woodbridge wrote: Jukka, Based on your sample image you probably want something like ANGLE AUTO on a polygon to try to compute the longest line that you can insert into the polygon and then label along that. That would do two things, compute an ideal label point and whatever angle you need to position the text. But no this does not exist in mapserver. There are a bunch of label enhancement tickets and a lot of work has been done recently in this area. You could add some of this thread to an appropriate ticket or open a new one if there isn't already one. 6.2 also have offset labels with leaders. In this case it creates a label and draws an arrow to point at the feature. Thomas posted some examples to the list at some point. See: http://mapserver.org/development/rfc/ms-rfc-81.html and google: mapserver offset labels rfc81 I do have a ticket open for labeling a polygon along an interior or exterior edge. The idea being that I want to label country borders. I want the label to FOLLOW the border, but it needs to be offset either inside or outside the polygon. If this were implemented then it would work for your case if you could live with the label inside and along an edge. But it has not been implemented yet. -Steve W On 9/4/2012 11:13 AM, Lime, Steve D (DNR) wrote: It's tough to know what I'm looking at from the picture. What does the layer definition look like? At the moment polygon label point computation tries a couple of approaches get a label point inside the polygon: 1) compute a center of gravity 2) if that computation doesn't work (e.g. point is too close to the edge) then a scanline-based process is used to sample possible positions. The mid-point of the longest y sample is used. It's always trade-off with speed and the above seems a happy medium. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:48 AM To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)' Subject: Re: [mapserver-users] Still impossible to force labels inside their polygons? Hi, Thank you for the answer. A little screenshot shows an example with two label points inside one polygon and one polygon without a label point at all. Perhaps we could have more accurate polygon label positioning on our wish list. -Jukka Rahkonen- Lime, Steve D (DNR) wrote: Aihe: RE: [mapserver-users] Still impossible to force labels inside their polygons? Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you close. However, MINFEATURESIZE AUTO uses bounding box checks and doesn't intersect a feature geometry with its label geometry. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] On Behalf Of
[mapserver-users] getProjection error
I have a map layer that I want to do a simple query-by-point with. Everything look OK and other, similar layers in the project work fine, but when I try to query this particular layer, I get the following error message: Fatal error: Call to a member function getProjection() on a non-object in C:\ms4w_304\apps\basemap\htdocs\php\select.php on line 213 These are the lines of code in the php file: $projection = $map->getProjection(); if($layer->getProjection() != NULL) { This is the section of the .map file for the layer: LAYER NAME 'GeoLibrary_1ft_2003_2005' GROUP 'GeoLibrary_1ft_2003_2005' DATA "/mapserver_data/basemap/ortho1f/ortho1f_index.shp" STATUS on TYPE polygon TRANSPARENCY 50 METADATA "opacity" "50" "queryable" "True" "DESCRIPTION" "Geolibrary 1ft index" "SEARCHFIELD" "tile" "fields" "tile:tilename,location,link" "hyperlink" "link" "wms_title" "Geolibrary 1ft Index" "wms_srs" "EPSG:26919" 'identify_record' 'templates/identify_geolib.html' 'select_record' 'templates/ortho_result.html' 'select_header' 'templates/ortho_header.html' END ---There is a CLASS section below this for the symbology. -As I said, other, similar layers are working just fine with the same query code, and I can't see anything wrong with the shapefile. What else should I be checking? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Still impossible to force labels inside their polygons?
Hi, The polygons in the data are cadastrial parcels and user wants that each parcel could be identified right. GetFeatureInfo is not enough because he wants also printed maps. Therefore each parcel should have a label that is readable in some scale. That is not always easy because the size of parcels varies a lot. Here is a reference implementation by the National Land Survey of Finland: http://www.paikkatietoikkuna.fi/web/fi/kartta?zoomLevel=10&coord=271051.5_6947937&mapLayers=base_35+100+!default!,90+100+,99+100+&showMarker=false&forceCache=true NLS has decided to use vertical labels with variable font size for keeping the label text usually inside their polygons. Sometimes there seems to be also leader lines. The result is rather readable but I believe that labels have at least partly set by hand. In the NLS service the labels comes from a readily rasterised layer and they are shown only on three highest zoom levels. Here is another place with very long and narrow parcels. The NLS labeling system does not suit here very well for web browsing because labels are often in a fixed place outside the map window. http://www.paikkatietoikkuna.fi/web/fi/kartta?zoomLevel=10&coord=227539.5_6999494&mapLayers=base_35+100+!default!,90+100+,99+100+&showMarker=false&forceCache=true -Jukka- Stephen Woodbridge wrote: > Jukka, > Based on your sample image you probably want something like ANGLE AUTO on a polygon to try to compute the longest line that you can insert into the polygon and then label along that. That would do two things, compute an ideal label point and whatever angle you need to position the text. > But no this does not exist in mapserver. There are a bunch of label enhancement tickets and a lot of work has been done recently in this area. You could add some of this thread to an appropriate ticket or open a new one if there isn't already one. > 6.2 also have offset labels with leaders. In this case it creates a label and draws an arrow to point at the feature. Thomas posted some examples to the list at some point. See: http://mapserver.org/development/rfc/ms-rfc-81.html and google: mapserver offset labels rfc81 > I do have a ticket open for labeling a polygon along an interior or exterior edge. The idea being that I want to label country borders. I want the label to FOLLOW the border, but it needs to be offset either inside or outside the polygon. If this were implemented then it would work for your case if you could live with the label inside and along an edge. But it has not been implemented yet. -Steve W On 9/4/2012 11:13 AM, Lime, Steve D (DNR) wrote: > It's tough to know what I'm looking at from the picture. What does > the layer definition look like? > > At the moment polygon label point computation tries a couple of > approaches get a label point inside the polygon: 1) compute a center > of gravity 2) if that computation doesn't work (e.g. point is too > close to the edge) then a scanline-based process is used to sample > possible positions. The mid-point of the longest y sample is used. > > It's always trade-off with speed and the above seems a happy medium. > > Steve > > -Original Message- From: > mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of > Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:48 AM To: > 'Mapserver-Users (mapserver-users@lists.osgeo.org)' Subject: Re: > [mapserver-users] Still impossible to force labels inside their > polygons? > > Hi, > > Thank you for the answer. A little screenshot shows an example with > two label points inside one polygon and one polygon without a label > point at all. Perhaps we could have more accurate polygon label > positioning on our wish list. > > -Jukka Rahkonen- > > > Lime, Steve D (DNR) wrote: > >> Aihe: RE: [mapserver-users] Still impossible to force labels >> inside their polygons? >> >> Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get >> you close. However, MINFEATURESIZE AUTO uses bounding box checks >> and doesn't intersect a feature geometry with its label geometry. >> >> Steve >> >> -Original Message- From: >> mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- >> boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, >> September 04, 2012 9:17 AM To: 'Mapserver-Users >> (mapserver-users@lists.osgeo.org)' Subject: [mapserver-users] Still >> impossible to force labels inside their polygons? >> >> Hi, >> >> Is the short answer by Stephen Woodbridge "No" in the tread >> http://osgeo- >> org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html >> >> still valid? >> >> I have been trying to label a polygon dataset with Mapserver 6.2 >> beta2 and some labels keep on falling outside their polygons. By >> the way, the thread contains an advice that does not work for me: " >> By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point >> at the polygon center. -SteveW " >> >> Is the soluti
Re: [mapserver-users] Still impossible to force labels inside their polygons?
Hi Mark, Sure, options like this are just a matter of code. So you and Jukka should add to and existing ticket or create a new one as appropriate. https://github.com/mapserver/mapserver/issues/3948 The practical issue is getting someone to make that ticket a priority. Patches are welcome, funding can help, etc. Talk to Thomas or other developers if you want to discuss funding. This thread talked about a lot of algorithms, so if one is better than another for your use cases or you need support for multiple positioning options then you should add that to the ticket also. -Steve W On 9/4/2012 2:15 PM, Mark Volz wrote: Hello, I think many users would be able to take advantage of being able to force labels inside polygons. At the same time I realize that the current "bounding box" algorithm is fast. My question is could both be possible? Scenario One: It would be fastest to use a bounding box to creating labels for a polygon that has a rectangular shape such as a section or township. LABEL MINFEATURESIZE AUTO END Scenario Two: Force labels to fit inside a polygon to avoiding ambiguity is more important than speed, such as a soils layer. A ForceLabelInside (or a better keyword) will tell Mapserver to use a slower algorithm to help place the label inside the polygon. This slower, but better placed algorithm might also be used for layers that are cached. LABEL MINFEATURESIZE AUTO ForceLabeInside YES # Possibilities NO (current and default), YES (force label inside), ? END Thanks Mark Volz GIS Specialist It's tough to know what I'm looking at from the picture. What does the layer definition look like? At the moment polygon label point computation tries a couple of approaches get a label point inside the polygon: 1) compute a center of gravity 2) if that computation doesn't work (e.g. point is too close to the edge) then a scanline-based process is used to sample possible positions. The mid-point of the longest y sample is used. It's always trade-off with speed and the above seems a happy medium. 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
Re: [mapserver-users] Still impossible to force labels inside their polygons?
Hello, I think many users would be able to take advantage of being able to force labels inside polygons. At the same time I realize that the current "bounding box" algorithm is fast. My question is could both be possible? Scenario One: It would be fastest to use a bounding box to creating labels for a polygon that has a rectangular shape such as a section or township. LABEL MINFEATURESIZE AUTO END Scenario Two: Force labels to fit inside a polygon to avoiding ambiguity is more important than speed, such as a soils layer. A ForceLabelInside (or a better keyword) will tell Mapserver to use a slower algorithm to help place the label inside the polygon. This slower, but better placed algorithm might also be used for layers that are cached. LABEL MINFEATURESIZE AUTO ForceLabeInside YES # Possibilities NO (current and default), YES (force label inside), ? END Thanks Mark Volz GIS Specialist > It's tough to know what I'm looking at from the picture. What does the layer > definition look like? > > At the moment polygon label point computation tries a couple of approaches > get a label point inside the polygon: 1) compute a center of gravity 2) if > that > computation doesn't work (e.g. point is too close to the edge) then a > scanline-based process is used to sample possible positions. The mid-point of > the longest y sample is used. > > It's always trade-off with speed and the above seems a happy medium. > > Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Still impossible to force labels inside their polygons?
Jukka, Based on your sample image you probably want something like ANGLE AUTO on a polygon to try to compute the longest line that you can insert into the polygon and then label along that. That would do two things, compute an ideal label point and whatever angle you need to position the text. But no this does not exist in mapserver. There are a bunch of label enhancement tickets and a lot of work has been done recently in this area. You could add some of this thread to an appropriate ticket or open a new one if there isn't already one. 6.2 also have offset labels with leaders. In this case it creates a label and draws an arrow to point at the feature. Thomas posted some examples to the list at some point. See: http://mapserver.org/development/rfc/ms-rfc-81.html and google: mapserver offset labels rfc81 I do have a ticket open for labeling a polygon along an interior or exterior edge. The idea being that I want to label country borders. I want the label to FOLLOW the border, but it needs to be offset either inside or outside the polygon. If this were implemented then it would work for your case if you could live with the label inside and along an edge. But it has not been implemented yet. -Steve W On 9/4/2012 11:13 AM, Lime, Steve D (DNR) wrote: It's tough to know what I'm looking at from the picture. What does the layer definition look like? At the moment polygon label point computation tries a couple of approaches get a label point inside the polygon: 1) compute a center of gravity 2) if that computation doesn't work (e.g. point is too close to the edge) then a scanline-based process is used to sample possible positions. The mid-point of the longest y sample is used. It's always trade-off with speed and the above seems a happy medium. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:48 AM To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)' Subject: Re: [mapserver-users] Still impossible to force labels inside their polygons? Hi, Thank you for the answer. A little screenshot shows an example with two label points inside one polygon and one polygon without a label point at all. Perhaps we could have more accurate polygon label positioning on our wish list. -Jukka Rahkonen- Lime, Steve D (DNR) wrote: Aihe: RE: [mapserver-users] Still impossible to force labels inside their polygons? Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you close. However, MINFEATURESIZE AUTO uses bounding box checks and doesn't intersect a feature geometry with its label geometry. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:17 AM To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)' Subject: [mapserver-users] Still impossible to force labels inside their polygons? Hi, Is the short answer by Stephen Woodbridge "No" in the tread http://osgeo- org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html still valid? I have been trying to label a polygon dataset with Mapserver 6.2 beta2 and some labels keep on falling outside their polygons. By the way, the thread contains an advice that does not work for me: " By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point at the polygon center. -SteveW " Is the solution to create a new layer with point-on-surface function and label then this point layer? -Jukka Rahkonen- ___ 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] Still impossible to force labels inside their polygons?
It's tough to know what I'm looking at from the picture. What does the layer definition look like? At the moment polygon label point computation tries a couple of approaches get a label point inside the polygon: 1) compute a center of gravity 2) if that computation doesn't work (e.g. point is too close to the edge) then a scanline-based process is used to sample possible positions. The mid-point of the longest y sample is used. It's always trade-off with speed and the above seems a happy medium. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:48 AM To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)' Subject: Re: [mapserver-users] Still impossible to force labels inside their polygons? Hi, Thank you for the answer. A little screenshot shows an example with two label points inside one polygon and one polygon without a label point at all. Perhaps we could have more accurate polygon label positioning on our wish list. -Jukka Rahkonen- Lime, Steve D (DNR) wrote: > Aihe: RE: [mapserver-users] Still impossible to force labels inside > their polygons? > > Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you > close. However, MINFEATURESIZE AUTO uses bounding box checks and > doesn't intersect a feature geometry with its label geometry. > > Steve > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- > boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Tuesday, September 04, 2012 9:17 AM > To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)' > Subject: [mapserver-users] Still impossible to force labels inside > their polygons? > > Hi, > > Is the short answer by Stephen Woodbridge "No" in the tread > http://osgeo- > org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html > still valid? > > I have been trying to label a polygon dataset with Mapserver 6.2 beta2 > and some labels keep on falling outside their polygons. By the way, > the thread contains an advice that does not work for me: > " By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point > at the polygon center. > -SteveW " > > Is the solution to create a new layer with point-on-surface function > and label then this point layer? > > -Jukka Rahkonen- > ___ > 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] Still impossible to force labels inside their polygons?
Hi, Thank you for the answer. A little screenshot shows an example with two label points inside one polygon and one polygon without a label point at all. Perhaps we could have more accurate polygon label positioning on our wish list. -Jukka Rahkonen- Lime, Steve D (DNR) wrote: > Aihe: RE: [mapserver-users] Still impossible to force labels inside their > polygons? > > Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you > close. However, MINFEATURESIZE AUTO uses bounding box checks and > doesn't intersect a feature geometry with its label geometry. > > Steve > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- > boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Tuesday, September 04, 2012 9:17 AM > To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)' > Subject: [mapserver-users] Still impossible to force labels inside their > polygons? > > Hi, > > Is the short answer by Stephen Woodbridge "No" in the tread http://osgeo- > org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html > still valid? > > I have been trying to label a polygon dataset with Mapserver 6.2 beta2 and > some labels keep on falling outside their polygons. By the way, the thread > contains an advice that does not work for me: > " By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point at > the polygon center. > -SteveW " > > Is the solution to create a new layer with point-on-surface function and label > then this point layer? > > -Jukka Rahkonen- > ___ > 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] Still impossible to force labels inside their polygons?
Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you close. However, MINFEATURESIZE AUTO uses bounding box checks and doesn't intersect a feature geometry with its label geometry. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:17 AM To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)' Subject: [mapserver-users] Still impossible to force labels inside their polygons? Hi, Is the short answer by Stephen Woodbridge "No" in the tread http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html still valid? I have been trying to label a polygon dataset with Mapserver 6.2 beta2 and some labels keep on falling outside their polygons. By the way, the thread contains an advice that does not work for me: " By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point at the polygon center. -SteveW " Is the solution to create a new layer with point-on-surface function and label then this point layer? -Jukka Rahkonen- ___ 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] Fw: mapserver binary for CentOS?
- Forwarded Message - From: Saka Royban To: Prabu Raja Sent: Tuesday, September 4, 2012 6:49 PM Subject: Re: [mapserver-users] mapserver binary for CentOS? Thanks for your help I contacted host admin and he told me they don't allow ssh access because their host is of shared (!) one. I was thinking maybe there is a way to just copy the files into cgi-bin folder, as it is for mapserv.exe and its dependencies (dlls) in MS4W package. However, it seems if i want to use MapServer in CGI mode i have to use a Windows server. Otherwise, i must switch to MapScript which is not recommended for all applications. If there is a way to use CGI Mapserver in this case, please inform me. Regards From: Prabu Raja To: Peter Hopfgartner Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, September 4, 2012 12:12 PM Subject: Re: [mapserver-users] mapserver binary for CentOS? Find below the steps, which I followed to install mapserver on CentOS 6 64 bit sudo rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm yum install mapserver sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/cfitsio-3.240-3.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/fribidi-0.19.2-2.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/libdap-3.11.0-1.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/fcgi-2.4.0-10.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/librx-1.5-14.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/libspatialite-2.4.0-0.6.RC4.el6.x86_64.rpm sudo rpm -Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/libgfortran-4.4.6-4.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/hdf5-1.8.5.patch1-7.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/netcdf-4.1.1-3.el6.2.x86_64.rpm sudo rpm -Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/expat-2.0.1-11.el6_2.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/ogdi-3.2.0-0.14.beta2.el6.x86_64.rpm yum install mapserver cp /usr/libexec/mapserv /var/www/cgi-bin/ On Tue, Sep 4, 2012 at 12:47 PM, Peter Hopfgartner wrote: On 09/04/2012 08:33 AM, Saka Royban wrote: > >Hi guys >> >>I'm a newbie to mapserver and i've been using MS4W for a while. Now, i'm >>gonna use MapServer CGI in my website. So, I asked my host admin of the >>version of Linux and he replied me that CentOS is running on the server. >>Searching internet, unfortunately, i didn't find mapserver binary for CentOS. >>I just found some instructions for building mapserver in Linux but i'm a >>windows follower and hence, not familiar with Linux. >>My host provider supports CGI applications. How can i get a binary MapServer >>compatible with Centos? >> >> >>Best Regards >> >> >> >>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users You'll find some GIS packages here: http://elgis.argeo.org/ > > >-- Peter Hopfgartner web : http://www.r3-gis.com >___ >mapserver-users mailing list >mapserver-users@lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Regards, Prabu Raja ___ 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] Still impossible to force labels inside their polygons?
Hi, Is the short answer by Stephen Woodbridge "No" in the tread http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html still valid? I have been trying to label a polygon dataset with Mapserver 6.2 beta2 and some labels keep on falling outside their polygons. By the way, the thread contains an advice that does not work for me: " By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point at the polygon center. -SteveW " Is the solution to create a new layer with point-on-surface function and label then this point layer? -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How should I add some marker to the map of mapserver
I have a xml file which have many markers containing long& latt info. How I could I import these mark point in the xml file to the mapserver and make it showing in mapserver? -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver binary for CentOS?
Find below the steps, which I followed to install mapserver on CentOS 6 64 bit sudo rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm yum install mapserver sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/cfitsio-3.240-3.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/fribidi-0.19.2-2.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/libdap-3.11.0-1.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/fcgi-2.4.0-10.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/librx-1.5-14.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/libspatialite-2.4.0-0.6.RC4.el6.x86_64.rpm sudo rpm -Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/libgfortran-4.4.6-4.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/hdf5-1.8.5.patch1-7.el6.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/netcdf-4.1.1-3.el6.2.x86_64.rpm sudo rpm -Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/expat-2.0.1-11.el6_2.x86_64.rpm sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/ogdi-3.2.0-0.14.beta2.el6.x86_64.rpm yum install mapserver cp /usr/libexec/mapserv /var/www/cgi-bin/ On Tue, Sep 4, 2012 at 12:47 PM, Peter Hopfgartner < peter.hopfgart...@r3-gis.com> wrote: > On 09/04/2012 08:33 AM, Saka Royban wrote: > > Hi guys > I'm a newbie to mapserver and i've been using MS4W for a while. Now, i'm > gonna use MapServer CGI in my website. So, I asked my host admin of the > version of Linux and he replied me that CentOS is running on the server. > Searching internet, unfortunately, i didn't find mapserver binary for > CentOS. I just found some instructions for building mapserver in Linux but > i'm a windows follower and hence, not familiar with Linux. > My host provider supports CGI applications. How can i get a binary > MapServer compatible with Centos? > > Best Regards > > > ___ > mapserver-users mailing > listmapserver-users@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > You'll find some GIS packages here: http://elgis.argeo.org/ > > -- > Peter Hopfgartner > web : http://www.r3-gis.com > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Regards, Prabu Raja ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver binary for CentOS?
On 09/04/2012 08:33 AM, Saka Royban wrote: Hi guys I'm a newbie to mapserver and i've been using MS4W for a while. Now, i'm gonna use MapServer CGI in my website. So, I asked my host admin of the version of Linux and he replied me that CentOS is running on the server. Searching internet, unfortunately, i didn't find mapserver binary for CentOS. I just found some instructions for building mapserver in Linux but i'm a windows follower and hence, not familiar with Linux. My host provider supports CGI applications. How can i get a binary MapServer compatible with Centos? Best Regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users You'll find some GIS packages here: http://elgis.argeo.org/ -- Peter Hopfgartner web : http://www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users