Re: [mapserver-users] Re: GeoRaster via gdal on Ubuntu
Hi All, problem solved rebuilding MapServer and using the new build thanks On Wed, Aug 11, 2010 at 4:09 PM, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: yes, the mapserv is readin gthe wrong lib... I have just added those PassEnv... Location /cgi-bin/ SetEnv ORACLE_HOME /u01/app/oracle/product/11.2.0/dbhome_1 SetEnv TNS_ADMIN /home/sebas/gdal/ SetEnv LD_LIBRARY_PATH /u01/app/oracle/product/11.2.0/dbhome_1/lib:/home/sebas/gdal/lib SetEnv PATH /home/sebas/gdal/src/swig/python/scripts:/u01/app/oracle/product/11.2.0/dbhome_1/bin:/home/sebas/gdal/bin:/home/sebas/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin PassEnv LD_LIBRARY_PATH PassEnv ORACLE_HOME PassEnv TNS_ADMIN PassEnv PATH /Location and renamed the wrong lib (the dirty trick)l... and still it is trying to read from the wrong libgdal any ideas ? On Wed, Aug 11, 2010 at 3:56 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Daniel Morissette wrote: As I wrote in my previous email, try adding PassEnv LD_LIBRARY_PATH ... to your httpd.conf so that the CGIs get the LD_LIBRARY_PATH value. You'll probably also need a PassEnv directive for all the other env vars that you are setting if you want the CGI to get them. BTW, by httpd.conf I meant in your Apache config. Adding the PassEnv in the Location /cgi-bin/ block in your /etc/apache2/sites-enabled/000-default file after the corresponding SetEnv directives should do as well. -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Sebastian E. Ovide -- Sebastian E. Ovide ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Offset values from database
Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATAgeom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0 ANTIALIAS TRUE ANGLE AUTO OFFSET [offsetX] [offsetY] END Please don't tell me the offsetX, Y values cannot be read from the database. That would be a huge issue for me. Thank you for your time. Best regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Offset values from database
Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 5:48 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATAgeom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0 ANTIALIAS TRUE ANGLE AUTO OFFSET [offsetX] [offsetY] END Please don't tell me the offsetX, Y values cannot be read from the database. That would be a huge issue for me. Thank you for your time. Best regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Offset values from database
Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.uswrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. *From:* mapserver-users-boun...@lists.osgeo.org [mailto: mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Wim Vanbelle *Sent:* Thursday, August 12, 2010 5:48 AM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATAgeom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0 ANTIALIAS TRUE ANGLE AUTO OFFSET [offsetX] [offsetY] END Please don't tell me the offsetX, Y values cannot be read from the database. That would be a huge issue for me. Thank you for your time. Best regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Offset values from database
Maybe this pic helps elaborate on what i'm trying to accomplish: http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png It should be noted that the distance between the 2 (new) lines, should be a fixed value over the zoomlevels. It must not be the case that at the furthest zoomlevel the lines are further apart. I've looked all over for this, but never really found a proper solution. I tried cartographic symbol drawing, but it only draws on the same side every time. Maybe I'm just doing it wrong :). On 12 August 2010 16:28, Wim Vanbelle wimvanbe...@gmail.com wrote: Hello, thanks for your feedback. The issue with this, is that the underlying linestrings (the 2 that would lie on top of eachother), have different colors :(. So they have to be moved apart from one another. I have not found a way to do this with asymmetric line drawing either, as it will always offset to the same side. This is why i would need the offset value to be configurable in the database. I could select a different pixel offset for each line and they would always appear next to eachtoher (no matter what zoomlevel). I can elaborate on the problem more if I am a little too confusing ! On 12 August 2010 16:20, Cristiano Sumariva sumar...@gmail.com wrote: If it is a display problem why not try create some special symbology to overlap one line with another using different symbol strokes. So the user will se that are 2 lines overlayed. 2010/8/12 Wim Vanbelle wimvanbe...@gmail.com Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. *From:* mapserver-users-boun...@lists.osgeo.org [mailto: mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Wim Vanbelle *Sent:* Thursday, August 12, 2010 5:48 AM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATAgeom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0 ANTIALIAS TRUE ANGLE AUTO OFFSET [offsetX] [offsetY] END Please don't tell me the offsetX, Y values cannot be read from the database. That would be a huge issue for me. Thank you for your time. Best regards ___ 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] Offset values from database
Wim, You can do these offsets in pixel values at a class level, just not a feature level. This pretty much does what you are describing, although it gets a little funky when the lines are diagonal and not straight. CLASS STYLE COLOR 0 0 0 WIDTH 2 END STYLE COLOR 255 0 0 WIDTH 2 OFFSET 10 10 END STYLE COLOR 0 255 0 WIDTH 2 OFFSET -10 -10 END END David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 9:32 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database Maybe this pic helps elaborate on what i'm trying to accomplish: http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png It should be noted that the distance between the 2 (new) lines, should be a fixed value over the zoomlevels. It must not be the case that at the furthest zoomlevel the lines are further apart. I've looked all over for this, but never really found a proper solution. I tried cartographic symbol drawing, but it only draws on the same side every time. Maybe I'm just doing it wrong :). On 12 August 2010 16:28, Wim Vanbelle wimvanbe...@gmail.commailto:wimvanbe...@gmail.com wrote: Hello, thanks for your feedback. The issue with this, is that the underlying linestrings (the 2 that would lie on top of eachother), have different colors :(. So they have to be moved apart from one another. I have not found a way to do this with asymmetric line drawing either, as it will always offset to the same side. This is why i would need the offset value to be configurable in the database. I could select a different pixel offset for each line and they would always appear next to eachtoher (no matter what zoomlevel). I can elaborate on the problem more if I am a little too confusing ! On 12 August 2010 16:20, Cristiano Sumariva sumar...@gmail.commailto:sumar...@gmail.com wrote: If it is a display problem why not try create some special symbology to overlap one line with another using different symbol strokes. So the user will se that are 2 lines overlayed. 2010/8/12 Wim Vanbelle wimvanbe...@gmail.commailto:wimvanbe...@gmail.com Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.usmailto:david.fawc...@state.mn.us wrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 5:48 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATAgeom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0 ANTIALIAS TRUE ANGLE AUTO OFFSET [offsetX] [offsetY] END Please don't tell me the offsetX, Y values cannot be read from the database. That would be a huge issue for me. Thank you for your time. Best regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GDAL with MrSID
Where can I find a version of GDAL with MrSID capablities or do I have to recompile my existing GDAL with the MrSID sdk. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] GDAL with MrSID
Eric, You didn't mention what platform you are on. For Windows, the MS4W package has built-in support: http://www.maptools.org/ms4w/ It looks like OSGEO4W also has built-in support: http://trac.osgeo.org/osgeo4w/wiki/PackageListing William's rockin FOSS4G binaries of OSX include MrSID support: http://www.kyngchaos.com/software/frameworks I believe that because of licensing issues, if you want MrSID support on 'nix, you have to build gdal yourself to include Mr. SID support. Some info can be found here: http://trac.osgeo.org/gdal/wiki/MrSID David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Thursday, August 12, 2010 9:50 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] GDAL with MrSID Where can I find a version of GDAL with MrSID capablities or do I have to recompile my existing GDAL with the MrSID sdk. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Offset values from database
the -99 is a special offset value that shifts the line as you are looking for. style color 255 0 0 offset -2 -99 width 2 end style color 0 255 0 offset 2 -99 width 2 end not perfect as there are artifacts on sharp angles, but worth a try. regards, thomas On Thu, Aug 12, 2010 at 16:56, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, You can do these offsets in pixel values at a class level, just not a feature level. This pretty much does what you are describing, although it gets a little funky when the lines are diagonal and not straight. CLASS STYLE COLOR 0 0 0 WIDTH 2 END STYLE COLOR 255 0 0 WIDTH 2 OFFSET 10 10 END STYLE COLOR 0 255 0 WIDTH 2 OFFSET -10 -10 END END David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 9:32 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database Maybe this pic helps elaborate on what i'm trying to accomplish: http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png It should be noted that the distance between the 2 (new) lines, should be a fixed value over the zoomlevels. It must not be the case that at the furthest zoomlevel the lines are further apart. I've looked all over for this, but never really found a proper solution. I tried cartographic symbol drawing, but it only draws on the same side every time. Maybe I'm just doing it wrong :). On 12 August 2010 16:28, Wim Vanbelle wimvanbe...@gmail.com wrote: Hello, thanks for your feedback. The issue with this, is that the underlying linestrings (the 2 that would lie on top of eachother), have different colors :(. So they have to be moved apart from one another. I have not found a way to do this with asymmetric line drawing either, as it will always offset to the same side. This is why i would need the offset value to be configurable in the database. I could select a different pixel offset for each line and they would always appear next to eachtoher (no matter what zoomlevel). I can elaborate on the problem more if I am a little too confusing ! On 12 August 2010 16:20, Cristiano Sumariva sumar...@gmail.com wrote: If it is a display problem why not try create some special symbology to overlap one line with another using different symbol strokes. So the user will se that are 2 lines overlayed. 2010/8/12 Wim Vanbelle wimvanbe...@gmail.com Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 5:48 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATA geom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0 ANTIALIAS TRUE ANGLE AUTO OFFSET [offsetX] [offsetY] END Please don't tell me the offsetX, Y values cannot be read from the database. That would be a huge issue for me. Thank you for your time. Best regards
RE: [mapserver-users] Offset values from database
Thanks Thomas That looks nice in my test example. David. -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Thursday, August 12, 2010 10:45 AM To: Fawcett, David (MPCA) Cc: Wim Vanbelle; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database the -99 is a special offset value that shifts the line as you are looking for. style color 255 0 0 offset -2 -99 width 2 end style color 0 255 0 offset 2 -99 width 2 end not perfect as there are artifacts on sharp angles, but worth a try. regards, thomas On Thu, Aug 12, 2010 at 16:56, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, You can do these offsets in pixel values at a class level, just not a feature level. This pretty much does what you are describing, although it gets a little funky when the lines are diagonal and not straight. CLASS STYLE COLOR 0 0 0 WIDTH 2 END STYLE COLOR 255 0 0 WIDTH 2 OFFSET 10 10 END STYLE COLOR 0 255 0 WIDTH 2 OFFSET -10 -10 END END David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 9:32 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database Maybe this pic helps elaborate on what i'm trying to accomplish: http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png It should be noted that the distance between the 2 (new) lines, should be a fixed value over the zoomlevels. It must not be the case that at the furthest zoomlevel the lines are further apart. I've looked all over for this, but never really found a proper solution. I tried cartographic symbol drawing, but it only draws on the same side every time. Maybe I'm just doing it wrong :). On 12 August 2010 16:28, Wim Vanbelle wimvanbe...@gmail.com wrote: Hello, thanks for your feedback. The issue with this, is that the underlying linestrings (the 2 that would lie on top of eachother), have different colors :(. So they have to be moved apart from one another. I have not found a way to do this with asymmetric line drawing either, as it will always offset to the same side. This is why i would need the offset value to be configurable in the database. I could select a different pixel offset for each line and they would always appear next to eachtoher (no matter what zoomlevel). I can elaborate on the problem more if I am a little too confusing ! On 12 August 2010 16:20, Cristiano Sumariva sumar...@gmail.com wrote: If it is a display problem why not try create some special symbology to overlap one line with another using different symbol strokes. So the user will se that are 2 lines overlayed. 2010/8/12 Wim Vanbelle wimvanbe...@gmail.com Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 5:48 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATA geom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0
Re: [mapserver-users] Offset values from database
Thank you very much everyone. And especially Thomas. That was indeed what I was looking for. You saved me a lot of work! Much appreciated. On 12 August 2010 17:50, Fawcett, David (MPCA) david.fawc...@state.mn.uswrote: Thanks Thomas That looks nice in my test example. David. -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Thursday, August 12, 2010 10:45 AM To: Fawcett, David (MPCA) Cc: Wim Vanbelle; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database the -99 is a special offset value that shifts the line as you are looking for. style color 255 0 0 offset -2 -99 width 2 end style color 0 255 0 offset 2 -99 width 2 end not perfect as there are artifacts on sharp angles, but worth a try. regards, thomas On Thu, Aug 12, 2010 at 16:56, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, You can do these offsets in pixel values at a class level, just not a feature level. This pretty much does what you are describing, although it gets a little funky when the lines are diagonal and not straight. CLASS STYLE COLOR 0 0 0 WIDTH 2 END STYLE COLOR 255 0 0 WIDTH 2 OFFSET 10 10 END STYLE COLOR 0 255 0 WIDTH 2 OFFSET -10 -10 END END David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 9:32 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database Maybe this pic helps elaborate on what i'm trying to accomplish: http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png It should be noted that the distance between the 2 (new) lines, should be a fixed value over the zoomlevels. It must not be the case that at the furthest zoomlevel the lines are further apart. I've looked all over for this, but never really found a proper solution. I tried cartographic symbol drawing, but it only draws on the same side every time. Maybe I'm just doing it wrong :). On 12 August 2010 16:28, Wim Vanbelle wimvanbe...@gmail.com wrote: Hello, thanks for your feedback. The issue with this, is that the underlying linestrings (the 2 that would lie on top of eachother), have different colors :(. So they have to be moved apart from one another. I have not found a way to do this with asymmetric line drawing either, as it will always offset to the same side. This is why i would need the offset value to be configurable in the database. I could select a different pixel offset for each line and they would always appear next to eachtoher (no matter what zoomlevel). I can elaborate on the problem more if I am a little too confusing ! On 12 August 2010 16:20, Cristiano Sumariva sumar...@gmail.com wrote: If it is a display problem why not try create some special symbology to overlap one line with another using different symbol strokes. So the user will se that are 2 lines overlayed. 2010/8/12 Wim Vanbelle wimvanbe...@gmail.com Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 5:48 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Offset values from database Hi, I'm
[mapserver-users] What's wrong with Path Relative?
Hi all helpers, it makes me confuse when i used http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/kec_lbl.maplayers=allmode=map it appear the map (with absolute path) then, when i change folder (Chameleon framework) and change mapfile withRelative Path and checking : http://localhost/cgi-bin/mapserv.exe?map=i:/ms4w/apps/appweb/map/kec_lbl.maplayers=allmode=map APPEAR error: msDrawMap(): Image handling error. Failed to draw layer named 'Kecamatan'. msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/Kecamatan) msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/../shp/Kecamatan) Here the STRUCTURE of FOLDER: i: -ms4w -apps -htdocs(Template .html, .phtml) -appweb -map (all map stored here) -shp (all shp stored here) -etc(fonts) MAPFILE: MAP NAME Kecamatan IMAGETYPE PNG EXTENT -123.950500 -183.224900 299.457000 145.260600 STATUS ON UNITS DD SIZE 546 388 IMAGECOLOR 255 255 255 SHAPEPATH ../shp#??? Is it TRUE?? FONTSET ../etc/font.dat WEB IMAGEPATH ./temp/ IMAGEURL ./temp/ END #PENDEFINISIAN LAYER LAYER NAME Kecamatan DATA Kecamatan STATUS DEFAULT TYPE POLYGON CLASS NAME Kecamatan STYLE COLOR 179 243 251 OUTLINECOLOR 0 0 0 END #STYLE END #CLASS END # DEFINISI LAYER LAYER NAME Anotasi DATA Kecamatan STATUS ON TYPE annotation # asalnya tipe poligon LABELITEM kecamatan CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS END #LAYER END #MAP Thanks alot Helpers, -dbee ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Offset values from database
All, Wondering, would this work for INSIDE/OUTSIDE situations with regard to polygon drawing? Or is the left/right sides of the line strictly relying on the from/to aspects of how the polygon was drawn (clockwise/counterclockwise) This would be handy for off-setting to (ONLY) the inside of a polygon for example. Thanks bobb Wim Vanbelle wimvanbe...@gmail.com wrote: Thank you very much everyone. And especially Thomas. That was indeed what I was looking for. You saved me a lot of work! Much appreciated. On 12 August 2010 17:50, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Thanks Thomas That looks nice in my test example. David. -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Thursday, August 12, 2010 10:45 AM To: Fawcett, David (MPCA) Cc: Wim Vanbelle; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database the -99 is a special offset value that shifts the line as you are looking for. style color 255 0 0 offset -2 -99 width 2 end style color 0 255 0 offset 2 -99 width 2 end not perfect as there are artifacts on sharp angles, but worth a try. regards, thomas On Thu, Aug 12, 2010 at 16:56, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, You can do these offsets in pixel values at a class level, just not a feature level. This pretty much does what you are describing, although it gets a little funky when the lines are diagonal and not straight. CLASS STYLE COLOR 0 0 0 WIDTH 2 END STYLE COLOR 255 0 0 WIDTH 2 OFFSET 10 10 END STYLE COLOR 0 255 0 WIDTH 2 OFFSET -10 -10 END END David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 9:32 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database Maybe this pic helps elaborate on what i'm trying to accomplish: http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png It should be noted that the distance between the 2 (new) lines, should be a fixed value over the zoomlevels. It must not be the case that at the furthest zoomlevel the lines are further apart. I've looked all over for this, but never really found a proper solution. I tried cartographic symbol drawing, but it only draws on the same side every time. Maybe I'm just doing it wrong :). On 12 August 2010 16:28, Wim Vanbelle wimvanbe...@gmail.com wrote: Hello, thanks for your feedback. The issue with this, is that the underlying linestrings (the 2 that would lie on top of eachother), have different colors :(. So they have to be moved apart from one another. I have not found a way to do this with asymmetric line drawing either, as it will always offset to the same side. This is why i would need the offset value to be configurable in the database. I could select a different pixel offset for each line and they would always appear next to eachtoher (no matter what zoomlevel). I can elaborate on the problem more if I am a little too confusing ! On 12 August 2010 16:20, Cristiano Sumariva sumar...@gmail.com wrote: If it is a display problem why not try create some special symbology to overlap one line with another using different symbol strokes. So the user will se that are 2 lines overlayed. 2010/8/12 Wim Vanbelle wimvanbe...@gmail.com Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Cons ider 2 line segments that lie If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 5:48 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile
[mapserver-users] Re: What's wrong with Path Relative?
Already solved. just add sign '/' in the end of CWC2 CWC2 TYPE=MapDHTML VISIBLE=true WIDTH=384 HEIGHT=204 ALLOWRESIZE=true MARQUEECOLOR=#FF MARQUEEWIDTH=2 MINSCALE=1/ Thanks God Cs, All :D From: elisabeth theresia dbee_ka...@yahoo.com To: mapserver-users@lists.osgeo.org Sent: Fri, August 13, 2010 2:39:31 AM Subject: What's wrong with Path Relative? Hi all helpers, it makes me confuse when i used http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/kec_lbl.maplayers=allmode=map it appear the map (with absolute path) then, when i change folder (Chameleon framework) and change mapfile withRelative Path and checking : http://localhost/cgi-bin/mapserv.exe?map=i:/ms4w/apps/appweb/map/kec_lbl.maplayers=allmode=map APPEAR error: msDrawMap(): Image handling error. Failed to draw layer named 'Kecamatan'. msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/Kecamatan) msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/../shp/Kecamatan) Here the STRUCTURE of FOLDER: i: -ms4w -apps -htdocs(Template .html, .phtml) -appweb -map (all map stored here) -shp (all shp stored here) -etc(fonts) MAPFILE: MAP NAME Kecamatan IMAGETYPE PNG EXTENT -123.950500 -183.224900 299.457000 145.260600 STATUS ON UNITS DD SIZE 546 388 IMAGECOLOR 255 255 255 SHAPEPATH ../shp#??? Is it TRUE?? FONTSET ../etc/font.dat WEB IMAGEPATH ./temp/ IMAGEURL ./temp/ END #PENDEFINISIAN LAYER LAYER NAME Kecamatan DATA Kecamatan STATUS DEFAULT TYPE POLYGON CLASS NAME Kecamatan STYLE COLOR 179 243 251 OUTLINECOLOR 0 0 0 END #STYLE END #CLASS END # DEFINISI LAYER LAYER NAME Anotasi DATA Kecamatan STATUS ON TYPE annotation # asalnya tipe poligon LABELITEM kecamatan CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS END #LAYER END #MAP Thanks alot Helpers, -dbee ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] need suggestions to implement simple dynamic zoom, pan select capabilities?!!
hi there... I've been using phpmapscript for on-the fly query displaying the resultant images... Now that I've got this problem that I tried using both mscross openlayers to display the image but somehow I cud not work it out.. I mean in both the above frameworks we need to specify the output image in the sort of URL tag-line style(wms) as below... eg:- http://localhost/index.php?mode=mapmap=/ms4w/apache/htdocs/india_roads1.mapmapext=60+7+102+38.5mapsize=640+480layers=SARDINIA%20india_ds%20IND_water_areas_dcw%20undefined Or may be I am wrong..Can we just specify the location of the resultant image and add all those dynamic zoom,pan functionality in 'Open Layers' i am sory If I am not clear enough but i need some suggestions for some simple script like mscross or soo where I need to add all those dynamic functions to my output image... that's it Thanks...!!@ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/need-suggestions-to-implement-simple-dynamic-zoom-pan-select-capabilities-tp5418885p5418885.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users