From bob.b at GRITECHNOLOGIES.COM Sat Sep 1 00:13:25 2007 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Sat, 1 Sep 2007 02:13:25 -0500 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: Hmm, this look interesting, but it the whole of the 52north product needed for the security features? Thanks bobb Flavio Hendry wrote: > Ed, John & Co. > > might have a look at: > http://52north.org/index.php?option=com_content&task=blogcategory&id=36&Itemid=120 > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > From bob.b at GRITECHNOLOGIES.COM Sat Sep 1 00:15:14 2007 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Sat, 1 Sep 2007 02:15:14 -0500 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: Flavio, Ahh, never mind that previous question, figured it out for myself. bobb Flavio Hendry wrote: > Ed, John & Co. > > might have a look at: > http://52north.org/index.php?option=com_content&task=blogcategory&id=36&Itemid=120 > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > From Jukka.Rahkonen at MMMTIKE.FI Sat Sep 1 00:31:11 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Sat, 1 Sep 2007 10:31:11 +0300 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap Message-ID: Hi, We copied the idea of 52north and deegree OWS proxy and made a small own client that our users download from our web page. It asks the username/password/one-time keycode combination and checks then the rights from our central user rights management service. After that it creates a fake WFS server (it could be WMS as well) on http://localhost:1555 . Then you can continue with whatever WFS client. The server side component is filtering and modifying the getCapabilites document that the client receives as well as getFeature requests from the client before they are sent to the real WFS server that is in our DMZ. None of our user have asked so far any questions about how to use the security proxy so I believe it is easy for them. For us it might have been a better idea to develop further some existing solution instead of making an own, it was more complicated than it seemed first. But at least the proxy is now fluently the same user rights system that all of our other services. -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Flavio Hendry Sent: Sat 1.9.2007 9:26 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] adding support for user authentication within Mapserver for GetCapablities and GetMap Ed, John & Co. might have a look at: http://52north.org/index.php?option=com_content&task=blogcategory&id=36&Itemid=120 Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From bob.b at GRITECHNOLOGIES.COM Sat Sep 1 00:40:23 2007 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Sat, 1 Sep 2007 02:40:23 -0500 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: All, Ok, upon closer scrutiny, this is about what I was thinking about too as far as a "Ticketing" system being used for authentication. Geez, it's in java though and uses Tomcat . . . . I've had way too many problems with this combination in the past especially related to other application/service conflicts with regard to the way that different browsers handle things. Unless you have a fairly captive audience (which I don't) and can dictate to some extent what they are using for browsers, this combination can generate real big problems as far as administration. I'm not even going to talk about versioning conflicts, which is a rant all by itself. I was thinking along the lines of the ticketing authority in combination with session cookies. The cookie mechanism even allows for building of a log-off process. It's not however entirely secure. Still pondering and reading up on this stuff though, thanks for the link. bobb Flavio Hendry wrote: > Ed, John & Co. > > might have a look at: > http://52north.org/index.php?option=com_content&task=blogcategory&id=36&Itemid=120 > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > From gregor at HOSTGIS.COM Sat Sep 1 05:00:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 1 Sep 2007 06:00:18 -0600 Subject: hosted website installation In-Reply-To: <46D8F5EE.7090900@alt2is.com> Message-ID: Tara Athan wrote: > I got as far as the PostgreSQL install and then I ran into a problem here: > setenv LDFLAGS -lstdc++ > -bash: setenv: command not found You're using bash, so do this instead: LDFLAGS="-lstdc++" -- Gregor Mosheh / Greg Allensworth 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 From flavio at TYDAC.CH Sat Sep 1 05:57:26 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 1 Sep 2007 14:57:26 +0200 Subject: AGG is just mindblowing ... In-Reply-To: <46D3EEB3.5157.008F.0@dnr.state.mn.us> Message-ID: Hi Steve > Looks great! Thanks, however there is always room for improvement, played a bit more ... look at it now: http://test.mapserver.ch/ortsplan/frame.php?lang=en&city=pontresina and zoom out or enter i.e. a zoom level of 25km (lower left). this starts to get to real cartography :-)) ciao flavio From crschmidt at METACARTA.COM Sat Sep 1 06:14:02 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Sat, 1 Sep 2007 09:14:02 -0400 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988392@ptolemy.topozone.com> Message-ID: On Sat, Sep 01, 2007 at 12:15:30AM -0400, Ed McNierney wrote: > Christopher - > > Yes, but it is important to remember that the "perspective of the user" > is often more important than the "perspective of the web", and we need > to provide solutions users can actually use, not ones which impressively > adhere to all the aesthetically correct principles but don't actually > work. Completely agreed. The fact that it is the best possible solution doesn't make it a 'correct' solution though: Having users use this particular solution is encouraging them to do something potentially dangerous, and because it's "not the way of the web", they should be warned that they are doing so that in order to make correct choices based on that fact. (Like choosing throwaway password, or possibly even generating it for them, rather than having them use one of their own.) I completely agree that you have to do whatever it takes to get the job done. If you're working in the web browser, you're in luck, since the browser takes care of this problem for you, and you can use HTTP authentication. That's a great thing to have. When you're working outside the browser, however, I agree that the lack of standard on this is frustration -- -- but I'm not sure that it changes the point of what the *right* thing to do is. The fact that the standard is looking to be anything other than asking WMS clients to support HTTP authentication seems like a problem that was originally brought up by Sean. I don't know if he was neccesarily saying that all clients should only use HTTP Auth -- I know I wasn't -- but rather that the standard should prescribe HTTP Auth, and then clients should support it. But, as you said, it doesn't matter what should happen: what matters is what happens, and what needs to be done in order to get something working for your use case. In the browser-as-client environment, the answer seems simple: Use HTTP Auth. Then, your auth can take place outside your MapServer CGI, and you don't get tangled up in a big mess of anything. The browser implements these things for you, and your webserver implements the other half. In other environments, you'll have to be more creative. You could have users sign in on a website, then store their IP as a user for a certain period of time (until they are inactive for 6 hours, for example) and allow traffic from that IP through. That could still be done 'outside' mapserver, using your favorite mod_foo bindings to write the authentication module. Or maybe you really do need to stick the username and password into the URL, for tracking, but be aware that those are easily copyable, more likely to be found by spiders, etc., so it may make more sense to tie it only to a token, perhaps one which expires after a certain time period, rather than a username and password, the exposure of which could be annoying at best, and crippling at worst. In the end, the authentication mechanism you choose needs to be down to you -- and if the "W" in "WMS" really wants to live up to its name, maybe it's time to start forcing the hand of standards bodies and client authors to support HTTP auth as a simple authentication scheme for accessing WMS servers. OpenLayers is already there. :) Regards, -- Christopher Schmidt MetaCarta From ed at TOPOZONE.COM Sat Sep 1 08:57:14 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 1 Sep 2007 11:57:14 -0400 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: A<20070901131402.GA28513@metacarta.com> Message-ID: Christopher - "the authentication mechanism you choose needs to be down to you" - actually, in this case, ESRI actually gets to make the choice , and they made a spectacularly poor one. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Schmidt Sent: Saturday, September 01, 2007 9:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] adding support for user authentication within Mapserver for GetCapablities and GetMap On Sat, Sep 01, 2007 at 12:15:30AM -0400, Ed McNierney wrote: > Christopher - > > Yes, but it is important to remember that the "perspective of the user" > is often more important than the "perspective of the web", and we need > to provide solutions users can actually use, not ones which impressively > adhere to all the aesthetically correct principles but don't actually > work. Completely agreed. The fact that it is the best possible solution doesn't make it a 'correct' solution though: Having users use this particular solution is encouraging them to do something potentially dangerous, and because it's "not the way of the web", they should be warned that they are doing so that in order to make correct choices based on that fact. (Like choosing throwaway password, or possibly even generating it for them, rather than having them use one of their own.) I completely agree that you have to do whatever it takes to get the job done. If you're working in the web browser, you're in luck, since the browser takes care of this problem for you, and you can use HTTP authentication. That's a great thing to have. When you're working outside the browser, however, I agree that the lack of standard on this is frustration -- -- but I'm not sure that it changes the point of what the *right* thing to do is. The fact that the standard is looking to be anything other than asking WMS clients to support HTTP authentication seems like a problem that was originally brought up by Sean. I don't know if he was neccesarily saying that all clients should only use HTTP Auth -- I know I wasn't -- but rather that the standard should prescribe HTTP Auth, and then clients should support it. But, as you said, it doesn't matter what should happen: what matters is what happens, and what needs to be done in order to get something working for your use case. In the browser-as-client environment, the answer seems simple: Use HTTP Auth. Then, your auth can take place outside your MapServer CGI, and you don't get tangled up in a big mess of anything. The browser implements these things for you, and your webserver implements the other half. In other environments, you'll have to be more creative. You could have users sign in on a website, then store their IP as a user for a certain period of time (until they are inactive for 6 hours, for example) and allow traffic from that IP through. That could still be done 'outside' mapserver, using your favorite mod_foo bindings to write the authentication module. Or maybe you really do need to stick the username and password into the URL, for tracking, but be aware that those are easily copyable, more likely to be found by spiders, etc., so it may make more sense to tie it only to a token, perhaps one which expires after a certain time period, rather than a username and password, the exposure of which could be annoying at best, and crippling at worst. In the end, the authentication mechanism you choose needs to be down to you -- and if the "W" in "WMS" really wants to live up to its name, maybe it's time to start forcing the hand of standards bodies and client authors to support HTTP auth as a simple authentication scheme for accessing WMS servers. OpenLayers is already there. :) Regards, -- Christopher Schmidt MetaCarta From gregor at HOSTGIS.COM Sat Sep 1 11:20:43 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 1 Sep 2007 12:20:43 -0600 Subject: Image formats: Performance Testing: Test 1 Message-ID: A customer asked me to do some tests on TIFF, JPEG2000, and ECW, and rate their relative merits in terms of disk usage, performance/speed, and image quality. I can't say that the results are surprising, but at least I have some procedures and empirical numbers to back it up. For the impatient ones, skip to the Results section at the end. :) I will be repeating this with larger files, as well as testing the effects of overviews and internal tiling, on my own time. This test of 200 MB files was intended to represent the customer's typical use case. *** DATA AND SETUP The dataset used for this test is infrared false-color imagery of Eureka, California. The pixel size of the data is 10684x6983 pixels. The spatial extent of the data is: -124.1987173 40.7379805 -124.0836036 40.8132182 The original TIFF was reprojected from UTM to geographic using gdalwarp. It was then converted using gdal_translate to generate the ECW and JPEG2000 versions. As such, all images are identical data and all are in the same projection. A mapfile was created listing three layers, named ECW, TIFF, and JPEG2000, each reading from the corresponding data source. *** TESTING I chose to use the shp2img program, rather than web-based rendering using OpenLayers or Mapscript, in order to eliminate many of the variables associated with timing, e.g. network lag and delays within the client. I chose PNG-24 as the output format since this is what we ually use, for its combination of quality and color fdelity The commands, runtimes, and URLs of the resulting images are as follows: shp2img -m mapfile.map -l TIFF -o tiff-fullview.png Time: 0.725s https://www.cartograph.com/~gregor/formats/tiff-fullview.png shp2img -m mapfile.map -l ECW -o ecw-fullview.png Time: 3.069s https://www.cartograph.com/~gregor/formats/ecw-fullview.png shp2img -m mapfile.map -l JPEG2000 -o jpeg-fullview.png Time: 6.071s https://www.cartograph.com/~gregor/formats/jpeg-fullview.png shp2img -m mapfile.map -l TIFF -e -124.1987173 40.7379805 -124.14116045 40.77559935 -o tiff-quad.png Time: 0.833s https://www.cartograph.com/~gregor/formats/tiff-quad.png shp2img -m mapfile.map -l ECW -e -124.1987173 40.7379805 -124.14116045 40.77559935 -o ecw-quad.png Time: 3.070s https://www.cartograph.com/~gregor/formats/ecw-quad.png shp2img -m mapfile.map -l JPEG2000 -e -124.1987173 40.7379805 -124.14116045 40.77559935 -o jpeg-quad.png Time: 9.073s https://www.cartograph.com/~gregor/formats/jpeg-quad.png *** RESULTS Storage space: TIFF: 213 MB, ECW: 60 MB, JPEG2000: 87 MB Both ECW and JPEG offered sustantial reductions in storage space requirements, ECW best of all. Rendering speed: TIFF was the fastest to render, while ECW was significantly slower. JPEG2000 was very slow. When seeking a subset of the data, these results continued, though JPEG2000 showed a very significant slowdown on this very common task. Image quality: The original photo had a grainy quality to it. Although unattractive to the eye, these grains do represent fine-detail data, useful for analyzing the loss of such quality. As expected, TIFF retained all of the fine detail. ECW also showed high fidelity to the original image. JPEG2000 showed the most loss of the grainy detail, although in this case it did make for a "smoothing" effect which was not unattractive. *** CONCLUSION ECW and JPEG2000 both provide very good compression, resulting in a 65% reduction in storage requirements. Both ECW and JPEG2000 showed some loss of image quality, but the results are quite acceptable considering the reduction in storage space. At the file sizes which we typically use (up to 300 MB TIFFs), both ECW and JPEG2000 are probably too slow for our needs. With very large TIFFs, the disk access can often outweight the CPU speed and cause TIFF to be slower than other formats, but in the 200 MB size range, this is not the case. From sgillies at FRII.COM Sat Sep 1 13:12:13 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 1 Sep 2007 14:12:13 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: Christopher Schmidt wrote: > On Fri, Aug 31, 2007 at 11:05:23PM -0400, Ed McNierney wrote: >> So we need to compromise to live in the real world. The "wrapper" script is one way to do that. If I create a wrapper PHP script such that my WMS Resource URI changes from: >> >> http://my.server.com/mapserv?map=my.map& >> >> to: >> >> http://my.server.com/mapserv.php?user=me&password=secret& >> >> then I'm really not doing anything different than what HTTP Basic authentication is doing, except for putting a few of the bytes in different places in the HTTP request. It is hard to see that using HTTP Basic authentication is fundamentally the Right Way and the querystring parameters is the Evil Way, since they are almost identical. Perhaps the wrapper approach even has the benefit of reminding the user that their id and password are being sent as clear text! > > Actually, clear-text passwords in the URL string are certainly the > 'wrong way' from the perspective of the web -- because they can be > cached by proxies. So, your credentials will now be stored in a proxy > somewhere, and if the logs of the server are web accessible (even in > limited form, as is often the case with web log analyzers) your password > and username are accessible that way, etc. > > Now, whether the mechanism described here makes the situation more > possible to use in various clients is a different question entirely, but > it is clear that there are a number of reasons why embedding the > username and password in a GET request string is bad for users. > > Passing something along in clear text is different from putting it in > the URL string, because the URL string is, by the nature of the way the > web works, designed to be public + sharable, which is something silghtly > different. > > Regards, Good points. Ed, I appreciate the need to be pragmatic. At the same time, we need to start pushing back against crappy client software, and start advocating for and implementing with best practices or the situation is just going to get worse. (The cynic in me feels that service providers like proprietary auth for its potential to lock-in customers. Free services are interchangeable, for-fee services less so.) I've got some great ideas for making per-layer CGI auth issues go away (or at least move them to a more appropriate layer of your system). Look me up at FOSS4G and fill my beer glass if you want to hear them ;) Cheers, Sean From ezenaide at GMAIL.COM Sat Sep 1 13:17:16 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Sat, 1 Sep 2007 17:17:16 -0300 Subject: Odd query result In-Reply-To: <7af310f80708241042k14100c4anfe86b21879aeefda@mail.gmail.com> Message-ID: nobody? :( 2007/8/24, Eduardo Zenaide : > > hi all, > > i'm experiencing something odd here. > i have a soil layer with some IDs. its dbf is something like: > > leg_solos > > PVA > PA > RL > SX > RL > RY > RR > ... > > when i do the query, using ROSA i click in a RL polygon. it returns: > > SX > RR > RL > PA > PA > PVA > PVA > RY > RY > > any other polygon returns same results - only changes the one in query > and, sometimes, PAs appear above. like: > > SX > RR > PA > PA > SX > PVA > PVA > RY > RY > > (when querying SX polygon) > > here a visual example: > http://www.uep.cnps.embrapa.br/imagens/queryexemplo.jpg > > my map file (its really big, so i'm just sending relevant layer and > classes): > > LAYER > NAME Solos_AL > METADATA > "DESCRIPTION" "Solos" > "RESULT_FIELDS" "Leg_solos" > "RESULT_HEADERS" "C?digo" > END > LABELITEM "Leg_solos" > LABELCACHE ON > TYPE POLYGON > STATUS OFF > DATA Solos_AL > CLASSITEM "Leg_solos" > TOLERANCE 0 > TOLERANCEUNITS pixels > CLASS > NAME "PA" > EXPRESSION "PA" > STYLE > COLOR 253 241 240 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > TEMPLATE "templates/template_solos.html" > END > CLASS > NAME "PVA" > EXPRESSION "PVA" > STYLE > COLOR 249 210 205 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > TEMPLATE "templates/template_solos.html" > END > CLASS > NAME "RL" > EXPRESSION "RL" > STYLE > COLOR 150 149 149 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > TEMPLATE "templates/template_solos.html" > END > CLASS > NAME "RY" > EXPRESSION "RY" > STYLE > COLOR 238 235 220 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > TEMPLATE "templates/template_solos.html" > END > CLASS > NAME "RR" > EXPRESSION "RR" > STYLE > COLOR 207 206 206 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > TEMPLATE "templates/template_solos.html" > END > CLASS > NAME "SX" > EXPRESSION "SX" > STYLE > COLOR 181 214 174 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > TEMPLATE "templates/template_solos.html" > END > END # layer Solos_final_dd > > ######################## > > any thoughts? > > thanks :) > > > -- > Eduardo Zenaide -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Sat Sep 1 14:12:53 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 1 Sep 2007 15:12:53 -0600 Subject: Image formats: Performance Testing: Test 2 Message-ID: I repeated the experiment with larger files. Very interesting. At the 500 MB or larger size, JPEG2000 rivals ECW in speed, and the speed difference from TIFF diminishes. This seems to bear out a theory I had that TIFF is best for images up to 1 GB, but above that, a wavelet-based compressor is more appropriate as the disk seeks become more expensive than the CPU time. I can't test with input larger than 500 MB, due to ECW's licensing restrictions, so if anyone does have a licensed unlimited-size ECW compressor, and cares to repeat this experiment, I would love to hear about it. *** SETUP The data is USGS DOQQs (black-n-white) of San Francisco, California. Several DOQQs were downloaded and merged into a single GeoTIFF using gdal_merge.py. Then gdal_translate was used to create ECW and JPEG2000 equivalents. All images use the same projection: EPSG 26910, aka UTM zone 10N with NAD83 datum. The spatial extent observed is: 543577.000 4150151.000 555545.000 4192431.000 A mapfile is created specifying three layers, named TIFF, ECW, and JPEG2000, each one reading from the corresponding raster. No reprojection is being done in the mapfile. *** STORAGE SPACE TIFF, 483 MB ECW, 98 MB JPEG2000, 114 MB Obviously, both ECW and JPEG2000 provide significant benefits over TIFF as far as storage space. *** RUNTIME PERFORMANCE # full view of the region shp2img -m mapfile.map -l ECW -o ecw-fullview.png Time: 3.076s shp2img -m mapfile.map -l JPEG2000 -o jpeg2000-fullview.png Time: 3.075s shp2img -m mapfile.map -l TIFF -o tiff-fullview.png Time: 0.480s # one square kilometer. that's 1/480 of the full square area shp2img -m mapfile.map -l ECW -e 549561 4150150 550561 4151150 -o ecw-1km.png Time: 3.077s shp2img -m mapfile.map -l JPEG2000 -e 549561 4150150 550561 4151150 -o jpeg2000-1km.png Time: 3.073s shp2img -m mapfile.map -l TIFF -e 549561 4150150 550561 4151150 -o tiff-1km.png Time: 1.065s As with the experiment with smaller files, we see that TIFF is a significantly faster format than the other two. However, the time difference has shrunk from 4:1 to about 1.7:1 Strangely, JPEG2000's speed is not the same as it was with the other experiment, despite repeated checks and re-runs. At the 500 MB file size range, JPEG2000's speed closely rivals that of ECW -- JPEG2000 seems to run faster on this trial, by some margin. (no reprojection in either experiment, very odd) *** IMAGE QUALITY https://www.cartograph.com/~gregor/formats2/ecw-fullview.png https://www.cartograph.com/~gregor/formats2/jpeg2000-fullview.png https://www.cartograph.com/~gregor/formats2/tiff-fullview.png https://www.cartograph.com/~gregor/formats2/ecw-1km.png https://www.cartograph.com/~gregor/formats2/jpeg2000-1km.png https://www.cartograph.com/~gregor/formats2/tiff-1km.png As with the other experiment, the wavelet-based ECW and JPEG2000 formats lost some degree of fine detail. However, this loss of detail manifested gracefully as a "smoothing" effect of otherwise grainy features. From tara_athan at ALT2IS.COM Sat Sep 1 14:45:18 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Sat, 1 Sep 2007 14:45:18 -0700 Subject: hosted website installation In-Reply-To: <46D95452.50204@hostgis.com> Message-ID: That command seemed to work OK, this is the line in the config.log configure:2306: gcc -o conftest -lstdc++ conftest.c >&5 However, I get this error message from the ./configure command: checking test program... failed configure: error: Could not execute a simple test program. This may be a problem related to locating shared libraries. Check the file 'config.log' for the exact reason. I looked at config.log but I'm not sure what I am looking for. I copied it to http://alt2is.com/mapserver/ if you are interested. Backing up a little bit, do I have to install PostgreSQL in the local directory? It is available on my webserver, but the version is 7.4.13 I haven't seen anything specific anywhere about what version of psql is required for mapserver. I did find this statement "If you intend to use your system's libgd, ensure that you have the development package also installed so MapServer can find and use the appropriate headers." on the website http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/#introduction I suppose this might apply if I am using the system's psql. Unfortunately I haven't a clue what it means. Taking an even broader perspective, I am starting to wonder if installing MapServer on a shared server is really a good idea. It seems that it is necessary to be fairly expert at Linux system administration in order to get MapServer working in such an environment. This is not the typical background of someone with a website on a shared server- (it certainly goes way beyond the Linux courses I have taken.) And if that is the case, it might be easier just to setup one's own webserver. Also, since I have subscribed to this list I have seen a discussion about how a certain Mapserver application caused the server to crash. I suspect that if something like that happened with MapServer that I had installed on a shared server, my account would be cancelled. Its one thing to crash the webserver for one's own site, quite another to crash it in a shared system. Tara Gregor Mosheh wrote: > Tara Athan wrote: >> I got as far as the PostgreSQL install and then I ran into a problem >> here: >> setenv LDFLAGS -lstdc++ >> -bash: setenv: command not found > > You're using bash, so do this instead: > > LDFLAGS="-lstdc++" > -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan at alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From gregor at HOSTGIS.COM Sat Sep 1 14:55:22 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 1 Sep 2007 15:55:22 -0600 Subject: hosted website installation In-Reply-To: <46D9DD6E.8040206@alt2is.com> Message-ID: Tara Athan wrote: > However, I get this error message from the ./configure command: > checking test program... failed > configure: error: > Could not execute a simple test program. This may be a problem > related to locating shared libraries. Check the file 'config.log' > for the exact reason. Go into the config.log, and work backward until you find the complaint it reported. I see it: configure:17451: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -D_GNU_SOURCE -I/home/alttwois/usr/local/include -lstdc++ -L/home/alttwois/usr/local/lib conftest.c -lz -lreadline -ltermcap -lcrypt -ldl -lm >&5 configure:17454: $? = 0 configure:17456: ./conftest ./conftest: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory configure:17459: $? = 127 configure: program exited with status 127 configure: failed program was: Your compiler setup can't even find the readline library. Ouch. I think you can compile PgSQL --without-readline, but scraping by without line history editing isn't pleasant. -- Gregor Mosheh / Greg Allensworth 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 From gregor at HOSTGIS.COM Sat Sep 1 15:59:30 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 1 Sep 2007 16:59:30 -0600 Subject: TIFF performance: overviews and internal tiles: Surprise! Message-ID: This test compares the effect of overviews and internal tiling on the performance of a TIFF raster data source. *** SETUP The data is USGS DOQQs (black-n-white) of San Francisco, California. Several DOQQs were downloaded and merged into a single GeoTIFF using gdal_merge.py. I then created three copies of the TIFF, with overviews, with internal tiling, and with both: cp original.tif overviews.tif gdaladdo overviews.tif 2 4 8 16 32 gdal_translate -co "TILED=YES" original.tif tiled.tif gdal_translate -co "TILED=YES" original.tif tiledandoverviews.tif gdaladdo tiledandoverviews.tif 2 4 8 16 32 This set of overviews for this particular TIFF gives the following overview resolutions: 5984x21140, 2992x10570, 1496x5285, 748x2643, 374x1322 All images use the same projection: EPSG 26910, aka UTM zone 10N with NAD83 datum. The spatial extent observed is: 543577.000 4150151.000 555545.000 4192431.000 A mapfile is created specifying three layers, named BARE, OVERVIEW, TILE, BOTH, each one reading from the corresponding raster. No reprojection is being done in the mapfile. *** STORAGE SPACE original.tif 483 MB overviews.tif 646 MB tiled.tif 487 MB tiledandoverviews.tif 651 MB As was expected, adding overviews increases the file size by some 33% while internal tiling adds only 4-5 MB to the file size. *** RUNTIME SPEED # full view of the region shp2img -m mapfile.map -l BARE -o bare-fullview.png Time: 0.484s shp2img -m mapfile.map -l OVERVIEW -o overview-fullview.png Time: 0.460s shp2img -m mapfile.map -l TILE -o tile-fullview.png Time: 1.187s shp2img -m mapfile.map -l BOTH -o both-fullview.png Time: 0.457s # 1 square kilometer pulled from the map shp2img -m mapfile.map -l BARE -e 549561 4150150 550561 4151150 -o bare-1km.png Time: 1.072s shp2img -m mapfile.map -l OVERVIEW -e 549561 4150150 550561 4151150 -o overview-1km.png Time: 1.066s shp2img -m mapfile.map -l TILE -e 549561 4150150 550561 4151150 -o tile-1km.png Time: 1.034s shp2img -m mapfile.map -l BOTH -e 549561 4150150 550561 4151150 -o both-1km.png Time: 1.042s # a 3km square pulled from the map shp2img -m mapfile.map -l BARE -e 547561 4149150 550561 4152150 -o bare-1km.png Time: 0.839s shp2img -m mapfile.map -l OVERVIEW -e 547561 4149150 550561 4152150 -o overview-1km.png Time: 0.822s shp2img -m mapfile.map -l TILE -e 547561 4149150 550561 4152150 -o tile-1km.png Time: 0.840s shp2img -m mapfile.map -l BOTH -e 547561 4149150 550561 4152150 -o both-1km.png Time: 0.825s At the full view, tiling actually hurt performance; presumably this was due to it seeking tiles and eventually not saving any time/seeks anyway. At the close-up views, I was quite surprised to see that tiles and overviews did indeed have an effect, but that the effect was only in the dozens of microseconds. I then repeated this experiment by fetching several more DOQQs and merging them into a 1 GB TIFF, then repeating the same generation and testing steps as above. * The tiling and overview size increase was basically the same: 4 MB fixed growth for tiles, and 33% growth for overviews. * The full views, all times remained in the same ratio, but increased by 50%. Not bad, considering that there was a 100% increase in file size. * For both the 1km and 2km extraction, the times were basically the same as for the 500 MB test above. The increased file size made a difference of 0.016s in the most dramatic case, which was that of the "bare" GeoTIFF. Other increases were 7 and 10ms. I then repeated again with a 2 GB GeoTIFF (just keep adding counties til I hit the limit, right?). Full view: BARE 0.806s OVERVIEW 0.759s TILE 2.238s BOTH 0.747s 2km square: BARE 0.867s OVERVIEW 0.832s TILE 0.840s BOTH 0.828s Again the same results! The conclusions are quite surprising: * The presence of overviews makes little difference in the performance otherwise, about 1/20 of a second in the most dramatic case. * Internal tiling seems likewise ineffectual, a difference of several microseconds. * However, internal tiling will hurt performance substantially in a case where the request ends up grabbing the entire image anyway. Is anybody else able to replicate these findings, or to achieve different results in a controlled experiment? Our hardware is rather beefy (8 CPU cores and a 4-disk RAID-5) so perhaps that's confounding my experiment? Perhaps these performance enhancers are mostly useful on a slower single-disk system? From ed at TOPOZONE.COM Sat Sep 1 18:55:50 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 1 Sep 2007 21:55:50 -0400 Subject: TIFF performance: overviews and internal tiles: Surprise! In-Reply-To: A<46D9EED2.8020706@hostgis.com> Message-ID: Gregor - Could you go into a bit more detail about your 4-disk RAID-5 system? What kind of controller? What capacity, interface, and rotation speed are the disks? Since even a RAID-5 array is the slowest component in a MapServer application, small differences in disk design can make a big difference. Thanks. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh Sent: Saturday, September 01, 2007 7:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TIFF performance: overviews and internal tiles: Surprise! This test compares the effect of overviews and internal tiling on the performance of a TIFF raster data source. *** SETUP The data is USGS DOQQs (black-n-white) of San Francisco, California. Several DOQQs were downloaded and merged into a single GeoTIFF using gdal_merge.py. I then created three copies of the TIFF, with overviews, with internal tiling, and with both: cp original.tif overviews.tif gdaladdo overviews.tif 2 4 8 16 32 gdal_translate -co "TILED=YES" original.tif tiled.tif gdal_translate -co "TILED=YES" original.tif tiledandoverviews.tif gdaladdo tiledandoverviews.tif 2 4 8 16 32 This set of overviews for this particular TIFF gives the following overview resolutions: 5984x21140, 2992x10570, 1496x5285, 748x2643, 374x1322 All images use the same projection: EPSG 26910, aka UTM zone 10N with NAD83 datum. The spatial extent observed is: 543577.000 4150151.000 555545.000 4192431.000 A mapfile is created specifying three layers, named BARE, OVERVIEW, TILE, BOTH, each one reading from the corresponding raster. No reprojection is being done in the mapfile. *** STORAGE SPACE original.tif 483 MB overviews.tif 646 MB tiled.tif 487 MB tiledandoverviews.tif 651 MB As was expected, adding overviews increases the file size by some 33% while internal tiling adds only 4-5 MB to the file size. *** RUNTIME SPEED # full view of the region shp2img -m mapfile.map -l BARE -o bare-fullview.png Time: 0.484s shp2img -m mapfile.map -l OVERVIEW -o overview-fullview.png Time: 0.460s shp2img -m mapfile.map -l TILE -o tile-fullview.png Time: 1.187s shp2img -m mapfile.map -l BOTH -o both-fullview.png Time: 0.457s # 1 square kilometer pulled from the map shp2img -m mapfile.map -l BARE -e 549561 4150150 550561 4151150 -o bare-1km.png Time: 1.072s shp2img -m mapfile.map -l OVERVIEW -e 549561 4150150 550561 4151150 -o overview-1km.png Time: 1.066s shp2img -m mapfile.map -l TILE -e 549561 4150150 550561 4151150 -o tile-1km.png Time: 1.034s shp2img -m mapfile.map -l BOTH -e 549561 4150150 550561 4151150 -o both-1km.png Time: 1.042s # a 3km square pulled from the map shp2img -m mapfile.map -l BARE -e 547561 4149150 550561 4152150 -o bare-1km.png Time: 0.839s shp2img -m mapfile.map -l OVERVIEW -e 547561 4149150 550561 4152150 -o overview-1km.png Time: 0.822s shp2img -m mapfile.map -l TILE -e 547561 4149150 550561 4152150 -o tile-1km.png Time: 0.840s shp2img -m mapfile.map -l BOTH -e 547561 4149150 550561 4152150 -o both-1km.png Time: 0.825s At the full view, tiling actually hurt performance; presumably this was due to it seeking tiles and eventually not saving any time/seeks anyway. At the close-up views, I was quite surprised to see that tiles and overviews did indeed have an effect, but that the effect was only in the dozens of microseconds. I then repeated this experiment by fetching several more DOQQs and merging them into a 1 GB TIFF, then repeating the same generation and testing steps as above. * The tiling and overview size increase was basically the same: 4 MB fixed growth for tiles, and 33% growth for overviews. * The full views, all times remained in the same ratio, but increased by 50%. Not bad, considering that there was a 100% increase in file size. * For both the 1km and 2km extraction, the times were basically the same as for the 500 MB test above. The increased file size made a difference of 0.016s in the most dramatic case, which was that of the "bare" GeoTIFF. Other increases were 7 and 10ms. I then repeated again with a 2 GB GeoTIFF (just keep adding counties til I hit the limit, right?). Full view: BARE 0.806s OVERVIEW 0.759s TILE 2.238s BOTH 0.747s 2km square: BARE 0.867s OVERVIEW 0.832s TILE 0.840s BOTH 0.828s Again the same results! The conclusions are quite surprising: * The presence of overviews makes little difference in the performance otherwise, about 1/20 of a second in the most dramatic case. * Internal tiling seems likewise ineffectual, a difference of several microseconds. * However, internal tiling will hurt performance substantially in a case where the request ends up grabbing the entire image anyway. Is anybody else able to replicate these findings, or to achieve different results in a controlled experiment? Our hardware is rather beefy (8 CPU cores and a 4-disk RAID-5) so perhaps that's confounding my experiment? Perhaps these performance enhancers are mostly useful on a slower single-disk system? From richardorama at YAHOO.COM Sat Sep 1 22:33:30 2007 From: richardorama at YAHOO.COM (richard orama) Date: Sat, 1 Sep 2007 22:33:30 -0700 Subject: Mapserver-to-Oracle Connection Message-ID: First, I appreciate all your help for the last about 1 week when I started venturing into Mapserver. I have made a real big headway into this thing. Now, I need to have Mapserver connect to an ordinary non-spatial Oracle database (no x,y columns) so that the data retreived from Oracle are used in my maps. I have tried ODBC but it only works where the Oracle table has x,y columns. Any help? Richard Orama. ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Sun Sep 2 03:22:31 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Sun, 2 Sep 2007 13:22:31 +0300 Subject: Image formats: Performance Testing: Test 1 Message-ID: Hi Gregor, Your results seem to be in line with my previous findings: http://lists.umn.edu/cgi-bin/wa?A2=ind0611&L=MAPSERVER-USERS&P=R23904&m=17569 I will repeat my tests later, because GDAL JP2KAK driver might be now faster than it used to be in November, 2006. I will also try if I'll get similar results as you with tiled and untiled tiffs. I am going to run my tests with images stored on USB drive just to make some difference to your fast disk array. Did I understood right that your output image size is always 700 by 700 pixels? -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Gregor Mosheh Sent: Sat 1.9.2007 21:20 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image formats: Performance Testing: Test 1 A customer asked me to do some tests on TIFF, JPEG2000, and ECW, and rate their relative merits in terms of disk usage, performance/speed, and image quality. I can't say that the results are surprising, but at least I have some procedures and empirical numbers to back it up. For the impatient ones, skip to the Results section at the end. :) I will be repeating this with larger files, as well as testing the effects of overviews and internal tiling, on my own time. This test of 200 MB files was intended to represent the customer's typical use case. *** DATA AND SETUP The dataset used for this test is infrared false-color imagery of Eureka, California. The pixel size of the data is 10684x6983 pixels. The spatial extent of the data is: -124.1987173 40.7379805 -124.0836036 40.8132182 The original TIFF was reprojected from UTM to geographic using gdalwarp. It was then converted using gdal_translate to generate the ECW and JPEG2000 versions. As such, all images are identical data and all are in the same projection. A mapfile was created listing three layers, named ECW, TIFF, and JPEG2000, each reading from the corresponding data source. *** TESTING I chose to use the shp2img program, rather than web-based rendering using OpenLayers or Mapscript, in order to eliminate many of the variables associated with timing, e.g. network lag and delays within the client. I chose PNG-24 as the output format since this is what we ually use, for its combination of quality and color fdelity The commands, runtimes, and URLs of the resulting images are as follows: shp2img -m mapfile.map -l TIFF -o tiff-fullview.png Time: 0.725s https://www.cartograph.com/~gregor/formats/tiff-fullview.png shp2img -m mapfile.map -l ECW -o ecw-fullview.png Time: 3.069s https://www.cartograph.com/~gregor/formats/ecw-fullview.png shp2img -m mapfile.map -l JPEG2000 -o jpeg-fullview.png Time: 6.071s https://www.cartograph.com/~gregor/formats/jpeg-fullview.png shp2img -m mapfile.map -l TIFF -e -124.1987173 40.7379805 -124.14116045 40.77559935 -o tiff-quad.png Time: 0.833s https://www.cartograph.com/~gregor/formats/tiff-quad.png shp2img -m mapfile.map -l ECW -e -124.1987173 40.7379805 -124.14116045 40.77559935 -o ecw-quad.png Time: 3.070s https://www.cartograph.com/~gregor/formats/ecw-quad.png shp2img -m mapfile.map -l JPEG2000 -e -124.1987173 40.7379805 -124.14116045 40.77559935 -o jpeg-quad.png Time: 9.073s https://www.cartograph.com/~gregor/formats/jpeg-quad.png *** RESULTS Storage space: TIFF: 213 MB, ECW: 60 MB, JPEG2000: 87 MB Both ECW and JPEG offered sustantial reductions in storage space requirements, ECW best of all. Rendering speed: TIFF was the fastest to render, while ECW was significantly slower. JPEG2000 was very slow. When seeking a subset of the data, these results continued, though JPEG2000 showed a very significant slowdown on this very common task. Image quality: The original photo had a grainy quality to it. Although unattractive to the eye, these grains do represent fine-detail data, useful for analyzing the loss of such quality. As expected, TIFF retained all of the fine detail. ECW also showed high fidelity to the original image. JPEG2000 showed the most loss of the grainy detail, although in this case it did make for a "smoothing" effect which was not unattractive. *** CONCLUSION ECW and JPEG2000 both provide very good compression, resulting in a 65% reduction in storage requirements. Both ECW and JPEG2000 showed some loss of image quality, but the results are quite acceptable considering the reduction in storage space. At the file sizes which we typically use (up to 300 MB TIFFs), both ECW and JPEG2000 are probably too slow for our needs. With very large TIFFs, the disk access can often outweight the CPU speed and cause TIFF to be slower than other formats, but in the 200 MB size range, this is not the case. From gregor at HOSTGIS.COM Sun Sep 2 07:11:46 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 2 Sep 2007 08:11:46 -0600 Subject: Image formats: Performance Testing: Test 1 In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Your results seem to be in line with my previous findings: Hi, Jukka. Nice to hear from you again. :) Indeed, the results of ECW and JPEG2000 versus TIFF weren't too surprising. I had been asked "prove it" and decided to share my numbers with y'all. Both the ECW and JP2K were through GDAL via the ERMapper SDK support. A year or two ago, I decided that JasPer was too flaky for real usage. > Did I understood right that your output image size is always 700 by 700 pixels? Correct. -- Gregor Mosheh / Greg Allensworth 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 From gregor at HOSTGIS.COM Sun Sep 2 07:18:43 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 2 Sep 2007 08:18:43 -0600 Subject: TIFF performance: overviews and internal tiles: Surprise! In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988395@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Could you go into a bit more detail about your 4-disk RAID-5 system? > What kind of controller? What capacity, interface, and rotation speed are the > disks? 3Ware 9550X controller. Four disks, no hotspare: 4 spindles at work. Western Digital, SATA-2, 7500 rpm, 500 GB apiece. I am quite surprised by the lack of performance increase even in a 2 GB file, due to overviews and/or tiling. My only supposition is that the RAID is so fast that these performance enhancers don't make a difference, and I say that with tongue in cheek. I'll grab MS4W and repeat the experiment on my single-core single-disk Pentium-4 desktop machine. -- Gregor Mosheh / Greg Allensworth 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 From terence at WAIROADC.GOVT.NZ Sun Sep 2 18:50:51 2007 From: terence at WAIROADC.GOVT.NZ (Terence Maru) Date: Mon, 3 Sep 2007 13:50:51 +1200 Subject: postgis schema Message-ID: Hi all, im trying to connect to a postgres/postgis database. The connection process defines the database to connect to. The data variable defines the table and column (the_geom) to connect to. How do I tell mapserver to use a certain schema? Thanks. bm ##################################################################################### This e-mail message has been scanned for Viruses by McAfee and content has been cleared by MailMarshal ##################################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: From terence at WAIROADC.GOVT.NZ Sun Sep 2 19:35:55 2007 From: terence at WAIROADC.GOVT.NZ (Terence Maru) Date: Mon, 3 Sep 2007 14:35:55 +1200 Subject: FW: [UMN_MAPSERVER-USERS] postgis schema Message-ID: Hi Barend, doesn't work for me. $parcelLayer = ms_newLayerObj($map); $parcelLayer->set("connectiontype", MS_POSTGIS); $parcelLayer->set("name", "parcels"); $connector = "user=web dbname=districts host=localhost"; $parcelLayer->set("connection", $connector); $sql = "the_geom from hbDistrict.parcels"; $parcelLayer->set("data", $sql); $parcelLayer->set("status", MS_DEFAULT); $parcelLayer->set("type", MS_LAYER_POLYGON); Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from hbDistrict.parcels WHERE the_geom && setSRID('BOX3D(-180 -90,180 90)'::BOX3D, find_srid('','hbDistrict.parcels','the_geom') )' Postgresql reports the error as 'ERROR: function force_2d(hbDistrict.geometry) does not exist LINE 1: ...INARY CURSOR FOR SELECT asbinary(force_collection(force_2d(t... ^ HINT: No function matches the given name and argument types. You may need to add explicit type casts. ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. I have a database called districts, a schema called hbDistrict and a table called parcels. I cannot set the search_path by using the data variable with "the_geom from hbDistrict.parcels". I have created another database called test. This database is created without schema's (public schema). The data variable "the_geom from parcels" works (by works, I mean no errors). bm -----Original Message----- From: Barend K?bben [mailto:kobben at itc.nl] Sent: Monday, 3 September 2007 2:08 p.m. To: Terence Maru Subject: Re: [UMN_MAPSERVER-USERS] postgis schema Just use the normal SQL 'prefixing' where eg. public.mytable is the table in the public schema, or myschema.mytable the same in another schema... __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 On 03-09-2007 03:50, "Terence Maru" wrote: > Hi all, im trying to connect to a postgres/postgis database. The > connection process defines the database to connect to. The data > variable defines the table and column (the_geom) to connect to. How do > I tell mapserver to use a certain schema? Thanks. > > bm > > ############################################################################## > ####### > This e-mail message has been scanned for Viruses by McAfee and content has > been cleared by MailMarshal > ############################################################################## > ####### ##################################################################################### This e-mail message has been scanned for Viruses by McAfee and content has been cleared by MailMarshal ##################################################################################### From coolfrenz85 at YAHOO.COM Sun Sep 2 22:48:30 2007 From: coolfrenz85 at YAHOO.COM (cool frenz) Date: Sun, 2 Sep 2007 22:48:30 -0700 Subject: Getting Blank Image : New User Message-ID: Hi All, I am a new user of mapserver. I am trying to view the available shape file using php mapscript. I have created a simple map file for the same.But on running it through browser i am getting a completely blank image as output. Please help. Contents of Map file: NAME "eSagu GIS" SIZE 200 200 STATUS ON SYMBOLSET "../symbols.sym" EXTENT -5696501 1923039 5696501 11022882 UNITS METERS SHAPEPATH "../data" WEB IMAGEPATH "C:/ms4w/Apache/htdocs/eSagu/map/tmp/" IMAGEURL "/eSagu/map/tmp/" END LAYER NAME "FarmFields" TYPE point STATUS ON DATA "FarmFields" CLASS STYLE COLOR 210 150 130 OUTLINECOLOR 100 220 230 SYMBOL 0 END END END END Content of php file: draw(); $image_url=$image->saveWebImage(); ?> eSagu: Displaying farms for Malkapur > Please help me out. Thanks and Regards, Piyush --------------------------------- Got a little couch potato? Check out fun summer activities for kids. -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Mon Sep 3 00:21:05 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 3 Sep 2007 09:21:05 +0200 Subject: TIFF performance: overviews and internal tiles: Surprise! In-Reply-To: <46D9EED2.8020706@hostgis.com> Message-ID: How did you calculate the rendering times? Usually you should run the program more than once and then average or even discard the lowest and highest numbers for each run. Suppose the following: you run shp2img against the bare tiff once and the OS will do its best to populate the filesystem cache if there is free memory. If you run immediately the overview the fs cache will be already filled and the OS will not be able to do any optimization, so the second run could show a degraded performance. To make sure that the initial conditions are the same for all maps you could also reboot after each group run. Umberto On 9/2/07, Gregor Mosheh wrote: > This test compares the effect of overviews and internal tiling on the > performance of a TIFF raster data source. > > *** SETUP > > The data is USGS DOQQs (black-n-white) of San Francisco, California. > Several DOQQs were downloaded and merged into a single GeoTIFF using > gdal_merge.py. > > I then created three copies of the TIFF, with overviews, with internal > tiling, and with both: > cp original.tif overviews.tif > gdaladdo overviews.tif 2 4 8 16 32 > gdal_translate -co "TILED=YES" original.tif tiled.tif > gdal_translate -co "TILED=YES" original.tif tiledandoverviews.tif > gdaladdo tiledandoverviews.tif 2 4 8 16 32 > > This set of overviews for this particular TIFF gives the following > overview resolutions: > 5984x21140, 2992x10570, 1496x5285, 748x2643, 374x1322 > > All images use the same projection: EPSG 26910, aka UTM zone 10N with > NAD83 datum. > The spatial extent observed is: > 543577.000 4150151.000 555545.000 4192431.000 > > A mapfile is created specifying three layers, named BARE, OVERVIEW, > TILE, BOTH, each one reading from the corresponding raster. No > reprojection is being done in the mapfile. > > > *** STORAGE SPACE > > original.tif 483 MB > overviews.tif 646 MB > tiled.tif 487 MB > tiledandoverviews.tif 651 MB > > As was expected, adding overviews increases the file size by some 33% > while internal tiling adds only 4-5 MB to the file size. > > > > *** RUNTIME SPEED > > # full view of the region > shp2img -m mapfile.map -l BARE -o bare-fullview.png > Time: 0.484s > shp2img -m mapfile.map -l OVERVIEW -o overview-fullview.png > Time: 0.460s > shp2img -m mapfile.map -l TILE -o tile-fullview.png > Time: 1.187s > shp2img -m mapfile.map -l BOTH -o both-fullview.png > Time: 0.457s > > # 1 square kilometer pulled from the map > shp2img -m mapfile.map -l BARE -e 549561 4150150 550561 4151150 -o > bare-1km.png > Time: 1.072s > shp2img -m mapfile.map -l OVERVIEW -e 549561 4150150 550561 4151150 -o > overview-1km.png > Time: 1.066s > shp2img -m mapfile.map -l TILE -e 549561 4150150 550561 4151150 -o > tile-1km.png > Time: 1.034s > shp2img -m mapfile.map -l BOTH -e 549561 4150150 550561 4151150 -o > both-1km.png > Time: 1.042s > > # a 3km square pulled from the map > shp2img -m mapfile.map -l BARE -e 547561 4149150 550561 4152150 -o > bare-1km.png > Time: 0.839s > shp2img -m mapfile.map -l OVERVIEW -e 547561 4149150 550561 4152150 -o > overview-1km.png > Time: 0.822s > shp2img -m mapfile.map -l TILE -e 547561 4149150 550561 4152150 -o > tile-1km.png > Time: 0.840s > shp2img -m mapfile.map -l BOTH -e 547561 4149150 550561 4152150 -o > both-1km.png > Time: 0.825s > > > At the full view, tiling actually hurt performance; presumably this was > due to it seeking tiles and eventually not saving any time/seeks anyway. > > At the close-up views, I was quite surprised to see that tiles and > overviews did indeed have an effect, but that the effect was only in the > dozens of microseconds. > > > > I then repeated this experiment by fetching several more DOQQs and > merging them into a 1 GB TIFF, then repeating the same generation and > testing steps as above. > > * The tiling and overview size increase was basically the same: 4 MB > fixed growth for tiles, and 33% growth for overviews. > > * The full views, all times remained in the same ratio, but increased by > 50%. Not bad, considering that there was a 100% increase in file size. > > * For both the 1km and 2km extraction, the times were basically the same > as for the 500 MB test above. The increased file size made a difference > of 0.016s in the most dramatic case, which was that of the "bare" > GeoTIFF. Other increases were 7 and 10ms. > > > I then repeated again with a 2 GB GeoTIFF (just keep adding counties til > I hit the limit, right?). > > Full view: > BARE 0.806s > OVERVIEW 0.759s > TILE 2.238s > BOTH 0.747s > 2km square: > BARE 0.867s > OVERVIEW 0.832s > TILE 0.840s > BOTH 0.828s > > Again the same results! > > > The conclusions are quite surprising: > > * The presence of overviews makes little difference in the performance > otherwise, about 1/20 of a second in the most dramatic case. > > * Internal tiling seems likewise ineffectual, a difference of several > microseconds. > > * However, internal tiling will hurt performance substantially in a case > where the request ends up grabbing the entire image anyway. > > > Is anybody else able to replicate these findings, or to achieve > different results in a controlled experiment? Our hardware is rather > beefy (8 CPU cores and a 4-disk RAID-5) so perhaps that's confounding my > experiment? Perhaps these performance enhancers are mostly useful on a > slower single-disk system? > From friendvn2000 at YAHOO.COM Mon Sep 3 00:45:03 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Mon, 3 Sep 2007 02:45:03 -0500 Subject: How to load map state ( after save it ) Message-ID: I saw at the PHPMapScript Class Reference show that it can be save a map state by using this menthod: int save(string filename) Save current map object state to a file. Returns -1 on error. Use absolute path. If a relative path is used, then it will be relative to the mapfile location. But how can we do to load that state ?! Thanks! From verdaguerj at YAHOO.ES Mon Sep 3 02:35:11 2007 From: verdaguerj at YAHOO.ES (cocoloco) Date: Mon, 3 Sep 2007 02:35:11 -0700 Subject: Repeating labels along a line? Message-ID: Is there any way to label a linear feature so that the label text is repeated along the feature? For example, in a long street it would be desirable that the name of the street appeared multiple times along the path of the street. (like street labels in Google maps). Is it possible? Thanks. -- View this message in context: http://www.nabble.com/Repeating-labels-along-a-line--tf4371189.html#a12458906 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Mon Sep 3 07:08:28 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Sep 2007 10:08:28 -0400 Subject: TIFF performance: overviews and internal tiles: Surprise! In-Reply-To: <75b4b93e0709030021h49e98f45u31752bdc880d4af1@mail.gmail.com> Message-ID: >> The conclusions are quite surprising: >> >> * The presence of overviews makes little difference in the performance >> otherwise, about 1/20 of a second in the most dramatic case. >> >> * Internal tiling seems likewise ineffectual, a difference of several >> microseconds. >> >> * However, internal tiling will hurt performance substantially in a case >> where the request ends up grabbing the entire image anyway. >> >> >> Is anybody else able to replicate these findings, or to achieve >> different results in a controlled experiment? Our hardware is rather >> beefy (8 CPU cores and a 4-disk RAID-5) so perhaps that's confounding my >> experiment? Perhaps these performance enhancers are mostly useful on a >> slower single-disk system? Folks, As Umberto wrote, this test is really only a valid test of timing when everything is in the in-memory file system cache. The slowness of tiled images without overviews for an overview draw is not surprising since all tiles will be read and subsampled. Scanline oriented files will only have the required scanlines read, (for a 10x by 10x reduction in size, only 1/10th of scanlines would be read) so overviews of scanline oriented products without overviews are not dramatically bad. Overall, I think this test demonstrates the value of in-memory caching of data, but does not really measure performance for large datasets of which only a very modest portion will ever be cached when requested. Nevertheless, I'm very pleased to see some organized effort to measure performance in different scenarios. PPS. I think it is also wrong to draw any conclusions about differences of 1 or 2 percentage points in performance. Such results should be considered as equivelent for all meaningful purposes. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From gregor at HOSTGIS.COM Mon Sep 3 07:22:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 3 Sep 2007 08:22:18 -0600 Subject: Getting Blank Image : New User In-Reply-To: <861254.10986.qm@web30603.mail.mud.yahoo.com> Message-ID: cool frenz wrote: > I am a new user of mapserver. I am trying to view the available shape > file using php mapscript. I have created a simple map file for the > same.But on running it through browser i am getting a completely blank > image as output. Please help. Nine times out of ten, a blank image means that your projections don't line up. I notice in your sample that you don't specify a projection for the output map, nor for the layer; though you do specify a extent in meters. I'd recommend adding a PROJECTION block to both the top level (the MAP block) and to the LAYER, for starters. -- Gregor Mosheh / Greg Allensworth 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 From Jukka.Rahkonen at MMMTIKE.FI Mon Sep 3 07:59:00 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 3 Sep 2007 17:59:00 +0300 Subject: TIFF performance: overviews and internal tiles: Surprise! Message-ID: >Overall, I think this test demonstrates the value of in-memory caching >of data, but does not really measure performance for large datasets >of which only a very modest portion will ever be cached when requested. >Nevertheless, I'm very pleased to see some organized effort to measure >performance in different scenarios. >PPS. I think it is also wrong to draw any conclusions about differences of >1 or 2 percentage points in performance. Such results should be considered >as equivelent for all meaningful purposes. Perhaps we could organize a competition: who can serve the same imagery at fastest rate? There might be own categories for single image and tile indexes, as well as for uncompressed formats and wavelet compressed (ECW, JPEG2000 and MrSID). Some easily available, free imagery could be used as raw material. Landsat GeoCover images for example might be usable. Caching could be avoided by using sliding extents in requests, and result could perhaps be a total time of quite a many individual requests, perhaps one thousand. Other Open source and commercial image servers could join with pleasure the tough but fair game. -Jukka Rahkonen From bartvde at GMAIL.COM Mon Sep 3 08:21:46 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 3 Sep 2007 17:21:46 +0200 Subject: strange problem with quadtree index Message-ID: Hi list, I have a 3D POINT shapefile dataset, and if I do a query using Mapserver (or ogrinfo for that matter) when the shapefile has a quadtree index file associated (level 4), it does not find any features within the box. If I delete the qix file, it correctly finds all the features in the box, but ofcourse performance is poor. Any pointers on this problem? Or is the dataset needed to find out the cause of such an issue (it's quite big unfortunately)? Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From verdaguerj at YAHOO.ES Mon Sep 3 08:39:04 2007 From: verdaguerj at YAHOO.ES (cocoloco) Date: Mon, 3 Sep 2007 08:39:04 -0700 Subject: Can mapserver run on IIS using Microsoft fastCGI plugin? Message-ID: About a year ago Microsoft published a free plugin wich adds fastCGI support to IIS 5,6 and 7. Has anyone succeeded in running Mapserver in fastCGI on IIS using this plugin? I would like to know if is possible to run Mapserver reliably in such environment. It would be nice running Mapserver with this plugin since it is the official fastCGI implementation for IIS. Thanks -- View this message in context: http://www.nabble.com/Can-mapserver-run-on-IIS-using-Microsoft-fastCGI-plugin--tf4372781.html#a12463629 Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at GMAIL.COM Mon Sep 3 08:29:30 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 3 Sep 2007 17:29:30 +0200 Subject: labeling difference between 4.8 and 4.10 Message-ID: Hi list, what has changed in labeling between Mapserver 4.8 and Mapserver 4.10? Image with Mapserver 4.8: http://www.osgis.nl/download/mapserv48.gif Image with Mapserver 4.10: http://www.osgis.nl/download/mapserv410.gif Zoom in to the lower left corner of the image especially around the city of Rotterdam to see the difference. MAP files are exactly the same. Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Sep 3 10:27:57 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Sep 2007 13:27:57 -0400 Subject: strange problem with quadtree index In-Reply-To: <1ebb87870709030821m3d8fa117pd20fe13580a10570@mail.gmail.com> Message-ID: Bart van den Eijnden wrote: > Hi list, > > I have a 3D POINT shapefile dataset, and if I do a query using Mapserver > (or ogrinfo for that matter) when the shapefile has a quadtree index > file associated (level 4), it does not find any features within the box. > > If I delete the qix file, it correctly finds all the features in the > box, but ofcourse performance is poor. > > Any pointers on this problem? Or is the dataset needed to find out the > cause of such an issue (it's quite big unfortunately)? Bart, Is the problem in mapserver when using the point layer as an OGR layer? I am not aware of why this would be failing but it certainly sounds like a serious bug and I'd appreciate your filing a bug report against GDAL/OGR with supporting data and other details. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From gregor at HOSTGIS.COM Mon Sep 3 20:55:55 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 3 Sep 2007 21:55:55 -0600 Subject: TIFF Performance tests: Found it Message-ID: Per Frank's and Umberto's suggestion, I repeated my experiment on much less beefy hardware: a dual-core laptop with one hard disk, running in VMWare. I'll put the conclusion first, for folks like myself who are impatient. :) *** Conclusion: Both tiling and overviews are useful, but only on machines with resource shortages, such as slow disks or a lack of spare RAM for caching. Hardly surprising is the conclusion that throwing more RAM into the machine makes a bigger difference than any of these data-tweaking approaches. Although it's intuitive that faster hardware makes for better results, I was surprised to find a level of "fast enough hardware" that makes these performance enhancements useless. --- And now the more boring experimental design stuff. :) This test compares the effect of overviews and internal tiling on the performance of a TIFF raster data source, on a low-end system where disk performance is substandard and filesystem caching is minimal due to low RAM. *** PLATFORM The hardware is a mid-budget laptop: Core Duo 1.7GHz, single SATA hard disk, 1 GB RAM. The software is HostGIS Linux 4.1 running under VMWare Server. The VM was given 512 MB of memory, and the disk file (virtual IDE) was created entirely before booting the machine. (Hey, if the goal is a system that's slow enough to need performance enhancement, VMWare is as good as it gets ) *** DATA SETUP The data is 48 USGS DOQQs (black-n-white), downloaded and merged into a single GeoTIFF using gdal_merge.py. I then created three copies of the TIFF: with overviews, with internal tiling, and with both. All images use the same projection: UTM zone 10N with NAD83 datum (EPSG 26910). The spatial extent observed is: 543502 4150151 577642 4206427 The commands used were as follows: gdal_merge.py -o original.tif o37122e2ne.tif o37122e2nw.tif o37122e2se.tif o37122e2sw.tif o37122e3se.tif o37122e3sw.tif \ o37122e4ne.tif o37122e4nw.tif o37122e4se.tif o37122e4sw.tif o37122f2ne.tif o37122f2nw.tif o37122f2se.tif o37122f3ne.tif \ o37122f3nw.tif o37122f3sw.tif o37122f4ne.tif o37122f4nw.tif o37122f4se.tif o37122f4sw.tif o37122g2ne.tif o37122g2nw.tif \ o37122g2se.tif o37122g2sw.tif o37122g3ne.tif o37122g3nw.tif o37122g3se.tif o37122g3sw.tif o37122g4ne.tif o37122g4nw.tif \ o37122g4se.tif o37122g4sw.tif o37122h2ne.tif o37122h2nw.tif o37122h2se.tif o37122h2sw.tif o37122h3ne.tif o37122h3nw.tif \ o37122h3se.tif o37122h3sw.tif o37122h4ne.tif o37122h4nw.tif o37122h4se.tif o37122h4sw.tif o37122e3ne.tif o37122e3nw.tif gdal_translate -co "TILED=YES" original.tif tiled.tif cp original.tif overviews.tif gdaladdo overviews.tif 2 4 8 16 32 cp tiled.tif tilesandoverviews.tif gdaladdo tilesandoverviews.tif 2 4 8 16 32 The resulting "original" image is 34140 x 56276 pixels, 1.79 GB in size. The ones with overviews have them are 2.04 GB and have these overviews: 17070x28163, 8535x14082, 4268x7041, 2134x3521, 1067x1761 *** TESTING A mapfile is created specifying three layers, named BARE, OVERVIEW, TILE, BOTH, each one reading from the corresponding raster. No reprojection is being done in the mapfile. The mapfile specifies an output image size of 1000 x 1000 pixels. The virtual machine was rebooted after each test, to ensure that filesystem caching was not occurring, and each test was repeated several times in random order to ensure that no unknown time-sensitive variable was affecting the first or last in each series. # full view of the region shp2img -m mapfile.map -l BARE -o output.png Time: 40.196s 27.812s 28.473s shp2img -m mapfile.map -l OVERVIEW -o output.png Time: 1.787s 2.947s 2.905s shp2img -m mapfile.map -l TILE -o output.png Time: 78.947s 77.175s 75.600s shp2img -m mapfile.map -l BOTH -o output.png Time: 2.572s 3.647s 1.828s Ah-ha! Now that's what we're expecting! Tiling hurts performance in a case where you end up showing the whole thing anyway. Overviews have dramatic (20 to 1) effect on rendering the full view. # 1 square kilometer pulled from the map shp2img -m mapfile.map -l BARE -e 549561 4150150 550561 4151150 -o output.png Time: 4.514s 5.903s 5.458s shp2img -m mapfile.map -l OVERVIEW -e 549561 4150150 550561 4151150 -o output.png Time: 8.225s 2.980s 3.556s shp2img -m mapfile.map -l TILE -e 549561 4150150 550561 4151150 -o output.png Time: 2.529s 1.852s 1.868s shp2img -m mapfile.map -l BOTH -e 549561 4150150 550561 4151150 -o output.png Time: 2.533s 1.956s 1.970s Again, not too surprising, though the margin is a lot less dramatic than the full-view tests. Use of tiles gave a 2:1 improvement over not using tiles, and use of overviews gave a lesser but still useful boost. From vishu_73ns at YAHOO.COM Mon Sep 3 23:12:22 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Tue, 4 Sep 2007 01:12:22 -0500 Subject: mapserver different coordinate system Georeferencing Message-ID: Thanks walter and everybody on the list, I have been able to solve a portion of it by removing georeference information(using gdal_translate) from the file and than using .wld file to add my information to it, My question is "Is it possible to remove georefrence information from ogr files as I hav done it to gdal file, if yes How?" Does anybody have an idea about displaying elevation data(dt1). I have been able to get these files to display but the major portion is gray and some portion is black dots. I tried scaling but that only changes the intensity of gray from white to black. Vishal From johan.e.hallgren at WMDATA.SE Mon Sep 3 23:16:33 2007 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Tue, 4 Sep 2007 01:16:33 -0500 Subject: Large installations Message-ID: Dear Friends I?m looking for anyone knowing large websites that are using MapServer, or MapServer-based websites with high amount of traffic. I need references so any information would be valuable. /Johan From vishu_73ns at YAHOO.COM Mon Sep 3 23:28:28 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Tue, 4 Sep 2007 01:28:28 -0500 Subject: Getting Blank Image : New User Message-ID: Be sure the following information is correct(use ogrinfo or gdalinfo to get it) extent unit projections correct path for data It will work, Vishal From vishu_73ns at YAHOO.COM Mon Sep 3 23:31:35 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Tue, 4 Sep 2007 01:31:35 -0500 Subject: Large installations Message-ID: I am not too sure but this may help Vishal http://mapserver.gis.umn.edu/gallery From flavio at TYDAC.CH Tue Sep 4 00:33:49 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 4 Sep 2007 09:33:49 +0200 Subject: strange problem with quadtree index In-Reply-To: <1ebb87870709030821m3d8fa117pd20fe13580a10570@mail.gmail.com> Message-ID: Hi Bart Read this? (I had even MapServer crashing when using default on points): http://umn.mapserver.ch/MapServer/en/shapetree.htm, on the bottom: SYNTAX: shptree [] (optional) is the maximum depth of the index to create, default is 0 meaning that shptree will calculate automatically the default depth (calculated so, that a quadtree cell contains 8 shapes). Do not use the default depth with point files, here a depth between 6 and 10 works fine. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Bart van den Eijnden To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Mon, 3 Sep 2007 17:21:46 +0200 Subject: [UMN_MAPSERVER-USERS] strange problem with quadtree index > Hi list, > > I have a 3D POINT shapefile dataset, and if I do a query using > Mapserver (or > ogrinfo for that matter) when the shapefile has a quadtree index file > associated (level 4), it does not find any features within the box. > > If I delete the qix file, it correctly finds all the features in the > box, > but ofcourse performance is poor. > > Any pointers on this problem? Or is the dataset needed to find out > the cause > of such an issue (it's quite big unfortunately)? > > Best regards, > Bart From bartvde at GMAIL.COM Tue Sep 4 00:49:57 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 4 Sep 2007 09:49:57 +0200 Subject: strange problem with quadtree index In-Reply-To: Message-ID: Hi Flavio, even with a depth of between 6 and 10 I get no matches. D:\bart\FWTools1.3.6\bin>shptree D:\bart\dtb\dtb_subset\dtb2000_sym.shp 10 creating index of new LSB format D:\bart\FWTools1.3.6\bin>ogrinfo D:\bart\dtb\dtb_subset\dtb2000_sym.shp dtb2000_sym -spat 60000 400000 90000 410000 INFO: Open of `D:\bart\dtb\dtb_subset\dtb2000_sym.shp' using driver `ESRI Shapefile' successful. Layer name: dtb2000_sym Geometry: 3D Point Feature Count: 0 Extent: (50000.000000, 390000.000000) - (99997.706000, 419998.443000) Layer SRS WKT: PROJCS["Rijksdriehoekstelsel_New", GEOGCS["GCS_Amersfoort", DATUM["Amersfoort", SPHEROID["Bessel_1841",6377397.155,299.1528128]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.017453292519943295]], PROJECTION["Double_Stereographic"], PARAMETER["False_Easting",155000.0], PARAMETER["False_Northing",463000.0], PARAMETER["Central_Meridian",5.38763888888889], PARAMETER["Scale_Factor",0.9999079], PARAMETER["Latitude_Of_Origin",52.15616055555555], UNIT["Meter",1.0]] CTE: String (8.0) If I delete the qix file all is fine: D:\bart\FWTools1.3.6\bin>del D:\bart\dtb\dtb_subset\dtb2000_sym.qix D:\bart\FWTools1.3.6\bin>ogrinfo D:\bart\dtb\dtb_subset\dtb2000_sym.shp dtb2000_ sym -spat 60000 400000 90000 410000 INFO: Open of `D:\bart\dtb\dtb_subset\dtb2000_sym.shp' using driver `ESRI Shapefile' successful. Layer name: dtb2000_sym Geometry: 3D Point Feature Count: 39100 Extent: (50000.000000, 390000.000000) - (99997.706000, 419998.443000) Layer SRS WKT: PROJCS["Rijksdriehoekstelsel_New", GEOGCS["GCS_Amersfoort", DATUM["Amersfoort", SPHEROID["Bessel_1841",6377397.155,299.1528128]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.017453292519943295]], PROJECTION["Double_Stereographic"], PARAMETER["False_Easting",155000.0], PARAMETER["False_Northing",463000.0], PARAMETER["Central_Meridian",5.38763888888889], PARAMETER["Scale_Factor",0.9999079], PARAMETER["Latitude_Of_Origin",52.15616055555555], UNIT["Meter",1.0]] CTE: String (8.0) OGRFeature(dtb2000_sym):4665 CTE (String) = B0307 POINT (85063.820000000007 407501.06300000002 8.6) OGRFeature(dtb2000_sym):4666 CTE (String) = B0307 POINT (85056.664000000004 407494.31300000002 8.6) OGRFeature(dtb2000_sym):4667 CTE (String) = B0307 POINT (85060.241999999998 407497.68800000002 8.6) I've opened up the following bug: http://trac.osgeo.org/gdal/ticket/1790 Best regards, Bart On 9/4/07, Flavio Hendry wrote: > > Hi Bart > > Read this? (I had even MapServer crashing when using default on points): > > http://umn.mapserver.ch/MapServer/en/shapetree.htm, on the bottom: > > SYNTAX: shptree [] > > (optional) is the maximum depth of the index to create, default > is 0 meaning that shptree will calculate automatically the default depth > (calculated so, that a quadtree cell contains 8 shapes). Do not use the > default depth with point files, here a depth between 6 and 10 works fine. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: Bart van den Eijnden > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Mon, 3 Sep 2007 17:21:46 +0200 > Subject: [UMN_MAPSERVER-USERS] strange problem with quadtree index > > > Hi list, > > > > I have a 3D POINT shapefile dataset, and if I do a query using > > Mapserver (or > > ogrinfo for that matter) when the shapefile has a quadtree index file > > associated (level 4), it does not find any features within the box. > > > > If I delete the qix file, it correctly finds all the features in the > > box, > > but ofcourse performance is poor. > > > > Any pointers on this problem? Or is the dataset needed to find out > > the cause > > of such an issue (it's quite big unfortunately)? > > > > Best regards, > > Bart > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Maher_Karim at DORSCH.COM.JO Mon Sep 3 12:38:25 2007 From: Maher_Karim at DORSCH.COM.JO (Maher Karim) Date: Mon, 3 Sep 2007 22:38:25 +0300 Subject: Mapserver-to-Oracle Connection In-Reply-To: <765037.44408.qm@web50902.mail.re2.yahoo.com> Message-ID: Dear Richard, You can use it in your map file as the following LAYER NAME "basemap" STATUS on TYPE polygon CONNECTIONTYPE OGR CONNECTION " OCI:usename/password BASEMAP select * from basemap wkbPolygon " data "basemap" TEMPLATE "ttt" TOLERANCE 4 CLASS NAME "Basemap" OUTLINECOLOR 80 80 80 COLOR 219 0 0 SIZE 12 END END Regards Maher Abdel Karim GIS system analyst/developer DC Water and Environment |---------+-------------------------------> | | richard orama | | | | | | Sent by: UMN | | | MapServer Users List| | | | | | | | | | | | 09/02/2007 08:33 AM | | | Please respond to | | | richard orama | |---------+-------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: MAPSERVER-USERS at LISTS.UMN.EDU | | cc: | | Subject: [UMN_MAPSERVER-USERS] Mapserver-to-Oracle Connection | >--------------------------------------------------------------------------------------------------------------------------------------------------| First, I appreciate all your help for the last about 1 week when I started venturing into Mapserver. I have made a real big headway into this thing. Now, I need to have Mapserver connect to an ordinary non-spatial Oracle database (no x,y columns) so that the data retreived from Oracle are used in my maps. I have tried ODBC but it only works where the Oracle table has x,y columns. Any help? Richard Orama. Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. From flavio at TYDAC.CH Tue Sep 4 00:47:52 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 4 Sep 2007 09:47:52 +0200 Subject: Large installations In-Reply-To: Message-ID: Hi Johan Do not know what you mean by "large". The one we have most traffic is www.ortsplan.ch, as follows: - volume: 2-3GB data per day - 200'000-300'000 pages per day - 300'000-500'000 files per day - 2'000-3'000 visits per day Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From flavio at TYDAC.CH Tue Sep 4 01:07:08 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 4 Sep 2007 10:07:08 +0200 Subject: strange problem with quadtree index In-Reply-To: <1ebb87870709040049m3a408846jbab71870199be739@mail.gmail.com> Message-ID: Hi Bart Did you try to convert the whole to MapInfo TAB (should be as fast as it is the same indexing as the qix ...)? Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From jhhal at WMDATA.COM Mon Sep 3 23:07:18 2007 From: jhhal at WMDATA.COM (Hallgren Johan E) Date: Tue, 4 Sep 2007 08:07:18 +0200 Subject: Large installations Message-ID: Hello I'm looking for anyone that has used MapServer in large installations, or MapServer-based websites with high amount of traffic. I need references so any information would be valuable. /Johan Johan Hallgren WM-data/LogicaCMG Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.e.hallgren at wmdata.com http://www.LogicaCMG.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at GMAIL.COM Tue Sep 4 02:21:44 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 4 Sep 2007 11:21:44 +0200 Subject: strange problem with quadtree index In-Reply-To: Message-ID: Hi Flavio, I didn't try and it is not really an option for us, we want as little as possible data conversions ofcourse. Best regards, Bart On 9/4/07, Flavio Hendry wrote: > > Hi Bart > > Did you try to convert the whole to MapInfo TAB (should be as fast as it > is the same indexing as the qix ...)? > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Josh.Hevenor at DPRA.COM Tue Sep 4 05:35:40 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Tue, 4 Sep 2007 07:35:40 -0500 Subject: Mapserver 5 windows SDE build? Message-ID: Has there been any progress here? I would be interested in this as well. Thanks Howard! On Aug 30, 2007, at 9:12 AM, Howard Butler wrote: > Working on it. Hope to have a plugin (as opposed to a full > libmap.dll) for SDE 9.1 and 9.2 by the end of the week... > > Howard > > On Aug 30, 2007, at 2:03 AM, Chris Tweedie wrote: > >> Hi guys, >> >> Has anyone out there built win32 MS v5 (any beta) with a libmap >> with SDE support or ogr_sde driver? >> >> I understand why ms4w/fwtools havent bothered adding it to the beta >> builds but I am very eager to test out the improvements particular >> on my SDE datastores. >> >> I failed miserably trying to build from source so just wondering if >> i can short-circuit the process by leveraging off someone elses >> hard work :) >> >> Cheers >> >> -- >> Chris Tweedie -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhhal at WMDATA.COM Tue Sep 4 06:04:32 2007 From: jhhal at WMDATA.COM (Hallgren Johan E) Date: Tue, 4 Sep 2007 15:04:32 +0200 Subject: GIF TAB Message-ID: Hello friends If I'm correct, the world file idea is an ESRI invention for georeferencing of a rasterfile and MapInfo are using a tab-file along with the raster. My question is, does MapServer support both the ESRI world file and the MapInfo tab-file for georeferencing of raster? /Johan Johan Hallgren WM-data/LogicaCMG Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.e.hallgren at wmdata.com http://www.LogicaCMG.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Tue Sep 4 06:19:31 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 4 Sep 2007 07:19:31 -0600 Subject: Can mapserver run on IIS using Microsoft fastCGI plugin? In-Reply-To: <12463629.post@talk.nabble.com> Message-ID: On 9/3/07, cocoloco wrote: > About a year ago Microsoft published a free plugin wich adds fastCGI support > to IIS 5,6 and 7. > > Has anyone succeeded in running Mapserver in fastCGI on IIS using this > plugin? > > I would like to know if is possible to run Mapserver reliably in such > environment. > It would be nice running Mapserver with this plugin since it is the official > fastCGI implementation for IIS. Howard Butler posted an email to this list in April 2007 with a subject line of "IIS and FastCGI" which described how he had done it. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From metlud at YAHOO.IT Tue Sep 4 06:24:57 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Tue, 4 Sep 2007 15:24:57 +0200 Subject: java mapscript, method pointObj.project Message-ID: Hi, I'm obtaining this Exception occurred during event dispatching: java.lang.UnknownError: msProcessProjection(): Projection library error. no options found in 'init' file at edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native Method) at edu.umn.gis.mapscript.projectionObj.(projectionObj.java:41) with this line of code: point.project(new projectionObj("init=EPSG:4326"), new projectionObj("init=EPSG:3003")); while with this point.project(new projectionObj("init=EPSG:4326"), new projectionObj("init=EPSG:26591")); there is no error. Point is initialized with (37.13953463591601 45.66405322544534), a decimal degrees lon-lat value. Has anybody solved this or a similar problem? Thanks in advance for any help!! Ludovico ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html From woodbri at SWOODBRIDGE.COM Tue Sep 4 06:48:49 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 4 Sep 2007 09:48:49 -0400 Subject: [UMN_MAPSERVER-DEV] Large installations In-Reply-To: Message-ID: Johan, Topozone.com is a large site with rasters on the order of 20 TB of disk and serves some pretty high volumes. It uses something like a cluster of 9-10 systems running mapserver. This site draws primarily raster maps, but also has vector mapping that can be overlaid. I will defer to Ed McNierney for details. Where2getit.com serves in the ball park of 1/2 Billion map draws annually. We have a load balanced cluster of 10 +- mapservers drawing vector based maps. Slippymap.com is serving tiles that were generated using mapserver. I'm sure there are lots of other sites out that that are serving high volumes. HTH, -Steve W Hallgren Johan E wrote: > > > Hello > > > > I?m looking for anyone that has used MapServer in large installations, > or MapServer-based websites with high amount of traffic. I need > references so any information would be valuable. > > > > /Johan > > > * * > > > * Johan Hallgren * > > > > WM-data/LogicaCMG > > Pelle Bergs backe 3 > > Box 1938, 791 19 Falun > > Tel (och mobil): 023-547 46 (int: +46-2354746) > > johan.e.hallgren @wmdata.com > > http://www.LogicaCMG.se > > > From woodbri at SWOODBRIDGE.COM Tue Sep 4 06:37:41 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 4 Sep 2007 09:37:41 -0400 Subject: GIF TAB In-Reply-To: Message-ID: Hallgren Johan E wrote: > > > Hello friends > > > > If I?m correct, the world file idea is an ESRI invention for > georeferencing of a rasterfile and MapInfo are using a tab-file along > with the raster. My question is, does MapServer support both the ESRI > world file and the MapInfo tab-file for georeferencing of raster? Mapserver has input data providers like a Shapefile provider that handle input from shapefiles. I also has (deprecated?) TIFF provider that expects some flavor of world file and if has GDAL and OGR providers that support a wide range of input providers. Since each input provider, which are not part of the mapserver development (for the most part), have their own symantecs with respect to world file support, you really need to be somewhat aware of which provider you are trying to use, and to be aware of what they support. So it would be helpful if you can post the output of: mapserv -v and maybe some details about the data you are trying to display. -Steve W From warmerdam at POBOX.COM Tue Sep 4 06:42:49 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 4 Sep 2007 09:42:49 -0400 Subject: GIF TAB In-Reply-To: Message-ID: Hallgren Johan E wrote: > Hello friends > > > > If I?m correct, the world file idea is an ESRI invention for > georeferencing of a rasterfile and MapInfo are using a tab-file along > with the raster. My question is, does MapServer support both the ESRI > world file and the MapInfo tab-file for georeferencing of raster? Johan, MapServer (via GDAL) does not generally support Mapinfo tab files for assigning georeferencing to raster files. I think the GeoTIFF driver is an exception to this but I'm not exactly sure. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From verdaguerj at YAHOO.ES Tue Sep 4 06:53:09 2007 From: verdaguerj at YAHOO.ES (cocoloco) Date: Tue, 4 Sep 2007 06:53:09 -0700 Subject: Can mapserver run on IIS using Microsoft fastCGI plugin? In-Reply-To: Message-ID: Thanks for your reply, Rich Howard Butler used the fastCGI module developed by Shane Caraveo, but I am trying to use the fastCGI plugin developed by Microsoft. Since it is an official plugin by Microsoft I hope that it integrates easily with ISS. Richard Greenwood wrote: > > > Howard Butler posted an email to this list in April 2007 with a > subject line of "IIS and FastCGI" which described how he had done it. > > Rich > > -- View this message in context: http://www.nabble.com/Can-mapserver-run-on-IIS-using-Microsoft-fastCGI-plugin--tf4372781.html#a12478543 Sent from the Mapserver - User mailing list archive at Nabble.com. From wesp at GDV.COM Tue Sep 4 07:11:30 2007 From: wesp at GDV.COM (Oliver Wesp) Date: Tue, 4 Sep 2007 16:11:30 +0200 Subject: java mapscript, method pointObj.project In-Reply-To: <637175.53968.qm@web31914.mail.mud.yahoo.com> Message-ID: Hi Ludovico, this means that you're using a projection that's not defined in your epsg file. http://mapserver.gis.umn.edu/docs/error/proj-init-file best regards, Oliver Ludovico Bianchini schrieb: > Hi, > I'm obtaining this > > Exception occurred during event dispatching: > java.lang.UnknownError: msProcessProjection(): > Projection library error. no options found in 'init' > file > at > edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native > Method) > at > edu.umn.gis.mapscript.projectionObj.(projectionObj.java:41) > > with this line of code: > > point.project(new projectionObj("init=EPSG:4326"), new > projectionObj("init=EPSG:3003")); > > while with this > > point.project(new projectionObj("init=EPSG:4326"), new > projectionObj("init=EPSG:26591")); > > there is no error. > > Point is initialized with (37.13953463591601 > 45.66405322544534), a decimal degrees lon-lat value. > > Has anybody solved this or a similar problem? > > Thanks in advance for any help!! > > Ludovico > > > ___________________________________ > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html > > > -- Dipl.-Geogr. Oliver Wesp GDV Gesellschaft f?r geografische Datenverarbeitung mbH Binger Str. 49-51 55218 Ingelheim am Rhein Germany Fon 049(0)6132-7148-18 Fax 049(0)6132-7148-28 www.gdv.com Sitz der Gesellschaft: Ingelheim Amtsgericht Mainz HRB 23123 Gerichtsstand Mainz Gesch?ftsf?hrer: Thomas Riehl, Dirk H?bener From hobu.inc at GMAIL.COM Tue Sep 4 07:09:23 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Tue, 4 Sep 2007 09:09:23 -0500 Subject: Mapserver 5 windows SDE build? In-Reply-To: <49B9846C39F25A4FA901064970861610BCB58E@mhk-ex1.ad.dpra.com> Message-ID: I built the plugins for 9.1 and 9.2 and gave them to Jeff to incorporate in the next MS4W beta. Should be on the way... Howard On Sep 4, 2007, at 7:35 AM, Josh Hevenor wrote: > Has there been any progress here? I would be interested in this as > well. Thanks Howard! On Aug 30, 2007, at 9:12 AM, Howard Butler > wrote: > Working on it. Hope to have a plugin (as opposed to a > full > libmap.dll) for SDE 9.1 and 9.2 by the end of the week...> > > Howard> > On Aug 30, 2007, at 2:03 AM, Chris Tweedie wrote:> >> > Hi guys,>> >> Has anyone out there built win32 MS v5 (any beta) > with a libmap >> with SDE support or ogr_sde driver?>> >> I > understand why ms4w/fwtools havent bothered adding it to the beta > >> builds but I am very eager to test out the improvements > particular >> on my SDE datastores.>> >> I failed miserably trying > to build from source so just wondering if >> i can short-circuit > the process by leveraging off someone elses >> hard work :)>> >> > Cheers>> >> -->> Chris Tweedie > > > From laura.poggio at GMAIL.COM Tue Sep 4 09:13:24 2007 From: laura.poggio at GMAIL.COM (Laura Poggio) Date: Tue, 4 Sep 2007 18:13:24 +0200 Subject: ogr/.ovf and mysql Message-ID: Dear all, I am starting with mapserver and now I have problems with database issues. I am using Mysql 5 in windows XP. Mapserver was installed with ms4w 2.2.5. Normally Mapserver is working fine. I tried to draw a layer from a mySQL table. The table has spatial information, i.e. x/y columns. I tried in two ways first with .ovf file and then with direct ogr connection. I was unsuccessful in both case. 1) .ovf MAP FILE for the layer LAYER # point layer with sampled site starts here, query and join NAME "dbsites" TYPE point CONNECTIONTYPE OGR CONNECTION "mysql.ovf" DATA "aquidata" TRANSPARENCY 100 STATUS on HEADER "c:/ms4w/tmp/ms_tmp/appl/q_templates/gru_CGI_db_header.html" FOOTER "c:/ms4w/tmp/ms_tmp/appl/q_templates/gru_CGI_db_footer.html" TEMPLATE "c:/ms4w/tmp/ms_tmp/appl/q_templates/gru_CGI_db_class_query.html" TOLERANCE 150 TOLERANCEUNITS pixels CLASS NAME "dbsites" STYLE SYMBOL 'circle' COLOR 0 0 0 SIZE 7 END # end style END # end class END # sites layer ends here .ovf file MYSQL:URBSISdtb_GRU01,user=root,password=leo,host=localhost,port=3306,tables=qloc SELECT LocCode, X, Y, alt, lu, relief FROM qloc wkbPoint The ovf file was tested in ogrinfo and everything was fine. When used in the html template wih CGI substitution strings the following error was reported msDrawMap(): Image handling error. Failed to draw layer named 'dbsites'. msOGRFileOpen(): OGR error. GetLayer(aquidata) failed for OGR connection `mysql.ovf'. 2) direct OGR LAYER # point layer with sampled site starts here, query and join NAME "dbsites" TYPE point CONNECTIONTYPE OGR CONNECTION "MYSQL:URBSISdtb_GRU01,user=root,password=leo,host=localhost,port=3306,tables=qloc" DATA "SELECT LocCode, X, Y, alt, lu, relief FROM qloc" TRANSPARENCY 100 STATUS on HEADER "c:/ms4w/tmp/ms_tmp/appl/q_templates/gru_CGI_db_header.html" FOOTER "c:/ms4w/tmp/ms_tmp/appl/q_templates/gru_CGI_db_footer.html" TEMPLATE "c:/ms4w/tmp/ms_tmp/appl/q_templates/gru_CGI_db_class_query.html" TOLERANCE 150 TOLERANCEUNITS pixels CLASS NAME "dbsites" STYLE SYMBOL 'circle' COLOR 0 0 0 SIZE 7 END # end style END # end class END # sites layer ends here In this case the layer is displayed in the legend, but not draw and no query are possible. If someone has any hints on how to solve that. Thank you very much in advance Laura -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Sep 4 09:55:47 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 4 Sep 2007 11:55:47 -0500 Subject: Repeating labels along a line? In-Reply-To: <12458906.post@talk.nabble.com> Message-ID: That's not an option as the code sits. You'd have to break the linear features into smaller features ahead of time. MapServer can (via the MINFEATUREDISTANCE parameter) weed out duplicates with that type of data structure... Steve >>> On 9/3/2007 at 4:35 AM, in message <12458906.post at talk.nabble.com>, cocoloco wrote: > Is there any way to label a linear feature so that the label text is repeated > along the feature? > > For example, in a long street it would be desirable that the name of the > street appeared multiple times along the path of the street. (like street > labels in Google maps). Is it possible? > > Thanks. From henric at ERNSTSON.NU Tue Sep 4 10:31:14 2007 From: henric at ERNSTSON.NU (Henric Ernstson) Date: Tue, 4 Sep 2007 19:31:14 +0200 Subject: open map using coordinates from a database Message-ID: Hi I am a new-bee on mapserver and planing to use a map-server and a database, I would like to use data(coordinates) in my database, generating a url- that i can use to open a map-view on mapserver with. The quetion is where to start, I can make applications (have tryed some simple ones) and have made some more complex using chameleon I have not found any thing on how to generate a url depending on coordinates or any other way for fixing this best reg. Henric -------------- next part -------------- An HTML attachment was scrubbed... URL: From revelar at HOTMAIL.COM Tue Sep 4 15:42:14 2007 From: revelar at HOTMAIL.COM (Raul Retamozo) Date: Tue, 4 Sep 2007 22:42:14 +0000 Subject: mapserver hosting In-Reply-To: <637175.53968.qm@web31914.mail.mud.yahoo.com> Message-ID: Does anyone know a Mapserver hosting provider, based on Windows and including Postgis support , apart form those who appear in mapserver web site ( some of these are not available). raul n. retamozo velarde revelar at hotmail.com > Date: Tue, 4 Sep 2007 15:24:57 +0200> From: metlud at YAHOO.IT> Subject: [UMN_MAPSERVER-USERS] java mapscript, method pointObj.project> To: MAPSERVER-USERS at LISTS.UMN.EDU> > Hi,> I'm obtaining this> > Exception occurred during event dispatching:> java.lang.UnknownError: msProcessProjection():> Projection library error. no options found in 'init'> file> at> edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native> Method)> at> edu.umn.gis.mapscript.projectionObj.(projectionObj.java:41)> > with this line of code:> > point.project(new projectionObj("init=EPSG:4326"), new> projectionObj("init=EPSG:3003"));> > while with this> > point.project(new projectionObj("init=EPSG:4326"), new> projectionObj("init=EPSG:26591"));> > there is no error.> > Point is initialized with (37.13953463591601> 45.66405322544534), a decimal degrees lon-lat value.> > Has anybody solved this or a similar problem?> > Thanks in advance for any help!!> > Ludovico> > > ___________________________________ > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html _________________________________________________________________ Consigue el nuevo Windows Live Messenger http://get.live.com/messenger/overview -------------- next part -------------- An HTML attachment was scrubbed... URL: From terence at WAIROADC.GOVT.NZ Tue Sep 4 16:17:07 2007 From: terence at WAIROADC.GOVT.NZ (Terence Maru) Date: Wed, 5 Sep 2007 11:17:07 +1200 Subject: blank image Message-ID: Hi everyone, I have a problem generating an image from my postgis database I have attached my php script. No errors are returned when the script is run, just a blank image is returned. Can anyone see whats wrong with my script? Cheers bm $map = ms_newMapObj(""); $map->setSize(600, 300); $temp = $map->setExtent(-180, -90, 180, 90); //define path where to creat image $map->web->set("imagepath", "./data/"); $map->web->set("imageurl", "./data/"); $map->web->set("log", "./data/logfile.txt"); //crate parcel layer, associate it withthe map $parcelLayer = ms_newLayerObj($map); $parcelLayer->set("connectiontype", MS_POSTGIS); $parcelLayer->set("name", "parcels layer"); $connector = "user=username dbname=test host=localhost"; $parcelLayer->set("connection", $connector); $sql = "the_geom from parcels"; $parcelLayer->set("data", $sql); $parcelLayer->set("status", MS_DEFAULT); $parcelLayer->set("type", MS_LAYER_POLYGON); $parcelClass = ms_newClassObj($parcelLayer); $parcelClass->set("name", "parcels class"); $parcelStyle = ms_newStyleObj($parcelClass); $parcelStyle->color->setRGB( 250, 0, 0); $parcelStyle->outlinecolor->setRGB( 255, 255, 255); $parcelStyle->set("symbolname", "circle"); $parcelStyle->set("size", 10); ##################################################################################### This e-mail message has been scanned for Viruses by McAfee and content has been cleared by MailMarshal ##################################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Tue Sep 4 17:01:37 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 4 Sep 2007 18:01:37 -0600 Subject: blank image In-Reply-To: <8A78DFFBDB6ED849945A18DEF719911C64C9A4@wdcserver2.wairoadc.govt.nz> Message-ID: Terence Maru wrote: > Hi everyone, I have a problem generating an image from my postgis > database I have attached my php script. No errors are returned when > the script is run, just a blank image is returned. Can anyone see whats > wrong with my script? Cheers This exact same question came up two days ago. 90% of the time, the issue is projections. Ensure that all layers and the output map are in the same projection, or else set projection blocks. 90% of the time, that fixes it. -- Gregor Mosheh / Greg Allensworth 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 From arisutanto_jogja at YAHOO.CO.ID Tue Sep 4 18:08:32 2007 From: arisutanto_jogja at YAHOO.CO.ID (ari sutanto) Date: Wed, 5 Sep 2007 08:08:32 +0700 Subject: problem with PHP/MapScript Message-ID: Hi list, I have any problems about GMap75 PHP/MapScript. i have an aplication of php, like this, getLayerByName("network"); if($l) { if($l && $start!=0 && $end!=0) { if($cx1!=0 && $cy1!=0 && $cx2!=0 && $cy2!=0 && $cx1!=$cx2 && $cy1!=$cy2) { $minx = min($cx1,$cx2)-$delta; $miny = min($cy1,$cy2)-$delta; $maxx = max($cx1,$cx2)+$delta; $maxy = max($cy1,$cy2)+$delta; $map->setextent($minx,$miny,$maxx,$maxy); $rectobj = $map->extent; $ll_x = $rectobj->minx; $ll_y = $rectobj->miny; $ur_x = $rectobj->maxx; $ur_y = $rectobj->maxy; $sql="the_geom from (select gid, the_geom from "."shortest_path_astar2_as_geometry_internal_id_directed('tercepat', ".$start.", ".$end.", ".$ll_x.", ".$ll_y.", ".$ur_x.", ".$ur_y.", false, true)) as g using unique gid using SRID=-1"; $l->set('data', $sql); $l->set('status', MS_ON); } } else { $l->set('status', MS_OFF); } } $image=$map->draw(); $image_url=$image->saveWebImage(); ?> i put into Gmap template in gmap75.phtml, why the result of this doesn't come up in map display? but actually the case appear in tmp folder. Thanks, Regards, Ari Sutanto ________________________________________________________ Bergabunglah dengan orang-orang yang berwawasan, di di bidang Anda! Kunjungi Yahoo! Answers saat ini juga di http://id.answers.yahoo.com/ From friendvn2000 at YAHOO.COM Tue Sep 4 18:51:27 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Tue, 4 Sep 2007 20:51:27 -0500 Subject: problem with PHP/MapScript Message-ID: So complicated to debug your program Can you forcus more details... At least I don't see function draw() or drawQuery() is implemented From vishu_73ns at YAHOO.COM Tue Sep 4 21:46:30 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Tue, 4 Sep 2007 23:46:30 -0500 Subject: Georeferencing Message-ID: Anybody has input on removing georeference information from "OGR Files" (dgn in specific), or any tutorial on georeferencing. From jhhal at WMDATA.COM Tue Sep 4 23:56:26 2007 From: jhhal at WMDATA.COM (Hallgren Johan E) Date: Wed, 5 Sep 2007 08:56:26 +0200 Subject: GIF TAB Message-ID: Hello Frank and Steve, I looked in the nmake.opt-file and saw that I only use GDAL as input provider, and in that case Franks answer was sufficient. We will try to manage this specific format some other ways. Thanks Johan WM-data/LogicaCMG Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.e.hallgren at wmdata.com http://www.LogicaCMG.se -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: den 4 september 2007 15:38 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GIF TAB Hallgren Johan E wrote: > > > Hello friends > > > > If I'm correct, the world file idea is an ESRI invention for > georeferencing of a rasterfile and MapInfo are using a tab-file along > with the raster. My question is, does MapServer support both the ESRI > world file and the MapInfo tab-file for georeferencing of raster? Mapserver has input data providers like a Shapefile provider that handle input from shapefiles. I also has (deprecated?) TIFF provider that expects some flavor of world file and if has GDAL and OGR providers that support a wide range of input providers. Since each input provider, which are not part of the mapserver development (for the most part), have their own symantecs with respect to world file support, you really need to be somewhat aware of which provider you are trying to use, and to be aware of what they support. So it would be helpful if you can post the output of: mapserv -v and maybe some details about the data you are trying to display. -Steve W From bartvde at GMAIL.COM Wed Sep 5 01:39:32 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Wed, 5 Sep 2007 10:39:32 +0200 Subject: SYMBOLSCALE and SLD Message-ID: Hi list, when Mapserver applies an SLD to a LAYER, it does not remove SYMBOLSCALE from the LAYER, which results in line widths etc. which do not correspond exactly to the SLD line widths. Is this intentional? Should it not remove SYMBOLSCALE when applying an SLD? Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesp at GDV.COM Wed Sep 5 01:58:08 2007 From: wesp at GDV.COM (Oliver Wesp) Date: Wed, 5 Sep 2007 10:58:08 +0200 Subject: java mapscript, method pointObj.project In-Reply-To: <594532.78490.qm@web31915.mail.mud.yahoo.com> Message-ID: Dear Ludovico, Maybe there is another epsg file on your system? What's your operating system and where is the projection library located? regards, Olli P.S. I'm sure other people will benefit from this or maybe someone other than myself has a clue regarding your problem so I included the mailing list. Ludovico Bianchini schrieb: > Thanks for the quick reply, now I have another > problem: I rename the epsg file in \nad\epsg to > \nad\_epsg, but there is no error...is there another > file the library uses if doesn't find epsg? > > I've made this test because I try to insert a towgs > parameter to the projection line, but when I perform > this > x = 1752000f; > y = 5062000f; > point.setX(x); > point.setY(y); > point.project(new projectionObj("init=EPSG:26591"), > new projectionObj("init=EPSG:4326")); > > to discover the longitude latitude of a point situated > in Italy (26591 is for Monte Mario (Rome) / Italy zone > 1) I obtain (37.13953463591601 45.66405322544534), > which is situated in Russia. > > --- Oliver Wesp ha scritto: > >> Hi Ludovico, >> >> this means that you're using a projection that's not >> defined in your >> epsg file. >> >> > http://mapserver.gis.umn.edu/docs/error/proj-init-file >> best regards, >> Oliver >> >> Ludovico Bianchini schrieb: >>> Hi, >>> I'm obtaining this >>> >>> Exception occurred during event dispatching: >>> java.lang.UnknownError: msProcessProjection(): >>> Projection library error. no options found in >> 'init' >>> file >>> at >>> > edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native >>> Method) >>> at >>> > edu.umn.gis.mapscript.projectionObj.(projectionObj.java:41) >>> with this line of code: >>> >>> point.project(new projectionObj("init=EPSG:4326"), >> new >>> projectionObj("init=EPSG:3003")); >>> >>> while with this >>> >>> point.project(new projectionObj("init=EPSG:4326"), >> new >>> projectionObj("init=EPSG:26591")); >>> >>> there is no error. >>> >>> Point is initialized with (37.13953463591601 >>> 45.66405322544534), a decimal degrees lon-lat >> value. >>> Has anybody solved this or a similar problem? >>> >>> Thanks in advance for any help!! >>> >>> Ludovico >>> >>> >>> ___________________________________ >>> L'email della prossima generazione? Puoi averla >> con la nuova Yahoo! Mail: >> http://it.docs.yahoo.com/nowyoucan.html >>> >>> >> -- >> Dipl.-Geogr. Oliver Wesp >> GDV Gesellschaft f?r geografische Datenverarbeitung >> mbH >> Binger Str. 49-51 >> 55218 Ingelheim am Rhein >> Germany >> Fon 049(0)6132-7148-18 >> Fax 049(0)6132-7148-28 >> www.gdv.com >> Sitz der Gesellschaft: Ingelheim >> Amtsgericht Mainz HRB 23123 >> Gerichtsstand Mainz >> Gesch?ftsf?hrer: Thomas Riehl, Dirk H?bener >> > > > > ___________________________________ > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html > > > -- Dipl.-Geogr. Oliver Wesp GDV Gesellschaft f?r geografische Datenverarbeitung mbH Binger Str. 49-51 55218 Ingelheim am Rhein Germany Fon 049(0)6132-7148-18 Fax 049(0)6132-7148-28 www.gdv.com Sitz der Gesellschaft: Ingelheim Amtsgericht Mainz HRB 23123 Gerichtsstand Mainz Gesch?ftsf?hrer: Thomas Riehl, Dirk H?bener From henric at ERNSTSON.NU Wed Sep 5 04:29:49 2007 From: henric at ERNSTSON.NU (Henric Ernstson) Date: Wed, 5 Sep 2007 13:29:49 +0200 Subject: No subject Message-ID: Hi list, I have made a application in mapserver, PHP/MapScript. In one situation I shall start the application from a shell of a database, and have found out that I can use MAP_EXTENTS_MAX to zoom in the object in the database. I have read about changing map file parameters via a form or a url and would like some one with experience telling me if I am doing some stupid if I chose this solution. http:// url?NAV_INPUT_TYPE=RECTANGLE&NAV_INPUT_SUBMIT=&MAP_EXTENTS_MINX=&MAP_EXT ENTS_MINY=&MAP_EXTENTS_MAXX=&MAP_EXTENTS_MAXY=&MAP_WIDTH=400&MAP_HEIGHT= 300 Best reg. Henric Ernstson -------------- next part -------------- An HTML attachment was scrubbed... URL: From metlud at YAHOO.IT Wed Sep 5 06:48:00 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Wed, 5 Sep 2007 15:48:00 +0200 Subject: java mapscript, method pointObj.project In-Reply-To: <46DE6FA0.30509@gdv.com> Message-ID: Hi Oliver, thanks for the reply and for including the mailing list, I excluded it not intentionally. I've deployed ms4w (I'm working on Windows XP Home Edition), so I think that the only place with epsg file is C:\ms4w\proj\nad. Now I'm working with a canonical installation of Apache, php and mapscript (I've copied php_mapscript.dll in ext folder of php installation). (Note: I have not delete C:\ms4w folder and subfolders). To work with mapserver in Java (jdk1.6.0_02) I've copied mapscript.jar in C:\Programmi\Java\jdk1.6.0_02\jre\lib and mapscript.dll in C:\Programmi\Java\jdk1.6.0_02\jre\bin, then import the library in NetBeans IDE. I've executed depends.exe (a tool to examine dll dependencies of a exetutable) on mapscript.dll and the result is DWMAPI.DLL EFSADU.DLL c:\windows\system32\SHLWAPI.DLL c:\windows\system32\MPR.DLL \ms4w\apache\cgi-bin\CFITSIO.DLL \ms4w\apache\cgi-bin\GDAL14.DLL \ms4w\apache\cgi-bin\GEOS_C.DLL \ms4w\apache\cgi-bin\GEOTIFF.DLL \ms4w\apache\cgi-bin\HDF5DLL.DLL \ms4w\apache\cgi-bin\ICONV.DLL \ms4w\apache\cgi-bin\LIBCURL.DLL \ms4w\apache\cgi-bin\LIBEAY32.DLL \ms4w\apache\cgi-bin\LIBECWJ2.DLL \ms4w\apache\cgi-bin\LIBFCGI.DLL \ms4w\apache\cgi-bin\LIBMAP.DLL \ms4w\apache\cgi-bin\LIBMYSQL.DLL \ms4w\apache\cgi-bin\LIBPQ.DLL \ms4w\apache\cgi-bin\LIBTIFF.DLL \ms4w\apache\cgi-bin\LIBXML2.DLL \ms4w\apache\cgi-bin\LTI_DSDK_DLL.DLL \ms4w\apache\cgi-bin\NETCDF.DLL \ms4w\apache\cgi-bin\PDFLIB.DLL \ms4w\apache\cgi-bin\PROJ.DLL \ms4w\apache\cgi-bin\SQLITE3.DLL \ms4w\apache\cgi-bin\SSLEAY32.DLL \ms4w\apache\cgi-bin\SZLIBDLL.DLL \ms4w\apache\cgi-bin\XERCES-C_2_7.DLL \ms4w\apache\cgi-bin\ZLIB1.DLL and many other windows dll located in C:\windows\system32\ In the system PostgreSQL/PostGIS is running too, but I don't think that proj library use resource of the dbms... It's all. PS: actually I have solved the problem writing a stored procedure in postgresql/postgis to convert the coordinates CREATE OR REPLACE FUNCTION get3003("varchar") RETURNS text AS $BODY$ BEGIN return astext(transform(geomfromtext('POINT(' || $1 || ')', 4326), 3003)); END $BODY$ LANGUAGE 'plpgsql' IMMUTABLE; Bye, Ludovico --- Oliver Wesp ha scritto: > Dear Ludovico, > > Maybe there is another epsg file on your system? > What's your operating > system and where is the projection library located? > > regards, > Olli > > P.S. I'm sure other people will benefit from this or > maybe someone other > than myself has a clue regarding your problem so I > included the mailing > list. > > Ludovico Bianchini schrieb: > > Thanks for the quick reply, now I have another > > problem: I rename the epsg file in \nad\epsg to > > \nad\_epsg, but there is no error...is there > another > > file the library uses if doesn't find epsg? > > > > I've made this test because I try to insert a > towgs > > parameter to the projection line, but when I > perform > > this > > x = 1752000f; > > y = 5062000f; > > point.setX(x); > > point.setY(y); > > point.project(new > projectionObj("init=EPSG:26591"), > > new projectionObj("init=EPSG:4326")); > > > > to discover the longitude latitude of a point > situated > > in Italy (26591 is for Monte Mario (Rome) / Italy > zone > > 1) I obtain (37.13953463591601 45.66405322544534), > > which is situated in Russia. > > > > --- Oliver Wesp ha scritto: > > > >> Hi Ludovico, > >> > >> this means that you're using a projection that's > not > >> defined in your > >> epsg file. > >> > >> > > > http://mapserver.gis.umn.edu/docs/error/proj-init-file > >> best regards, > >> Oliver > >> > >> Ludovico Bianchini schrieb: > >>> Hi, > >>> I'm obtaining this > >>> > >>> Exception occurred during event dispatching: > >>> java.lang.UnknownError: msProcessProjection(): > >>> Projection library error. no options found in > >> 'init' > >>> file > >>> at > >>> > > > edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native > >>> Method) > >>> at > >>> > > > edu.umn.gis.mapscript.projectionObj.(projectionObj.java:41) > >>> with this line of code: > >>> > >>> point.project(new > projectionObj("init=EPSG:4326"), > >> new > >>> projectionObj("init=EPSG:3003")); > >>> > >>> while with this > >>> > >>> point.project(new > projectionObj("init=EPSG:4326"), > >> new > >>> projectionObj("init=EPSG:26591")); > >>> > >>> there is no error. > >>> > >>> Point is initialized with (37.13953463591601 > >>> 45.66405322544534), a decimal degrees lon-lat > >> value. > >>> Has anybody solved this or a similar problem? > >>> > >>> Thanks in advance for any help!! > >>> > >>> Ludovico ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html From assefa at DMSOLUTIONS.CA Wed Sep 5 07:56:09 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 5 Sep 2007 10:56:09 -0400 Subject: SYMBOLSCALE and SLD In-Reply-To: <1ebb87870709050139vcaf11e6v1c8aaad938e2745e@mail.gmail.com> Message-ID: Bart van den Eijnden wrote: > Hi list, > > when Mapserver applies an SLD to a LAYER, it does not remove SYMBOLSCALE > from the LAYER, which results in line widths etc. which do not > correspond exactly to the SLD line widths. > > Is this intentional? Should it not remove SYMBOLSCALE when applying an SLD? > Not really intentional, I simply never used SYMBOLSCALE in the tests. It is kind of debatable if the SLD should remove this setting. I am more inclined at this point to agree with you so that SYMBOLSCALE will always be set to -1 when the SLD is applied. I have opened http://trac.osgeo.org/mapserver/ticket/2291 for it so others can comment on it. Later, > Best regards, > Bart -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hartpence_gis at CO.JASPER.IA.US Wed Sep 5 08:09:13 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 5 Sep 2007 10:09:13 -0500 Subject: Querying points on layer based on XY Table Message-ID: Hello, I added a point layer which was based on an Access table with XY coordinates. The layer displays fine and labels fine, but I can't seem to query it. I tried using ItemQuery and just Query, but though it acts like it selects a feature, it won't display any of the fields. Is this a limitation in adding layers from a XY table? Here is a link to the website where I am trying to do this. The layer is called Septic. Clicking on the "I" next to the layer initiates the query mode. http://216.203.113.94/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CSeptic.map&zoomsize=2&layers=ortho+Septic+Parcels+Lots+ROW+Survey+Section+Sub+ParcelPt+Water+Shields+Highways+Roads+Watershed+County+Towns&mode=browse&slayer=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem=&shapeindex=&savequery= Lawrence Hartpence From arkadi at MEBIUS.LV Wed Sep 5 09:08:17 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Wed, 5 Sep 2007 19:08:17 +0300 Subject: java mapscript, method pointObj.project In-Reply-To: <788700.39213.qm@web31902.mail.mud.yahoo.com> Message-ID: Make sure CONFIG "PROJ_LIB" "c:/ms4w/proj/nad/" is present in your MAP file. Seems to be MS4W specific kludge. From John.Westwood at PORT.AC.UK Wed Sep 5 09:25:42 2007 From: John.Westwood at PORT.AC.UK (John Westwood) Date: Wed, 5 Sep 2007 17:25:42 +0100 Subject: open map using coordinates from a database In-Reply-To: <002301c7ef19$649cb180$1102a8c0@HENRIC> Message-ID: Hi Henric MapServer can be set up as a WFS (Web Feature Service) server for vector data and / or a WMS (Web Map Service) server for raster data. You can then write a WFS request URL or WMS request URL and this should return the specified map layer at the specified coordinates. You need to look up how to make WFS / WMS requests and how to set up MapServer as a WFS / WMS server. There are some good information on the MapServer web site, just use the search box. :) An example WMS request could look something like this: http://www.examplewebsite.org/cgi-bin/mapserv?map=/path/to/map/file/mapfile.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYERS=layerToDisplay&SRS=EPSG:4326&STYLES=&BBOX=-180,-90,180,90&WIDTH=600&HEIGHT=300&FORMAT=image/png You can use many different databases with MapServer. Personally, I would recommend Postgres with the PostGIS extension - this works well with MapServer. You would load your vector data into the database and then in the MapServer map file you would specify a database connection string as the data source for a particular layer. I found the book Web Mapping Illustrated, published by O'Reilly to be very useful. I hope this will give you somewhere to start. John W. >>> On 04/09/2007 at 18:31, in message <002301c7ef19$649cb180$1102a8c0 at HENRIC>, Henric Ernstson wrote: > > Hi I am a new-bee on mapserver and planing to use a map-server and a > database, I would like to use data(coordinates) in my database, > generating a url- that i can use to open a map-view on mapserver with. > > The quetion is where to start, I can make applications (have tryed some > simple ones) and have made some more complex using chameleon > > I have not found any thing on how to generate a url depending on > coordinates or any other way for fixing this > > best reg. Henric From dmorissette at MAPGEARS.COM Wed Sep 5 14:47:39 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 5 Sep 2007 17:47:39 -0400 Subject: MapServer 5.0.0-rc1 released Message-ID: Hi everyone, MapServer 5.0.0-rc1 has just been released. Yes, that's a release candidate, and hopefully the right one! The source package is available at: http://mapserver.gis.umn.edu/download/beta The page above also contains links to binary distributions. They should be updated with binaries for this beta in the next few days. If no critical issue is found in this release candidate, then we will officially release MapServer 5.0.0 next week. Thanks a lot to all those who have tested previous betas and have reported their results, either via the list or directly in Trac (bug tracker). That helps a lot... please keep testing and sending feedback. The complete list of changes/fixes since beta6 is included at the bottom of this email. As was mentioned before, our plan was to have one beta per week until the final release of MapServer 5.0 which is planned for the week of September 12, 2007. More details can be found in the 5.0 release plan at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Daniel Version 5.0.0-rc1 (2007-09-05) ------------------------------ - Fixed "MinFeatureSize AUTO" labeling for polygon layers, works for polygon annotation layers too (#2232) - Fixed path following labels with short (2/3 character) strings (#2223) - AGG fix a bug when rendering polygons with tiled pixmaps - Added requirement to provide validation pattern for cgi-based attribute queries using the layer metadata key 'qstring_validation_pattern' (#2286) - Fixed msDebug causing a crash with VS2005 (#2287) - Added stronger checks on libpdf version in configure script (#2278) - Added msGetVersionInt() to MapScript (ms_GetVersionInt() in PHP) (#2279) - _isnan prototype for MSVC builds from #2277 - AGG: Fix a bug when rendering brushed lines with vector or pixmap symbols (artifacts could appear on outline) - AGG: Adjust symbol height when brushing a line with a vector symbol so that the line width isn't truncated - Only include process.h on win32 (non-cygwin) systems, moved from maptemplate.h to mapserver.h. (#2276) From verdaguerj at YAHOO.ES Thu Sep 6 00:24:25 2007 From: verdaguerj at YAHOO.ES (Joan Verdaguer) Date: Thu, 6 Sep 2007 07:24:25 +0000 Subject: Repeating labels along a line? Message-ID: Thanks Steve. Anyway I think it would be great to have this feature in a future version, don't you? :) Joan ----- Original message ---- From: Steve Lime To: MAPSERVER-USERS at lists.umn.edu; cocoloco Sent: martes, 4 de septiembre, 2007 18:55:47 Title: Re: [UMN_MAPSERVER-USERS] Repeating labels along a line? That's not an option as the code sits. You'd have to break the linear features into smaller features ahead of time. MapServer can (via the MINFEATUREDISTANCE parameter) weed out duplicates with that type of data structure... Steve >>> On 9/3/2007 at 4:35 AM, in message <12458906.post at talk.nabble.com>, cocoloco wrote: > Is there any way to label a linear feature so that the label text is repeated > along the feature? > > For example, in a long street it would be desirable that the name of the > street appeared multiple times along the path of the street. (like street > labels in Google maps). Is it possible? > > Thanks. ____________________________________________________________________________________ S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcos at BURKE.ATH.CX Thu Sep 6 01:26:18 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 6 Sep 2007 10:26:18 +0200 Subject: Django with python-mapscript ? In-Reply-To: <46D204DF.7060903@deprem.gov.tr> Message-ID: I am using it and it works fine. You must set locale to C to make expressions with decimals work. El dom, 26-08-2007 a las 18:55 -0400, temiz escribi?: > hello > > I want to use python mapscript. > > I am also interested in using Django. > > I am wondering if they are suitable to each other. > > I will appreciate if you share your experiences > > > regards > From dimitris.riggas at GMAIL.COM Thu Sep 6 01:44:24 2007 From: dimitris.riggas at GMAIL.COM (Dimitris Riggas) Date: Thu, 6 Sep 2007 11:44:24 +0300 Subject: Problem with drawLabelCache on openSUSE Message-ID: Hello everybody, I have the following problem and any help is most welcome! I have developed a php application using MapServer. php is running as a module, not as cgi. The application was developed and tested on WinXP but when I moved it on openSUSE 10.2 I run into problems with the drawLabelCache function of mapObj. The problem is that it takes toooooo long to execute so my script blocks till maximum execution time elapses and thus the whole script halts! I have changed maximum execution time to various values without solving my problem. The execution environment I use is MapServer version 4.8.2; actually it is the current basic FGS package that includes the following components: apache-base 1.3.33 curl-lib 7.12.2 expat-base 1.95.8 freetype-lib 2.1.9 gd-lib 2.0.33 gdal-base 1.2.5 jpeg-lib 6b libgeotiff-lib 1.2.2 libiconv-base 1.9.1 libpng-lib 1.2.6 mapserver-base 4.4.1 mapserver-php 4.4.1 netcdf-lib 3.5.1 openssl-lib 0.9.7d php-base 4.3.10 postgresql-lib 7.4.6 proj-lib 4.4.8 proj4_epsg42xxx-support 1.0.0 tiff-lib 3.7.1 unixODBC-base 2.2.10 xerces_c-base 2_6_0 The [relevant part of the] script that I use is the following: $map = ms_newMapObj( $MAPFILE ); $image = $map->prepareImage(); enableLayers( $map, $image ); //my custom function that draws layers depending on user input $map->drawLabelCache($image); // THE PROBLEMATIC LINE !!!!!!!!!!!! $image_url=$image->saveWebImage(); $scale = $map->drawScaleBar(); $map->embedScalebar($scale); $legend = $map->drawLegend(); $legend_url=$legend->saveWebImage(); $refmap = $map->drawReferenceMap(); $refmap_url=$refmap->saveWebImage(); If I comment out the line where the problem occurs, the map is created successfully but of course no labels appear! Could anyone help? it would be most welcome! Regards, Dimitris Riggas -------------- next part -------------- An HTML attachment was scrubbed... URL: From frequens at GMAIL.COM Thu Sep 6 02:18:29 2007 From: frequens at GMAIL.COM (frequens) Date: Thu, 6 Sep 2007 11:18:29 +0200 Subject: AGG install Message-ID: With Mapserver 5.0 coming with the second rendering engine (nice results) it is imperative to install the AGG library. Unfortunately the AGG documentation is rather short. Would somebody be willing to write a few lines how to install Libagg for Mapserver use, preferably for a Linux system? Thank you in advance, frequens -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Thu Sep 6 02:29:26 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Thu, 6 Sep 2007 11:29:26 +0200 Subject: AGG install In-Reply-To: <2482247e0709060218v72c14b1aj61cbb889b6afbd46@mail.gmail.com> Message-ID: Hi Frequens, I wrote something (draft) to install mapserver 5.0 with AGG : http://wiki.gloobe.org/doku.php/foss_installation#compilation_v5.0 It is in French, but I will try to add an english version soon only for this part to help you. Y. Le Thursday 06 September 2007 11:18:29 frequens, vous avez ?crit?: > With Mapserver 5.0 coming with the second rendering engine (nice results) > it is imperative to install the AGG library. Unfortunately the AGG > documentation is rather short. Would somebody be willing to write a few > lines how to install Libagg for Mapserver use, preferably for a Linux > system? > > Thank you in advance, > > frequens -- Yves Jacolin --- http://softlibre.gloobe.org From myardbenoit at GMAIL.COM Thu Sep 6 02:23:51 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 6 Sep 2007 11:23:51 +0200 Subject: TCL/MapScript compile issue Message-ID: Hi list, I'm trying to compile the Tcl MapScript extension under Solaris 10 and I have a few problems. I 'm using MapServer 4.10.3, Swig 1.3.21 and Tcl 8.5 but had no luck. Firstly, as I don't need Swig to be installed to build the Perl MapScript extension, why should I need it for Tcl MapScript ? What are the fundamental differencies between the two bindings justifying the presence of Swig for one but not the other ? Anyway, after installing Swig, I following the documentation and create the Makefile : > ./configure --with-tcl=/usr/local --with-swig=/opt/csw > looking for Tcl in /usr/local > found lib/tclConfig.sh in /usr/local > looking for Swig in /opt/csw > can not find swig.h in /opt/csw/include > using pre-built swig tcl interface > tcl version = 8.5 > creating Makefile As one can see, there's no 'swig.h'; actually my Swig package didn't provide it. > make > /opt/csw/bin/swig -tcl8 -dhtml -namespace -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -I. -I/usr/local//include -I/usr/local//include -I/usr/local/include \ > mapscript.i > swig: Warning. -dhtml option deprecated. > mapscript.i:215: Unable to find 'tclmodule.i' > *** Error code 1 > make: Fatal error: Command failed for target `mapscript_wrap.c' I wonder which package should provide this file ? MapServer itself ? Swig ? (Swig doesn't provide it). As you may have noticed, I'm completely lost and I don't really know what to do. I would greatly appreciate any pointer. Thanks. -- Benoit Myard From myardbenoit at GMAIL.COM Thu Sep 6 02:50:28 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 6 Sep 2007 11:50:28 +0200 Subject: TCL/MapScript compile issue In-Reply-To: <6fb81fc70709060223q5b56dc6bg27bd3e0918c80f97@mail.gmail.com> Message-ID: On 06/09/07, Benoit Myard wrote: > Hi list, Eh. I reread the documentation and it looks like I misread it in the first place. My Swig version is far too recent ! Fortunately, there's a make target (useprebuilt) to avoid the direct use of Swig. Although it's the way to go, there's no 'mapscript_wrap.c.gz'... I guess that's a small omission at release time (?); could someone provide me a (hopefully working) mapscript_wrap.c Thanks guys. -- Benoit Myard From fsozzi at INTERCAD.CH Thu Sep 6 03:58:32 2007 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 6 Sep 2007 12:58:32 +0200 Subject: Can't execute mapserv.exe from Apache 2 cgi-bin folder Message-ID: Hi All, I'm trying to let Mapserver provide as WMS server, but I have an Apache configuration problem. I've put mapserv.exe into C:/Programmi/Apache Group/Apache2/cgi-bin. But I can't execute from browser (it is as it does not see/execute the file). I have no problem in Apache 1.x but I have problem with a standard installation of Apache 2 on Windows XP. In my httpd.conf I have this cgi-bin folder definition: AllowOverride None Options None Order allow,deny Allow from all How can I set execution permission?... Best regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomlg at GMAIL.COM Thu Sep 6 04:24:58 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 6 Sep 2007 12:24:58 +0100 Subject: Can't execute mapserv.exe from Apache 2 cgi-bin folder In-Reply-To: <00a701c7f074$dd9831c0$2d01a8c0@newsviluppo> Message-ID: Hi Francesco You also need to have a Script Alias in your httpd.conf file like this: ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/" and then (after restarting apache) you can try to access mapserver like: http://yourservername:port/cgi-bin/mapserv.exe Rodrigo. On 9/6/07, Francesco Sozzi wrote: > > Hi All, > > I'm trying to let Mapserver provide as WMS server, but I have an Apache > configuration problem. > > I've put mapserv.exe into C:/Programmi/Apache Group/Apache2/cgi-bin. > > But I can't execute from browser (it is as it does not see/execute the > file). > > I have no problem in Apache 1.x but I have problem with a standard > installation of Apache 2 on Windows XP. > > In my httpd.conf I have this cgi-bin folder definition: > > > > AllowOverride None > Options None > Order allow,deny > Allow from all > > > How can I set execution permission?... > > Best regards > > Francesco > -------------- next part -------------- An HTML attachment was scrubbed... URL: From henric at ERNSTSON.NU Thu Sep 6 04:31:58 2007 From: henric at ERNSTSON.NU (Henric Ernstson) Date: Thu, 6 Sep 2007 13:31:58 +0200 Subject: SV: [UMN_MAPSERVER-USERS] Querying points on layer based on XY Table In-Reply-To: Message-ID: I have no problem importing and accing coordinates from tables, using map-script but, when I query them I only get one records feature, independing on with coordinate i press on. So YES I also get error both using access and mySQL SOME one that know about this? -----Ursprungligt meddelande----- Fr?n: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] F?r Lawrence Hartpence Skickat: den 5 september 2007 17:09 Till: MAPSERVER-USERS at LISTS.UMN.EDU ?mne: [UMN_MAPSERVER-USERS] Querying points on layer based on XY Table Hello, I added a point layer which was based on an Access table with XY coordinates. The layer displays fine and labels fine, but I can't seem to query it. I tried using ItemQuery and just Query, but though it acts like it selects a feature, it won't display any of the fields. Is this a limitation in adding layers from a XY table? Here is a link to the website where I am trying to do this. The layer is called Septic. Clicking on the "I" next to the layer initiates the query mode. http://216.203.113.94/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperM aps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CSep tic.map&zoomsize=2&layers=ortho+Septic+Parcels+Lots+ROW+Survey+Section+S ub+ParcelPt+Water+Shields+Highways+Roads+Watershed+County+Towns&mode=bro wse&slayer=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030 .00+680312.51&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem= &shapeindex=&savequery= Lawrence Hartpence From fsozzi at INTERCAD.CH Thu Sep 6 05:19:59 2007 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 6 Sep 2007 14:19:59 +0200 Subject: Can't execute mapserv.exe from Apache 2 cgi-bin folder Message-ID: Hi Rodrigo, Thanks for help. Unfortunatelly I already have the following line: ScriptAlias /cgi-bin/ "C:/Programmi/Apache Group/Apache2/cgi-bin/" And if I try to run http://213.133.227.245/cgi-bin/mapserv I have a 404 error (file not found). So, I think there is something else wrong... I attacched my configuration file. Best regards Francesco ----- Original Message ----- From: Rodrigo Mart?n L?PEZ GREGORIO To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, September 06, 2007 1:24 PM Subject: Re: [UMN_MAPSERVER-USERS] Can't execute mapserv.exe from Apache 2 cgi-bin folder Hi Francesco You also need to have a Script Alias in your httpd.conf file like this: ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/" and then (after restarting apache) you can try to access mapserver like: http://yourservername:port/cgi-bin/mapserv.exe Rodrigo. On 9/6/07, Francesco Sozzi wrote: Hi All, I'm trying to let Mapserver provide as WMS server, but I have an Apache configuration problem. I've put mapserv.exe into C:/Programmi/Apache Group/Apache2/cgi-bin. But I can't execute from browser (it is as it does not see/execute the file). I have no problem in Apache 1.x but I have problem with a standard installation of Apache 2 on Windows XP. In my httpd.conf I have this cgi-bin folder definition: AllowOverride None Options None Order allow,deny Allow from all How can I set execution permission?... Best regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: httpd.zip Type: application/octet-stream Size: 12510 bytes Desc: not available URL: From rodrigomlg at GMAIL.COM Thu Sep 6 05:30:10 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 6 Sep 2007 13:30:10 +0100 Subject: Can't execute mapserv.exe from Apache 2 cgi-bin folder In-Reply-To: <00b301c7f080$3e747c50$2d01a8c0@newsviluppo> Message-ID: you need to include the extension of the mapserver cgi file... you need to put the ".exe" at the end of your url and it will work (I already try it ;) ): http://213.133.227.245/cgi-bin/mapserv.exe Rodrigo. On 9/6/07, Francesco Sozzi wrote: > > Hi Rodrigo, > > Thanks for help. > Unfortunatelly I already have the following line: > > ScriptAlias /cgi-bin/ "C:/Programmi/Apache Group/Apache2/cgi-bin/" > > And if I try to run http://213.133.227.245/cgi-bin/mapserv I have a 404 > error (file not found). > > So, I think there is something else wrong... > > I attacched my configuration file. > > Best regards > > Francesco > > ----- Original Message ----- > *From:* Rodrigo Mart?n L?PEZ GREGORIO > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Sent:* Thursday, September 06, 2007 1:24 PM > *Subject:* Re: [UMN_MAPSERVER-USERS] Can't execute mapserv.exe from Apache > 2 cgi-bin folder > > Hi Francesco > > You also need to have a Script Alias in your httpd.conf file like this: > > ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/" > > and then (after restarting apache) you can try to access mapserver like: > > http://yourservername:port/cgi-bin/mapserv.exe > > Rodrigo. > > On 9/6/07, Francesco Sozzi wrote: > > > > Hi All, > > > > I'm trying to let Mapserver provide as WMS server, but I have an Apache > > configuration problem. > > > > I've put mapserv.exe into C:/Programmi/Apache Group/Apache2/cgi-bin. > > > > But I can't execute from browser (it is as it does not see/execute the > > file). > > > > I have no problem in Apache 1.x but I have problem with a standard > > installation of Apache 2 on Windows XP. > > > > In my httpd.conf I have this cgi-bin folder definition: > > > > > > > > AllowOverride None > > Options None > > Order allow,deny > > Allow from all > > > > > > How can I set execution permission?... > > > > Best regards > > > > Francesco > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsozzi at INTERCAD.CH Thu Sep 6 05:46:23 2007 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 6 Sep 2007 14:46:23 +0200 Subject: Can't execute mapserv.exe from Apache 2 cgi-bin folder Message-ID: ah... ok, it works! Now I tried with FireFox with ".exe" and it works. There is something wrong in my IE; if I put ".exe" with my IE, it tries to download a file instead of executing... Thank for help! Best regards Francesco ----- Original Message ----- From: Rodrigo Mart?n L?PEZ GREGORIO To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, September 06, 2007 2:30 PM Subject: Re: [UMN_MAPSERVER-USERS] Can't execute mapserv.exe from Apache 2 cgi-bin folder you need to include the extension of the mapserver cgi file... you need to put the ".exe" at the end of your url and it will work (I already try it ;) ): http://213.133.227.245/cgi-bin/mapserv.exe Rodrigo. On 9/6/07, Francesco Sozzi wrote: Hi Rodrigo, Thanks for help. Unfortunatelly I already have the following line: ScriptAlias /cgi-bin/ "C:/Programmi/Apache Group/Apache2/cgi-bin/" And if I try to run http://213.133.227.245/cgi-bin/mapserv I have a 404 error (file not found). So, I think there is something else wrong... I attacched my configuration file. Best regards Francesco ----- Original Message ----- From: Rodrigo Mart?n L?PEZ GREGORIO To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, September 06, 2007 1:24 PM Subject: Re: [UMN_MAPSERVER-USERS] Can't execute mapserv.exe from Apache 2 cgi-bin folder Hi Francesco You also need to have a Script Alias in your httpd.conf file like this: ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/" and then (after restarting apache) you can try to access mapserver like: http://yourservername:port/cgi-bin/mapserv.exe Rodrigo. On 9/6/07, Francesco Sozzi wrote: Hi All, I'm trying to let Mapserver provide as WMS server, but I have an Apache configuration problem. I've put mapserv.exe into C:/Programmi/Apache Group/Apache2/cgi-bin. But I can't execute from browser (it is as it does not see/execute the file). I have no problem in Apache 1.x but I have problem with a standard installation of Apache 2 on Windows XP. In my httpd.conf I have this cgi-bin folder definition: AllowOverride None Options None Order allow,deny Allow from all How can I set execution permission?... Best regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrea.antonello at GMAIL.COM Thu Sep 6 02:46:53 2007 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Thu, 6 Sep 2007 11:46:53 +0200 Subject: European GIS Code Sprint Message-ID: Dear friends, dear colleagues, we would like to raise to you all the following proposal of an European FOSS-GIS developers meeting by the end of November (kind of follow-up of the Canadian Code Sprint in September). The event is the 'European GIS Code Sprint' organized as a post-event of the SFScon 2007 held in Merano, Italy. Planned Dates are: * 16-17 Nov 2007: South Tyrol Free Software Conference 2007 (http://www.sfscon.it/) * 18 Nov 2007 (Sunday): Outdoor GIS data collection for Free data set (somewhere in South Tyrol) * 19-21 Nov 2007: GIS Code Sprint The organisation of the event would be made by the Free Software Center in Bolzano. The Sprint would mainly have the aim to bring different projects to know each other and build up some standard interaction, let the teams of each project meet, discuss, design and code together fulltime and non-remotely for a few days, and obviously also do some bugfixing. Also we would invite power users in order to work on documentation, translation and even minor issues. In parallel, there would be the desire to collaborate on the creation of a free dataset by wandering in an ordered way through a defined region of the south tirol with GPS. The dataset should contain as many data as possible, as for example the dataset of the grassbook does. Moreover, climatic and hydrologic/hydraulic data should be integrated in order to support different analyses. Time is rather short and we would like to understand how much interest there is in such an event and more or less how many developer would like to attend. We feel that there is a huge need for a developer meeting that could bring together different projects, that really need to interact if they want to have a glorious future. Please give us possibly soon a feedback by *adding yourself* on the WIKI page created for the event: http://wiki.osgeo.org/index.php/European_GIS_Code_Sprint Warmest regards, Andrea Antonello Markus Neteler From Steve.Lime at DNR.STATE.MN.US Thu Sep 6 06:12:31 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 6 Sep 2007 08:12:31 -0500 Subject: Repeating labels along a line? Message-ID: Sure, it could be considered. Probably would work like the GAP parameter does w/regards to line symbols. Could file a feature request? Steve >>> Joan Verdaguer 09/06/07 2:24 AM >>> Thanks Steve. Anyway I think it would be great to have this feature in a future version, don't you? :) Joan ----- Original message ---- From: Steve Lime To: MAPSERVER-USERS at lists.umn.edu; cocoloco Sent: martes, 4 de septiembre, 2007 18:55:47 Title: Re: [UMN_MAPSERVER-USERS] Repeating labels along a line? That's not an option as the code sits. You'd have to break the linear features into smaller features ahead of time. MapServer can (via the MINFEATUREDISTANCE parameter) weed out duplicates with that type of data structure... Steve >>> On 9/3/2007 at 4:35 AM, in message <12458906.post at talk.nabble.com>, cocoloco wrote: > Is there any way to label a linear feature so that the label text is repeated > along the feature? > > For example, in a long street it would be desirable that the name of the > street appeared multiple times along the path of the street. (like street > labels in Google maps). Is it possible? > > Thanks. ____________________________________________________________________________________ S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html From woodbri at SWOODBRIDGE.COM Thu Sep 6 06:16:40 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 6 Sep 2007 09:16:40 -0400 Subject: AGG install In-Reply-To: <2482247e0709060218v72c14b1aj61cbb889b6afbd46@mail.gmail.com> Message-ID: frequens wrote: > With Mapserver 5.0 coming with the second rendering engine (nice > results) it is imperative to install the AGG library. Unfortunately the > AGG documentation is rather short. Would somebody be willing to write a > few lines how to install Libagg for Mapserver use, preferably for a > Linux system? > > Thank you in advance, > > frequens You do not need install AGG, just download it to a working dir and type make in that dir. Then in the mapserver dir ./configure --with-agg=/path/to/agg/dir ... and you are done. -Steve From sschantz at BFS.DE Thu Sep 6 06:10:36 2007 From: sschantz at BFS.DE (shortyII) Date: Thu, 6 Sep 2007 06:10:36 -0700 Subject: change Hello, to connect my mapserver to my "special" GIS program, I have to change the getCapabilities file. Usually the files starts with , but i didn't find any files, where I could change it. Thanks for helping. It is urgent! Best regards, Stefan Schantz -- View this message in context: http://www.nabble.com/change-%3C%21DOCTYPE-WMT_MS_Capabilities-SYSTEM-%22http%3A--schemas.opengis.net-wms-1.1.1-WMS_MS_Capabilities.dtd%22-tf4392071.html#a12522290 Sent from the Mapserver - User mailing list archive at Nabble.com. From logon2varun at YAHOO.COM Thu Sep 6 06:13:32 2007 From: logon2varun at YAHOO.COM (Varun Sahni) Date: Thu, 6 Sep 2007 06:13:32 -0700 Subject: Reg. using Map Server as a viewer Message-ID: Hi, Does Map Server serves the purpose of a viewer also for files generated by AutoCAD? If so, what file format it supports? Thanks and Regards, Varun --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu Sep 6 06:31:45 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 6 Sep 2007 09:31:45 -0400 Subject: change Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of shortyII > Sent: 06 September, 2007 9:11 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] change WMT_MS_Capabilities SYSTEM > "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd" > > Hello, > to connect my mapserver to my "special" GIS program, I have > to change the getCapabilities file. Usually the files starts > with http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd", > but for reason, I don't understand (some connection > problems), I have to change it to a local path e.g. WMT_MS_Capabilities SYSTEM > "http://localhost/wms/1.1.1/WMS_MS_Capabilities.dtd". > I have seen some getCapabilities-files, which have a > different , but i didn't find any files, where I > could change it. > Thanks for helping. It is urgent! > Best regards, > Stefan Schantz > -- Sounds like you may be having connection issues Can you get to remote URL locations? In MAP/WEB/METADATA/, you can set "ows_schemas_location" (see http://mapserver.gis.umn.edu/docs/howto/wms_server/#web-object-metadata) . If you set ows_schemas_location, the code will output the correct location of the DTD as per the main schemas.opengis.net site with the ows_schemas_location you specify. If you do not specify ows_schemas_location, the code will use the default definition. In either case, the DOCTYPE declaration is correctly outputted by the code. ..Tom From myardbenoit at GMAIL.COM Thu Sep 6 07:16:42 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 6 Sep 2007 16:16:42 +0200 Subject: TCL/MapScript compile issue In-Reply-To: <6fb81fc70709060250v20818159ua5256ea56d7e1933@mail.gmail.com> Message-ID: On 06/09/07, Benoit Myard wrote: > My Swig version is far too recent ! This is actually not a problem. Here is a great source of inspiration for anyone trying to build Tcl MapScript : http://ostec.org/~dirk/mapserver-4.10.0.ebuild Problem solved. -- Benoit Myard From fsozzi at INTERCAD.CH Thu Sep 6 08:09:44 2007 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 6 Sep 2007 17:09:44 +0200 Subject: epsg:21781 Message-ID: Hi all, I need projection "init=epsg:21781" but it is not supported. What I have to do to fix?... Best regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From metlud at YAHOO.IT Thu Sep 6 08:54:57 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Thu, 6 Sep 2007 17:54:57 +0200 Subject: java mapscript, method pointObj.project In-Reply-To: Message-ID: The problem described is independent from the mapfile...I simply create a point and call its project method... --- Arkadi Shishlov ha scritto: > Make sure > CONFIG "PROJ_LIB" "c:/ms4w/proj/nad/" > is present in your MAP file. > Seems to be MS4W specific kludge. > ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html From rodrigohaas at GMAIL.COM Thu Sep 6 09:48:23 2007 From: rodrigohaas at GMAIL.COM (Rodrigo Haas) Date: Thu, 6 Sep 2007 13:48:23 -0300 Subject: Queryfile Message-ID: Hellow all ! How know the name of queryfile? I can look my ".qy" file em temp folder, but how can store the name of queryfile in a javascript variable for after use? I perform a "Ajax query", but don't know how store the name of queryfile for after use.... (I am using MapServer 4.x.x ) Thanks, Sorry for my bad english... Rodrigo Haas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thesl at YAHOO.COM Thu Sep 6 10:02:35 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Thu, 6 Sep 2007 10:02:35 -0700 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <906065.90117.qm@web45014.mail.sp1.yahoo.com> Message-ID: Hello, all: I purchased a shard hosting plan a few months ago, and wnted to implement mapserver. Due to the nature of shared hosting, all I can do is to upload files. it is unfortunate that they do not allow compiling, installtion, or change of environmental variables. I have been looking around for about a month, and have not found a solution yet. I tried FWTOOLS, using the approach that Frank Warmerdam indicated (below), but with no luck. - upload mapserv executable and all the shared libraries somewhere. - upload proj.4 support files (like epsg init file) somewhere - create a mapserv wrapper script in the cgi-bin directory which sets environment variables pointing to various things and then executes the real mapserv binary. Environment variables would include: LD_LIBRARY_PATH: needs to point to directory with all the .so files. PROJ_LIB: needs to point to directory with the proj support files. Now I have to come back to this mailing list for help. Basically, I am looking for the mapserver cgi and the SO files (for libpng, freetype, libgd, Zlib, Proj4, GEOS, GDAL). I will use a wrapper script to define the location of the dependencies, using Frank Warmerdam's suggestions. I will appreciate it if anyone can email me this type of binary package. Honestly, I do not know if such package exists. Thank you Peter ____________________________________________________________________________________ Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz From ernesvega at GMAIL.COM Thu Sep 6 10:11:32 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Thu, 6 Sep 2007 13:11:32 -0400 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <73980.46126.qm@web38111.mail.mud.yahoo.com> Message-ID: Peter: Try a MapServer enabled hosting. You should look for that, not patching an existing installation. Just hit "mapserver enabled hosting" on google and you are done. Ernesto On 9/6/07, Peter Shrock wrote: > > Hello, all: > > I purchased a shard hosting plan a few months ago, and wnted to implement > mapserver. Due to the nature of shared hosting, all I can do is to upload > files. it is unfortunate that they do not allow compiling, installtion, or > change of environmental variables. > > I have been looking around for about a month, and have not found a > solution > yet. > > I tried FWTOOLS, using the approach that Frank Warmerdam indicated > (below), but > with no luck. > > - upload mapserv executable and all the shared libraries somewhere. > - upload proj.4 support files (like epsg init file) somewhere > - create a mapserv wrapper script in the cgi-bin directory which sets > environment variables pointing to various things and then executes > the real mapserv binary. Environment variables would include: > LD_LIBRARY_PATH: needs to point to directory with all the .so files. > PROJ_LIB: needs to point to directory with the proj support files. > > Now I have to come back to this mailing list for help. Basically, I am > looking > for the mapserver cgi and the SO files (for libpng, freetype, > libgd, Zlib, > Proj4, GEOS, GDAL). I will use a wrapper script to define the location of > the > dependencies, using Frank Warmerdam's suggestions. > > I will appreciate it if anyone can email me this type of binary package. > Honestly, I do not know if such package exists. > > Thank you > > Peter > > > > > ____________________________________________________________________________________ > Luggage? GPS? Comic books? > Check out fitting gifts for grads at Yahoo! Search > http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kroneker70 at YAHOO.IT Thu Sep 6 10:12:20 2007 From: kroneker70 at YAHOO.IT (Franco Arcangeli) Date: Thu, 6 Sep 2007 10:12:20 -0700 Subject: Java Mapscript crashing Tomcat when setting image output format Message-ID: Hi, i have the necessity to use a different image type for different map components: the map image and the key map image in jpg format, scalebar and legend icon in gif format. for obtaining this i change the image format of the entire map at runtime before i generate this components with the methods map.setoutputFormat("jpeg") or map.setImageType("gif"); this method work fine, but after some time (20 - 30 requests), tomcat crashes inexorably on executions of one of these methods. what is the problem? there are another metod to obtaining this? Sorry for my bad english... Thanks in advance for any help!! My configuration: Windows XP PRO MapServer 4.10.3 support GD 2.0.33, FreeType 2.1.10, GDAL/OGR 1.4.1, PROJ, WMS/WFS, Flash, PDF, ECW3.1, PostGIS, GEOS, libcurl 7.15.1, FastCGI MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Library Versions Used to build this version of MapServer: curl-7.15.1 fcgi-2.4.0 freetype-2.1.10 gd-2.0.33 gdal-1.4.1 geos-2.2.3 gettext-0.13 jpeg-6b libecwj2-3.3 libgeotiff-1.2.3 libiconv-1.9.1 libintl-0.11.5 libpng-1.2.8 libxml2-2.6.23.win32 mapserver-4.10.3 ming-0.2a mrsid-6.0.7.1407 mysql-5.0.18-win32 PDFlib-Lite-6.0.2 php-5.2.3 (MS4W 2.x) php-4.4.4 (MS4W 1.x) postgresql-8.2.3 proj-4.4.9 Python-2.4.4 regex-0.12 SWIG-1.3.29 tiff-3.8.2 xerces-c-2.7.0 zlib-1.2.3 This is the log of tomcat: # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x03432ce0, pid=3816, tid=2340 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing) # Problematic frame: # C [libmap.dll+0x12ce0] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x04aec800): JavaThread "http-80-8" daemon [_thread_in_native, id=2340] siginfo: ExceptionCode=0xc0000005, reading address 0x63617061 Registers: EAX=0x63617061, EBX=0x7c3549d4, ECX=0x00bcbc78, EDX=0x00b96719 ESP=0x0525d32c, EBP=0x00b96718, ESI=0x00b96718, EDI=0x63617061 EIP=0x03432ce0, EFLAGS=0x00010206 Top of Stack: (sp=0x0525d32c) 0x0525d32c: 00b96718 00b96718 00000000 031f8438 0x0525d33c: 03495477 00b96718 63617061 04aec800 0x0525d34c: 031f8438 00000000 03495eec 031f8438 0x0525d35c: 00b96718 28cf6fe8 0525d37c 28cf6fe8 0x0525d36c: 100207a1 00000004 00b96718 031f8438 0x0525d37c: 0525f3a8 100205c1 031f8438 00b96718 0x0525d38c: 000001d7 00000001 00000034 00000000 0x0525d39c: 00000000 00000000 00000000 00000000 Instructions: (pc=0x03432ce0) 0x03432cd0: 74 5c 80 3e 00 53 55 74 32 8b 1d b8 a3 63 03 90 0x03432ce0: 8a 07 84 c0 74 20 0f be c0 50 ff d3 0f be 0e 51 Stack: [0x05220000,0x05260000), sp=0x0525d32c, free space=244k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libmap.dll+0x12ce0] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j edu.umn.gis.mapscript.mapscriptJNI.mapObj_setImageType(JLjava/lang/String;)V+0 j edu.umn.gis.mapscript.mapObj.setImageType(Ljava/lang/String;)V+5 j com.geodetix.javamapscript.actions.GetKeyMapImageAction.drawKeyMap(Lcom/geodetix/javamapscript/beans/wrappers/MapWrapper;Ljavax/servlet/http/HttpServletResponse;)V+17 j com.geodetix.javamapscript.actions.GetKeyMapImageAction.execute(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;+12 j org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7 j org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+257 j org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+40 j org.apache.struts.action.ActionServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+35 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+374 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+804 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.authenticator.AuthenticatorBase.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+327 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 J org.apache.catalina.valves.AccessLogValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+157 j org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+432 j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82 j org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) =>0x04aec800 JavaThread "http-80-8" daemon [_thread_in_native, id=2340] 0x04af1800 JavaThread "http-80-7" daemon [_thread_in_native, id=2344] 0x04a57400 JavaThread "http-80-6" daemon [_thread_in_native, id=2752] 0x04aca400 JavaThread "http-80-5" daemon [_thread_in_native, id=368] 0x00cd2800 JavaThread "http-80-4" daemon [_thread_in_native, id=2676] 0x00d33800 JavaThread "http-80-3" daemon [_thread_in_native, id=3460] 0x008c5400 JavaThread "http-80-2" daemon [_thread_in_native, id=3244] 0x02fc3800 JavaThread "http-80-1" daemon [_thread_in_native, id=2372] 0x03050c00 JavaThread "TP-Monitor" daemon [_thread_blocked, id=3104] 0x02fac400 JavaThread "TP-Processor4" daemon [_thread_in_native, id=3088] 0x02fb2400 JavaThread "TP-Processor3" daemon [_thread_blocked, id=3108] 0x02f57800 JavaThread "TP-Processor2" daemon [_thread_blocked, id=3080] 0x03073c00 JavaThread "TP-Processor1" daemon [_thread_blocked, id=3076] 0x02fc6400 JavaThread "http-80-Acceptor-0" daemon [_thread_in_native, id=588] 0x02fa9400 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=2680] 0x008ad000 JavaThread "Thread-1" [_thread_in_native, id=788] 0x0082d400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2860] 0x00828800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=316] 0x00827400 JavaThread "Attach Listener" daemon [_thread_blocked, id=4048] 0x00826800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4024] 0x0081ec00 JavaThread "Finalizer" daemon [_thread_blocked, id=2496] 0x0081d800 JavaThread "Reference Handler" daemon [_thread_blocked, id=4076] 0x00676800 JavaThread "main" [_thread_in_native, id=3492] Other Threads: 0x00814800 VMThread [id=516] 0x0082ec00 WatcherThread [id=1484] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 1600K, used 970K [0x24020000, 0x241d0000, 0x24500000) eden space 1472K, 63% used [0x24020000, 0x2410a9a8, 0x24190000) from space 128K, 25% used [0x24190000, 0x24198218, 0x241b0000) to space 128K, 0% used [0x241b0000, 0x241b0000, 0x241d0000) tenured generation total 20488K, used 14500K [0x24500000, 0x25902000, 0x28020000) the space 20488K, 70% used [0x24500000, 0x25329250, 0x25329400, 0x25902000) compacting perm gen total 15104K, used 14909K [0x28020000, 0x28ee0000, 0x2c020000) the space 15104K, 98% used [0x28020000, 0x28eaf4f0, 0x28eaf600, 0x28ee0000) ro space 8192K, 62% used [0x2c020000, 0x2c51f728, 0x2c51f800, 0x2c820000) rw space 12288K, 52% used [0x2c820000, 0x2ce61eb8, 0x2ce62000, 0x2d420000) Dynamic libraries: 0x00400000 - 0x0040f000 C:\Programmi\Apache Software Foundation\Tomcat 6.0\bin\tomcat6.exe 0x7c910000 - 0x7c9c6000 C:\WINDOWS\system32\ntdll.dll 0x7c800000 - 0x7c900000 C:\WINDOWS\system32\kernel32.dll 0x7e390000 - 0x7e420000 C:\WINDOWS\system32\USER32.dll 0x77e40000 - 0x77e87000 C:\WINDOWS\system32\GDI32.dll 0x77f40000 - 0x77feb000 C:\WINDOWS\system32\ADVAPI32.dll 0x77da0000 - 0x77e31000 C:\WINDOWS\system32\RPCRT4.dll 0x77be0000 - 0x77c38000 C:\WINDOWS\system32\MSVCRT.dll 0x7c9d0000 - 0x7d1ec000 C:\WINDOWS\system32\SHELL32.dll 0x77e90000 - 0x77f06000 C:\WINDOWS\system32\SHLWAPI.dll 0x76340000 - 0x7635d000 C:\WINDOWS\system32\IMM32.DLL 0x773a0000 - 0x774a3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll 0x5d4d0000 - 0x5d56a000 C:\WINDOWS\system32\comctl32.dll 0x6d7c0000 - 0x6da09000 C:\Programmi\Java\jre1.6.0_02\bin\client\jvm.dll 0x76b00000 - 0x76b2e000 C:\WINDOWS\system32\WINMM.dll 0x7c340000 - 0x7c396000 C:\WINDOWS\system32\MSVCR71.dll 0x6d310000 - 0x6d318000 C:\Programmi\Java\jre1.6.0_02\bin\hpi.dll 0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL 0x77f10000 - 0x77f21000 C:\WINDOWS\system32\Secur32.dll 0x6d770000 - 0x6d77c000 C:\Programmi\Java\jre1.6.0_02\bin\verify.dll 0x6d3b0000 - 0x6d3cf000 C:\Programmi\Java\jre1.6.0_02\bin\java.dll 0x6d7b0000 - 0x6d7bf000 C:\Programmi\Java\jre1.6.0_02\bin\zip.dll 0x6d570000 - 0x6d583000 C:\Programmi\Java\jre1.6.0_02\bin\net.dll 0x71a30000 - 0x71a47000 C:\WINDOWS\system32\WS2_32.dll 0x71a20000 - 0x71a28000 C:\WINDOWS\system32\WS2HELP.dll 0x719d0000 - 0x71a10000 C:\WINDOWS\system32\mswsock.dll 0x66750000 - 0x667a8000 C:\WINDOWS\system32\hnetcfg.dll 0x71a10000 - 0x71a18000 C:\WINDOWS\System32\wshtcpip.dll 0x6d590000 - 0x6d599000 C:\Programmi\Java\jre1.6.0_02\bin\nio.dll 0x10000000 - 0x10095000 C:\mapscript\mapscript.dll 0x03420000 - 0x0364f000 C:\mapscript\libmap.dll 0x00e20000 - 0x00e32000 C:\mapscript\zlib1.dll 0x03650000 - 0x03686000 C:\mapscript\proj.dll 0x03690000 - 0x03aaa000 C:\mapscript\gdal14.dll 0x12000000 - 0x121ad000 C:\mapscript\xerces-c_2_7.dll 0x03ab0000 - 0x03acd000 C:\mapscript\LIBPQ.dll 0x71a50000 - 0x71a5a000 C:\WINDOWS\system32\WSOCK32.dll 0x76740000 - 0x76749000 C:\WINDOWS\system32\SHFOLDER.dll 0x745e0000 - 0x7461d000 C:\WINDOWS\system32\ODBC32.dll 0x76360000 - 0x763aa000 C:\WINDOWS\system32\comdlg32.dll 0x39d00000 - 0x39e19000 C:\mapscript\libecwj2.dll 0x76c50000 - 0x76c78000 C:\WINDOWS\system32\imagehlp.dll 0x77bd0000 - 0x77bd8000 C:\WINDOWS\system32\VERSION.dll 0x77a50000 - 0x77ae5000 C:\WINDOWS\system32\CRYPT32.dll 0x77af0000 - 0x77b02000 C:\WINDOWS\system32\MSASN1.dll 0x774b0000 - 0x775ed000 C:\WINDOWS\system32\ole32.dll 0x7c3a0000 - 0x7c41b000 C:\WINDOWS\system32\MSVCP71.dll 0x03ad0000 - 0x03cae000 C:\mapscript\lti_dsdk_dll.dll 0x03cb0000 - 0x03e0b000 C:\mapscript\cfitsio.dll 0x03e10000 - 0x03e53000 C:\mapscript\netcdf.dll 0x03e60000 - 0x03e80000 C:\mapscript\geotiff.dll 0x03e80000 - 0x03f18000 C:\mapscript\libtiff.dll 0x03f20000 - 0x03f7e000 C:\mapscript\sqlite3.dll 0x03f80000 - 0x040ea000 C:\mapscript\LIBMYSQL.dll 0x040f0000 - 0x041dc000 C:\mapscript\geos_c.dll 0x041e0000 - 0x042a8000 C:\mapscript\hdf5dll.dll 0x042b0000 - 0x042d2000 C:\mapscript\szlibdll.dll 0x042e0000 - 0x0430b000 C:\mapscript\libcurl.dll 0x04310000 - 0x043bc000 C:\WINDOWS\system32\LIBEAY32.dll 0x043c0000 - 0x043e6000 C:\WINDOWS\system32\SSLEAY32.dll 0x770f0000 - 0x7717b000 C:\WINDOWS\system32\OLEAUT32.dll 0x55300000 - 0x5542a000 C:\mapscript\pdflib.dll 0x043f0000 - 0x04504000 C:\mapscript\iconv.dll 0x00e40000 - 0x00e4d000 C:\mapscript\libfcgi.dll 0x04510000 - 0x045fa000 C:\mapscript\libxml2.dll 0x20000000 - 0x20018000 C:\WINDOWS\system32\odbcint.dll 0x76ee0000 - 0x76f07000 C:\WINDOWS\system32\DNSAPI.dll 0x76f80000 - 0x76f86000 C:\WINDOWS\system32\rasadhlp.dll VM Arguments: jvm_args: -Dcatalina.home=C:\Programmi\Apache Software Foundation\Tomcat 6.0 -Dcatalina.base=C:\Programmi\Apache Software Foundation\Tomcat 6.0 -Djava.endorsed.dirs=C:\Programmi\Apache Software Foundation\Tomcat 6.0\common\endorsed -Djava.io.tmpdir=C:\Programmi\Apache Software Foundation\Tomcat 6.0\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Programmi\Apache Software Foundation\Tomcat 6.0\conf\logging.properties vfprintf java_command: Launcher Type: generic Environment Variables: JAVA_HOME=C:\Programmi\Java\jdk1.6.0_02 CLASSPATH=.;C:\Programmi\QuickTime\QTSystem\QTJava.zip PATH=C:\mapscript;C:\Programmi\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\IDM Computer Solutions\UltraEdit-32;C:\Programmi\QuickTime\QTSystem\;C:\Programmi\Java\jdk1.6.0_02\bin;C:\JAVALIB\apache-ant-1.7.0\bin;C:\Programmi\PostgreSQL\8.2\bin; OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 6, GenuineIntel --------------- S Y S T E M --------------- OS: Windows XP Build 2600 Service Pack 2 CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3 Memory: 4k page, physical 2095148k(1455428k free), swap 4032748k(3522888k free) vm_info: Java HotSpot(TM) Client VM (1.6.0_02-b06) for windows-x86, built on Jul 12 2007 01:16:14 by "java_re" with unknown MS VC++:1310 -- View this message in context: http://www.nabble.com/Java-Mapscript-crashing-Tomcat-when-setting-image-output-format-tf4393483.html#a12527091 Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at MAPGEARS.COM Thu Sep 6 12:01:29 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 6 Sep 2007 15:01:29 -0400 Subject: Problem with drawLabelCache on openSUSE In-Reply-To: <70f4813f0709060144n2fa2eda0g4bac87c8a82b0be@mail.gmail.com> Message-ID: Dimitris, It's possible the FGS binaries had some problems, we know there were problems with them on some platforms and badly need to refresh what's available on the download site. Have you tried configuring PHP as a CGI and see if that helps? You'd do that by changing the www/conf.d/php4.conf and restarting FGS, if I remember correctly there are sample config files for both PHP as CGI and PHP as module in that directory. You could also try using the latest "FGS-msx" that contain more recent versions of everything, including daily builds of the latest MapServer 5.0.0 release candidate code: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/fgs-msx-5.0/ Daniel Dimitris Riggas wrote: > Hello everybody, > I have the following problem and any help is most welcome! > > I have developed a php application using MapServer. php is running as a > module, not as cgi. > The application was developed and tested on WinXP but when I moved it on > openSUSE 10.2 I run into problems with the drawLabelCache function of > mapObj. The problem is that it takes toooooo long to execute so my > script blocks till maximum execution time elapses and thus the whole > script halts! I have changed maximum execution time to various values > without solving my problem. > > The execution environment I use is MapServer version 4.8.2; actually it > is the current basic FGS package that includes the following components: > apache-base 1.3.33 > curl-lib 7.12.2 > expat-base 1.95.8 > freetype-lib 2.1.9 > gd-lib 2.0.33 > gdal-base 1.2.5 > jpeg-lib 6b > libgeotiff-lib 1.2.2 > libiconv-base 1.9.1 > libpng-lib 1.2.6 > mapserver-base 4.4.1 > mapserver-php 4.4.1 > netcdf-lib 3.5.1 > openssl-lib 0.9.7d > php-base 4.3.10 > postgresql-lib 7.4.6 > proj-lib 4.4.8 > proj4_epsg42xxx-support 1.0.0 > tiff-lib 3.7.1 > unixODBC-base 2.2.10 > xerces_c-base 2_6_0 > > The [relevant part of the] script that I use is the following: > $map = ms_newMapObj( $MAPFILE ); > $image = $map->prepareImage(); > enableLayers( $map, $image ); //my custom function that draws layers > depending on user input > > $map->drawLabelCache($image); // THE PROBLEMATIC LINE !!!!!!!!!!!! > $image_url=$image->saveWebImage(); > > $scale = $map->drawScaleBar(); > $map->embedScalebar($scale); > > $legend = $map->drawLegend(); > $legend_url=$legend->saveWebImage(); > > $refmap = $map->drawReferenceMap(); > $refmap_url=$refmap->saveWebImage(); > > > If I comment out the line where the problem occurs, the map is created > successfully but of course no labels appear! > Could anyone help? it would be most welcome! > > Regards, > Dimitris Riggas -- Daniel Morissette http://www.mapgears.com/ From tara_athan at ALT2IS.COM Thu Sep 6 13:19:53 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Thu, 6 Sep 2007 13:19:53 -0700 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <73980.46126.qm@web38111.mail.mud.yahoo.com> Message-ID: Peter- there should be quite a few message in the archives over the last two weeks where I was getting advice from this list about installing mapserver on a shared hosting plan. I tried quite a few things, including FWTOOLS as well as building from scratch. I could never get the extra libraries recognized as they were needed. It appears that mapserver is not ready for the shared hosting environment, unless you are so experienced at Linux system adminstration that you can figure out on your own how to circumvent all the limitations of your particular service. Or perhaps it is the documentation of how to do it that is the gap. Either way, after investing considerable hours and attempting all proposed solutions kindly suggested by this list, I gave up. I am now trying out a mapserver hosting service in addition to my shared host service. I choose not to move all of my pages to the mapserver hosting service, because the shared hosting service offers quite a few things that the mapserver services do not, plus I have several sites in the middle of transition to CMS and it was just too complicated. If you haven't got too much invested with your shared hosting plan, you could drop them entirely and move your whole site to a mapserver hosting service, as that would be cheaper, (although not as cheap as most shared hosting plans!) Good luck. If you do somehow manage to get mapserver installed on your shared host service, please post the details as it would benefit many others. Tara Peter Shrock wrote: > Hello, all: > > I purchased a shard hosting plan a few months ago, and wnted to implement > mapserver. Due to the nature of shared hosting, all I can do is to upload > files. it is unfortunate that they do not allow compiling, installtion, or > change of environmental variables. > > I have been looking around for about a month, and have not found a solution > yet. > > I tried FWTOOLS, using the approach that Frank Warmerdam indicated (below), but > with no luck. > > - upload mapserv executable and all the shared libraries somewhere. > - upload proj.4 support files (like epsg init file) somewhere > - create a mapserv wrapper script in the cgi-bin directory which sets > environment variables pointing to various things and then executes > the real mapserv binary. Environment variables would include: > LD_LIBRARY_PATH: needs to point to directory with all the .so files. > PROJ_LIB: needs to point to directory with the proj support files. > > Now I have to come back to this mailing list for help. Basically, I am looking > for the mapserver cgi and the SO files (for libpng, freetype, libgd, Zlib, > Proj4, GEOS, GDAL). I will use a wrapper script to define the location of the > dependencies, using Frank Warmerdam's suggestions. > > I will appreciate it if anyone can email me this type of binary package. > Honestly, I do not know if such package exists. > > Thank you > > Peter > > > > ____________________________________________________________________________________ > Luggage? GPS? Comic books? > Check out fitting gifts for grads at Yahoo! Search > http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz > > > -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan at alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From frequens at GMAIL.COM Thu Sep 6 14:22:25 2007 From: frequens at GMAIL.COM (frequens) Date: Thu, 6 Sep 2007 23:22:25 +0200 Subject: AGG install In-Reply-To: <46DFFDB8.2050908@swoodbridge.com> Message-ID: On 9/6/07, Stephen Woodbridge wrote: > > frequens wrote: > > With Mapserver 5.0 coming with the second rendering engine (nice > > results) it is imperative to install the AGG library. Unfortunately the > > AGG documentation is rather short. Would somebody be willing to write a > > few lines how to install Libagg for Mapserver use, preferably for a > > Linux system? > > > > Thank you in advance, > > > > frequens > > You do not need install AGG, just download it to a working dir and type > make in that dir. Then in the mapserver dir > ./configure --with-agg=/path/to/agg/dir ... > and you are done. > > -Steve > Sorry, Steve and Thomas, did not work for me at all on a Linux Opteron box. I had to do it the way Yves describes it: http://wiki.gloobe.org/doku.php/foss_installation#compilation_v5.0 (already also in English, thanks Yves; I had to do also the "make install"). And yes, libSDL2.1-devel seems to be obligatory, while the '?libdir=/usr/lib64' setting was not needed on my system. Thanks to all, frequens -------------- next part -------------- An HTML attachment was scrubbed... URL: From docterrobert at MSN.COM Thu Sep 6 14:26:46 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Thu, 6 Sep 2007 16:26:46 -0500 Subject: No subject Message-ID: Hi. I'm trying to take an image that already exists and display it through mapserver. It's a map from a college campus that I will eventually superimpose over another layer. No matter what I do, the image won't display. For projection, I'm Using UTM projection, WGS84 ellipsoid, NAD83 datum. The campus is University of Illinois in Champaign/Urbana. Since I'm using UTM, I know that the zone is 16. I've geocoded the top right and bottom left corners of the campus. The Easting of the bottom left corner is 393,898 Meters and the Northing is 4,438,945 Meters. The Easting of the top right is 396,253 Meters and the Northing is 4,441,379 Meters. I don't know if I'm leaving any parameters out in the Projection object in either the Map Object or the one Layer Object I have. Plus, I don't know if I'm declaring the Extent wrong. On top of that, someone suggested to me that I'd need a world file to specify where the image is located on a globe. I've set one up and am also specifying the values according to UTM, thought I'm not really sure what the 1st and 4th value really mean (yes - I've read many variations of the same definition for setting up world files). I'm using Ubuntu Feisty Linux and php Mapscript. I'm attaching the world file, .map file, and .php file. The .gif file is too big but can be located at: http://www.parking.uiuc.edu/campus_map/. Click on "Larger Image" and download that .pdf. I used Photoshop to convert it to a .gif, .png, .jpg, and .tif also and tried all of those but to no avail. As far as Mapserver info: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I'm stuck, and don't know what else to do. I've spent almost 2 weeks trying to get this to work as I've been learning about Mapserver, Mapscript, and projections. Any help to point me in the right direction would awesome. Also, if this isn't possible to do and I'm beating my head against a wall, that would be helpful too. My head hurts. Thank you in advance. - Chris _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayzee.smith at GMAIL.COM Thu Sep 6 14:55:16 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Thu, 6 Sep 2007 17:55:16 -0400 Subject: colorrange and point? Message-ID: guys, does colorrange not work with point layers? LAYER NAME "US" STATUS default TYPE point ... CLASS NAME "US" COLOR 255 255 255 OUTLINECOLOR 0 0 0 STYLE COLORRANGE 255 0 0 0 0 255 OUTLINECOLOR 0 0 0 DATARANGE 100 1000 RANGEITEM "COUNT" SYMBOL "circle" SIZE 5 END END ... END cheers, jzs From thesl at YAHOO.COM Thu Sep 6 18:35:36 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Thu, 6 Sep 2007 18:35:36 -0700 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <46E060E9.7080707@alt2is.com> Message-ID: Dear Tara: I do not know Linux, However, the approach I wanted to take is valid, if you could read Novell's tech paper: http://www.novell.com/coolsolutions/feature/11775.html Our MapServer Expert Frank Warmerdam also recommended the same approach. IMHO, this kind of package may be very important for our MapServer community. A few years ago, a friend told me that a student spent three weeks to get mapserver installed. I laughed, as I though that should be a 20-minutes work (at least it is true for ArcIMS, let alone ArcIMS's comprehensie functions). Now, I have spent two months, and did not get it work. Considering human resource cost, MapServer is actually more expensive than ArcIMS. Would it make sense for the The annual Free and Open Source Software for Geospatial (FOSS4G) conference discuss this in its coming conference? --- Tara Athan wrote: > Peter- there should be quite a few message in the archives over the last > two weeks where I was getting advice from this list about installing > mapserver on a shared hosting plan. I tried quite a few things, > including FWTOOLS as well as building from scratch. I could never get > the extra libraries recognized as they were needed. It appears that > mapserver is not ready for the shared hosting environment, unless you > are so experienced at Linux system adminstration that you can figure out > on your own how to circumvent all the limitations of your particular > service. Or perhaps it is the documentation of how to do it that is the > gap. Either way, after investing considerable hours and attempting all > proposed solutions kindly suggested by this list, I gave up. > > I am now trying out a mapserver hosting service in addition to my shared > host service. I choose not to move all of my pages to the mapserver > hosting service, because the shared hosting service offers quite a few > things that the mapserver services do not, plus I have several sites in > the middle of transition to CMS and it was just too complicated. If you > haven't got too much invested with your shared hosting plan, you could > drop them entirely and move your whole site to a mapserver hosting > service, as that would be cheaper, (although not as cheap as most shared > hosting plans!) Good luck. > > If you do somehow manage to get mapserver installed on your shared host > service, please post the details as it would benefit many others. > > Tara > > > Peter Shrock wrote: > > Hello, all: > > > > I purchased a shard hosting plan a few months ago, and wnted to implement > > mapserver. Due to the nature of shared hosting, all I can do is to upload > > files. it is unfortunate that they do not allow compiling, installtion, or > > change of environmental variables. > > > > I have been looking around for about a month, and have not found a solution > > yet. > > > > I tried FWTOOLS, using the approach that Frank Warmerdam indicated (below), > but > > with no luck. > > > > - upload mapserv executable and all the shared libraries somewhere. > > - upload proj.4 support files (like epsg init file) somewhere > > - create a mapserv wrapper script in the cgi-bin directory which sets > > environment variables pointing to various things and then executes > > the real mapserv binary. Environment variables would include: > > LD_LIBRARY_PATH: needs to point to directory with all the .so files. > > PROJ_LIB: needs to point to directory with the proj support files. > > > > Now I have to come back to this mailing list for help. Basically, I am > looking > > for the mapserver cgi and the SO files (for libpng, freetype, libgd, Zlib, > > Proj4, GEOS, GDAL). I will use a wrapper script to define the location of > the > > dependencies, using Frank Warmerdam's suggestions. > > > > I will appreciate it if anyone can email me this type of binary package. > > Honestly, I do not know if such package exists. > > > > Thank you > > > > Peter > > > > > > > > > ____________________________________________________________________________________ > > Luggage? GPS? Comic books? > > Check out fitting gifts for grads at Yahoo! Search > > http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz > > > > > > > > > -- > My e-mail delivery has been unreliable lately, so I am asking for > return receipts from all my email messages. > OK'ing the return receipt lets me know that my message was delivered. > Thank you. > > Tara Athan > Principal, Alternatives to Invasive Species > tara_athan at alt2is.com > 707-485-1198 > PO Box 415 > Redwood Valley, CA 95470 > ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ From kobben at ITC.NL Thu Sep 6 19:17:46 2007 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Fri, 7 Sep 2007 04:17:46 +0200 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <550142.51607.qm@web38101.mail.mud.yahoo.com> Message-ID: Hi peter, You have some point, but don't do an honest comparison of course. Have you tried building ArcIMS from source...? I'm pretty sure even the ESRI people have problems with that! You should compare installing ArcIMS (for windows only) with an pre-compiled Mapserver package for windows only) , say MS4W. The latter involves unzipping one archive, and you have a working installation. I'm also no Linux user, but I know pre-packaged version exist, just as they exist for Windows (http://www.maptools.org/ms4w/) and MacOSX ( http://www.kyngchaos.com/)... __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 On 07-09-2007 03:35, "Peter Shrock" wrote: > Dear Tara: > > I do not know Linux, However, the approach I wanted to take is valid, if you > could read Novell's tech paper: > http://www.novell.com/coolsolutions/feature/11775.html > > Our MapServer Expert Frank Warmerdam also recommended the same approach. > > IMHO, this kind of package may be very important for our MapServer community. > > A few years ago, a friend told me that a student spent three weeks to get > mapserver installed. I laughed, as I though that should be a 20-minutes work > (at least it is true for ArcIMS, let alone ArcIMS's comprehensie functions). > Now, I have spent two months, and did not get it work. Considering human > resource cost, MapServer is actually more expensive than ArcIMS. > > Would it make sense for the The annual Free and Open Source Software for > Geospatial (FOSS4G) conference discuss this in its coming conference? > > > > > --- Tara Athan wrote: > >> Peter- there should be quite a few message in the archives over the last >> two weeks where I was getting advice from this list about installing >> mapserver on a shared hosting plan. I tried quite a few things, >> including FWTOOLS as well as building from scratch. I could never get >> the extra libraries recognized as they were needed. It appears that >> mapserver is not ready for the shared hosting environment, unless you >> are so experienced at Linux system adminstration that you can figure out >> on your own how to circumvent all the limitations of your particular >> service. Or perhaps it is the documentation of how to do it that is the >> gap. Either way, after investing considerable hours and attempting all >> proposed solutions kindly suggested by this list, I gave up. >> >> I am now trying out a mapserver hosting service in addition to my shared >> host service. I choose not to move all of my pages to the mapserver >> hosting service, because the shared hosting service offers quite a few >> things that the mapserver services do not, plus I have several sites in >> the middle of transition to CMS and it was just too complicated. If you >> haven't got too much invested with your shared hosting plan, you could >> drop them entirely and move your whole site to a mapserver hosting >> service, as that would be cheaper, (although not as cheap as most shared >> hosting plans!) Good luck. >> >> If you do somehow manage to get mapserver installed on your shared host >> service, please post the details as it would benefit many others. >> >> Tara >> >> >> Peter Shrock wrote: >>> Hello, all: >>> >>> I purchased a shard hosting plan a few months ago, and wnted to implement >>> mapserver. Due to the nature of shared hosting, all I can do is to upload >>> files. it is unfortunate that they do not allow compiling, installtion, or >>> change of environmental variables. >>> >>> I have been looking around for about a month, and have not found a solution >>> yet. >>> >>> I tried FWTOOLS, using the approach that Frank Warmerdam indicated (below), >> but >>> with no luck. >>> >>> - upload mapserv executable and all the shared libraries somewhere. >>> - upload proj.4 support files (like epsg init file) somewhere >>> - create a mapserv wrapper script in the cgi-bin directory which sets >>> environment variables pointing to various things and then executes >>> the real mapserv binary. Environment variables would include: >>> LD_LIBRARY_PATH: needs to point to directory with all the .so files. >>> PROJ_LIB: needs to point to directory with the proj support files. >>> >>> Now I have to come back to this mailing list for help. Basically, I am >> looking >>> for the mapserver cgi and the SO files (for libpng, freetype, libgd, Zlib, >>> Proj4, GEOS, GDAL). I will use a wrapper script to define the location of >> the >>> dependencies, using Frank Warmerdam's suggestions. >>> >>> I will appreciate it if anyone can email me this type of binary package. >>> Honestly, I do not know if such package exists. >>> >>> Thank you >>> >>> Peter >>> >>> >>> >>> >> > ______________________________________________________________________________ > ______ >>> Luggage? GPS? Comic books? >>> Check out fitting gifts for grads at Yahoo! Search >>> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz >>> >>> >>> >> >> >> -- >> My e-mail delivery has been unreliable lately, so I am asking for >> return receipts from all my email messages. >> OK'ing the return receipt lets me know that my message was delivered. >> Thank you. >> >> Tara Athan >> Principal, Alternatives to Invasive Species >> tara_athan at alt2is.com >> 707-485-1198 >> PO Box 415 >> Redwood Valley, CA 95470 >> > > > > > ______________________________________________________________________________ > ______ > Need a vacation? Get great deals > to amazing places on Yahoo! Travel. > http://travel.yahoo.com/ From andreas.albarello at TERRITORIUMONLINE.COM Fri Sep 7 00:20:06 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Fri, 7 Sep 2007 09:20:06 +0200 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <550142.51607.qm@web38101.mail.mud.yahoo.com> Message-ID: Peter Shrock wrote: > I do not know Linux, However, the approach I wanted to take is valid, if you > could read Novell's tech paper: > http://www.novell.com/coolsolutions/feature/11775.html > > Our MapServer Expert Frank Warmerdam also recommended the same approach. > > IMHO, this kind of package may be very important for our MapServer community. Peter, well, there already is a package like that, it's called FWTools. If that didn't work out as expected, then I don't quite understand why you are looking for another one. I mean, they are all just binary packages, if one doesn't work for some reason, then why should another one? Would you care to enlighten us as to *why* FWTools didn't work and *why* you believe some other package would do the trick? Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From yjacolin at FREE.FR Fri Sep 7 01:54:36 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 7 Sep 2007 10:54:36 +0200 Subject: Epression and real with length variable Message-ID: Hi, I am looking for a way to filter a feature using a field. At this time I used EXPRESSION ('[CODE11]' eq '1.00000000000'), CODE11 is a real field. So I manage this field as a character's one. I received an update of this file and the lenght of the real change and I have to write : EXPRESSION ('[CODE11]' eq '1.00000000') (3 '0' shorter). I would like to find a way to write something like EXPRESSION ('[CODE11]' eq '1') or so in order to update my shapefile easily without take care the number of the '0' after the comma. Is there any way to realize this? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From andreas.albarello at TERRITORIUMONLINE.COM Fri Sep 7 02:07:43 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Fri, 7 Sep 2007 11:07:43 +0200 Subject: [SPAM: low][UMN_MAPSERVER-USERS] Epression and real with length variable In-Reply-To: <200709071054.36078.yjacolin@free.fr> Message-ID: Jacolin Yves wrote: > I am looking for a way to filter a feature using a field. At this time I used > EXPRESSION ('[CODE11]' eq '1.00000000000'), CODE11 is a real field. So I > manage this field as a character's one. > > I would like to find a way to write something like EXPRESSION ('[CODE11]' > eq '1') or so in order to update my shapefile easily without take care the > number of the '0' after the comma. Yves, EXPRESSION ([CODE11] eq 1) should do the trick. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From verdaguerj at YAHOO.ES Fri Sep 7 02:17:51 2007 From: verdaguerj at YAHOO.ES (Joan Verdaguer) Date: Fri, 7 Sep 2007 09:17:51 +0000 Subject: Repeating labels along a line? Message-ID: Ok Steve. Created a new ticket (#2296) requesting this feature. Joan ----- Mensaje original ---- De: Steve Lime Para: MAPSERVER-USERS at lists.umn.edu; verdaguerj at yahoo.es Enviado: jueves, 6 de septiembre, 2007 15:12:31 Asunto: Re: [UMN_MAPSERVER-USERS] Repeating labels along a line? Sure, it could be considered. Probably would work like the GAP parameter does w/regards to line symbols. Could file a feature request? Steve >>> Joan Verdaguer 09/06/07 2:24 AM >>> Thanks Steve. Anyway I think it would be great to have this feature in a future version, don't you? :) Joan ----- Original message ---- From: Steve Lime To: MAPSERVER-USERS at lists.umn.edu; cocoloco Sent: martes, 4 de septiembre, 2007 18:55:47 Title: Re: [UMN_MAPSERVER-USERS] Repeating labels along a line? That's not an option as the code sits. You'd have to break the linear features into smaller features ahead of time. MapServer can (via the MINFEATUREDISTANCE parameter) weed out duplicates with that type of data structure... Steve >>> On 9/3/2007 at 4:35 AM, in message <12458906.post at talk.nabble.com>, cocoloco wrote: > Is there any way to label a linear feature so that the label text is repeated > along the feature? > > For example, in a long street it would be desirable that the name of the > street appeared multiple times along the path of the street. (like street > labels in Google maps). Is it possible? > > Thanks. ____________________________________________________________________________________ S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html ____________________________________________________________________________________ S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Fri Sep 7 02:25:32 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 7 Sep 2007 11:25:32 +0200 Subject: [SPAM: low][UMN_MAPSERVER-USERS] Epression and real with length variable In-Reply-To: <46E114DF.9090809@territoriumonline.com> Message-ID: Le Friday 07 September 2007 11:07:43 Andreas Albarello, vous avez ?crit?: > Jacolin Yves wrote: > > I am looking for a way to filter a feature using a field. At this time I > > used EXPRESSION ('[CODE11]' eq '1.00000000000'), CODE11 is a real field. > > So I manage this field as a character's one. > > > > I would like to find a way to write something like EXPRESSION ('[CODE11]' > > eq '1') or so in order to update my shapefile easily without take care > > the number of the '0' after the comma. > > Yves, > > EXPRESSION ([CODE11] eq 1) > > should do the trick. > > Best regards, Indeed ! I tested it before to send my question but I should be write something wrong since it did not work. Anyway, I can update my server easily now :) Thanks Andreas. Y. -- Yves Jacolin --- http://softlibre.gloobe.org From candalt at ONLINE.NO Fri Sep 7 03:51:00 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 7 Sep 2007 12:51:00 +0200 Subject: RFC 31 and PHP MapScript Message-ID: Hi there Will RFC 31 (Loading MapServer Objects from Strings) be implemented in PHP MapScript in Mapserver 5.0, e.g the mapscript.msLoadMapFromString function? Sture From yjacolin at FREE.FR Fri Sep 7 03:54:21 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 7 Sep 2007 12:54:21 +0200 Subject: RFC 31 and PHP MapScript In-Reply-To: <44777861.68061189162260768.JavaMail.adm-moff@moffice9.nsc.no> Message-ID: Le Friday 07 September 2007 12:51:00 Sture Dings?yr, vous avez ?crit?: > Hi there > > Will RFC 31 (Loading MapServer Objects from Strings) be implemented in PHP > MapScript in Mapserver 5.0, e.g the mapscript.msLoadMapFromString function? > > Sture Hi Sture, This page shows that this RFC has been implemented : http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From marcos at BURKE.ATH.CX Fri Sep 7 04:14:25 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Fri, 7 Sep 2007 13:14:25 +0200 Subject: FW: [UMN_MAPSERVER-USERS] postgis schema In-Reply-To: <8A78DFFBDB6ED849945A18DEF719911C64C870@wdcserver2.wairoadc.govt.nz> Message-ID: Have you tried this? the_geom from (select * from hbDistrict.parcels) as p using SRID=4326 using unique gid use your srid and primary key name. Greetings from the antipodes El lun, 03-09-2007 a las 14:35 +1200, Terence Maru escribi?: > Hi Barend, doesn't work for me. > > > $parcelLayer = ms_newLayerObj($map); > $parcelLayer->set("connectiontype", MS_POSTGIS); > $parcelLayer->set("name", "parcels"); > > $connector = "user=web dbname=districts host=localhost"; > $parcelLayer->set("connection", $connector); > > $sql = "the_geom from hbDistrict.parcels"; > $parcelLayer->set("data", $sql); > $parcelLayer->set("status", MS_DEFAULT); > $parcelLayer->set("type", MS_LAYER_POLYGON); > > > > Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: > 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from hbDistrict.parcels WHERE the_geom && setSRID('BOX3D(-180 -90,180 90)'::BOX3D, find_srid('','hbDistrict.parcels','the_geom') )' Postgresql reports the error as 'ERROR: function force_2d(hbDistrict.geometry) does not exist LINE 1: ...INARY CURSOR FOR SELECT asbinary(force_collection(force_2d(t... ^ HINT: No function matches the given name and argument types. You may need to add explicit type casts. ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. > > > I have a database called districts, a schema called hbDistrict and a table called parcels. I cannot set the search_path by using the data variable with "the_geom from hbDistrict.parcels". I have created another database called test. This database is created without schema's (public schema). The data variable "the_geom from parcels" works (by works, I mean no errors). > > bm > > > -----Original Message----- > From: Barend K?bben [mailto:kobben at itc.nl] > Sent: Monday, 3 September 2007 2:08 p.m. > To: Terence Maru > Subject: Re: [UMN_MAPSERVER-USERS] postgis schema > > Just use the normal SQL 'prefixing' where eg. public.mytable is the table in the public schema, or myschema.mytable the same in another schema... > > > __ > Barend K?bben > International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) > ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > > > > On 03-09-2007 03:50, "Terence Maru" wrote: > > > Hi all, im trying to connect to a postgres/postgis database. The > > connection process defines the database to connect to. The data > > variable defines the table and column (the_geom) to connect to. How do > > I tell mapserver to use a certain schema? Thanks. > > > > bm > > > > ############################################################################## > > ####### > > This e-mail message has been scanned for Viruses by McAfee and content has > > been cleared by MailMarshal > > ############################################################################## > > ####### > > ##################################################################################### > This e-mail message has been scanned for Viruses by McAfee and content has > been cleared by MailMarshal > ##################################################################################### From lged_morris at HOTMAIL.COM Fri Sep 7 04:42:59 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Fri, 7 Sep 2007 13:42:59 +0200 Subject: Mapserver expressions Message-ID: Hi again! Expressions works fine with one value ....&fasokex=210176493.... but how to make it with 2 or more values: ....&fasokex=210176493 OR 210176494.... ....&fasokex=(210176493) OR (210176494).... ....&fasokex=210176493+210176494.... ....&fasokex=210176493&fasokex=210176494.... neither of this works Lars-G?ran Edholm _________________________________________________________________ Se artisterna upptr?da f?r en gr?n planet http://liveearth.se.msn.com/ From candalt at ONLINE.NO Fri Sep 7 04:47:46 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 7 Sep 2007 13:47:46 +0200 Subject: SV: [UMN_MAPSERVER-USERS] RFC 31 and PHP MapScript Message-ID: It is implemented in the Mapserver 5.0 source code yes...but I do not think it is implemented in the PHP Mapscript version of Mapserver? Sture -----Opprinnelig melding----- Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] P? vegne av Jacolin Yves Sendt: 7. september 2007 12:54 Til: MAPSERVER-USERS at LISTS.UMN.EDU Emne: Re: [UMN_MAPSERVER-USERS] RFC 31 and PHP MapScript Le Friday 07 September 2007 12:51:00 Sture Dings?yr, vous avez ?crit?: > Hi there > > Will RFC 31 (Loading MapServer Objects from Strings) be implemented in > PHP MapScript in Mapserver 5.0, e.g the mapscript.msLoadMapFromString function? > > Sture Hi Sture, This page shows that this RFC has been implemented : http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From lged_morris at HOTMAIL.COM Fri Sep 7 05:15:00 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Fri, 7 Sep 2007 14:15:00 +0200 Subject: Mapserver 5 expressions Message-ID: Hi again. Expression like ....&fasokex=210176493.... work fine, but how to write the expression when i have 2 or more values: ...&fasokex=210176493 or 210176494..... ...&fasokex=210176493,210176494..... ...&fasokex=210176493+210176494..... ...&fasokex=210176493&fasokex=210176494..... won't work Lars-G?ran Edholm _________________________________________________________________ Dags f?r ny TV? J?mf?r pris p? MSN Shopping! http://pricerunner.msn.se/s/2/TV-priser From David.Fawcett at STATE.MN.US Fri Sep 7 05:52:29 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 7 Sep 2007 07:52:29 -0500 Subject: No subject In-Reply-To: A Message-ID: Chris, Can you post the text of your map file? The mapfile attachments didn't come through. Are you defining the projection explicitly by setting all of the parameters, or are you just using the EPSG code like this? PROJECTION "init=epsg:26916" END Have you used the GDAL tools to check out the image. Try running gdalinfo on it to see what gdal reports for the referencing information. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Thursday, September 06, 2007 4:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Hi. I'm trying to take an image that already exists and display it through mapserver. It's a map from a college campus that I will eventually superimpose over another layer. No matter what I do, the image won't display. For projection, I'm Using UTM projection, WGS84 ellipsoid, NAD83 datum. The campus is University of Illinois in Champaign/Urbana. Since I'm using UTM, I know that the zone is 16. I've geocoded the top right and bottom left corners of the campus. The Easting of the bottom left corner is 393,898 Meters and the Northing is 4,438,945 Meters. The Easting of the top right is 396,253 Meters and the Northing is 4,441,379 Meters. I don't know if I'm leaving any parameters out in the Projection object in either the Map Object or the one Layer Object I have. Plus, I don't know if I'm declaring the Extent wrong. On top of that, someone suggested to me that I'd need a world file to specify where the image is located on a globe. I've set one up and am also specifying the values according to UTM, thought I'm not really sure what the 1st and 4th value really mean (yes - I've read many variations of the same definition for setting up world files). I'm using Ubuntu Feisty Linux and php Mapscript. I'm attaching the world file, .map file, and .php file. The .gif file is too big but can be located at: http://www.parking.uiuc.edu/campus_map/. Click on "Larger Image" and download that .pdf. I used Photoshop to convert it to a .gif, .png, .jpg, and .tif also and tried all of those but to no avail. As far as Mapserver info: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I'm stuck, and don't know what else to do. I've spent almost 2 weeks trying to get this to work as I've been learning about Mapserver, Mapscript, and projections. Any help to point me in the right direction would awesome. Also, if this isn't possible to do and I'm beating my head against a wall, that would be helpful too. My head hurts. Thank you in advance. - Chris ________________________________ Get news, entertainment and everything you care about at Live.com. Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: From arkadi at MEBIUS.LV Fri Sep 7 06:06:25 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Fri, 7 Sep 2007 08:06:25 -0500 Subject: java mapscript, method pointObj.project Message-ID: On Thu, 6 Sep 2007 17:54:57 +0200, Ludovico Bianchini wrote: >The problem described is independent from the >mapfile...I simply create a point and call its project >method... The point is - MS4W Proj can't find epsg file until its location is specified via MAP file. Thats my expirience with in-house developed application that works flawlessly on Linux, Solaris and Windows. The only difference is CONFIG PROJ_LIB directive for Windows host. In case you don't have the MAP file - thats different issue, I only wanted to tell that location of epsg file must be explicitly set whatever is you option to accomplish this. >--- Arkadi Shishlov ha scritto: > >> Make sure >> CONFIG "PROJ_LIB" "c:/ms4w/proj/nad/" >> is present in your MAP file. >> Seems to be MS4W specific kludge. From warmerdam at POBOX.COM Fri Sep 7 06:52:07 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 7 Sep 2007 09:52:07 -0400 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <550142.51607.qm@web38101.mail.mud.yahoo.com> Message-ID: Peter Shrock wrote: > Dear Tara: > > I do not know Linux, However, the approach I wanted to take is valid, if you > could read Novell's tech paper: > http://www.novell.com/coolsolutions/feature/11775.html > > Our MapServer Expert Frank Warmerdam also recommended the same approach. > > IMHO, this kind of package may be very important for our MapServer community. > > A few years ago, a friend told me that a student spent three weeks to get > mapserver installed. I laughed, as I though that should be a 20-minutes work > (at least it is true for ArcIMS, let alone ArcIMS's comprehensie functions). > Now, I have spent two months, and did not get it work. Considering human > resource cost, MapServer is actually more expensive than ArcIMS. Peter, Have you tried installing ArcIMS with only file upload capability? I *feel* that you hamstrung yourself with a hosting scenario that put you at a substantial disadvantage (no shell access). I'm reasonably confident that you would also be doomed installing most proprietary software under such a scenario. > Would it make sense for the The annual Free and Open Source Software for > Geospatial (FOSS4G) conference discuss this in its coming conference? I'm sure there will be more discussions. But the "file upload only" scenario may still not gain much traction. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From David.Fawcett at STATE.MN.US Fri Sep 7 06:57:29 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 7 Sep 2007 08:57:29 -0500 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: A Message-ID: Good points Barend. I would also add that while building ArcIMS from source on a Windows machine. The user should not have admin rights, access to many of the directories, or access to all of the applications/services running on the machine. To be serious (and maybe constructive), you are looking for a way to build or install software in an environment that has purposely been set up to prevent or discourage the installation of custom software. Shared hosts usually set up their permissions schemes for a reason. If you were to go with a host that offered MapServer services, or a host that would provide a virtual server that included 'admin' rights, you could install/run MapServer. The FGS Linux installer makes it pretty easy to install MapServer on a linux machine. Assuming that you have permissions to install software on the machine. (it won't likely work on a shared host). http://www.maptools.org/fgs/ It doesn't look like FGS is being kept up to date on versions though. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Barend K?bben Sent: Thursday, September 06, 2007 9:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Can anyone email a MapServer cgi binary package for redhat? Hi peter, You have some point, but don't do an honest comparison of course. Have you tried building ArcIMS from source...? I'm pretty sure even the ESRI people have problems with that! You should compare installing ArcIMS (for windows only) with an pre-compiled Mapserver package for windows only) , say MS4W. The latter involves unzipping one archive, and you have a working installation. I'm also no Linux user, but I know pre-packaged version exist, just as they exist for Windows (http://www.maptools.org/ms4w/) and MacOSX ( http://www.kyngchaos.com/)... __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 On 07-09-2007 03:35, "Peter Shrock" wrote: > Dear Tara: > > I do not know Linux, However, the approach I wanted to take is valid, > if you could read Novell's tech paper: > http://www.novell.com/coolsolutions/feature/11775.html > > Our MapServer Expert Frank Warmerdam also recommended the same > approach. > > IMHO, this kind of package may be very important for our MapServer > community. > > A few years ago, a friend told me that a student spent three weeks to > get mapserver installed. I laughed, as I though that should be a > 20-minutes work (at least it is true for ArcIMS, let alone ArcIMS's > comprehensie functions). Now, I have spent two months, and did not get > it work. Considering human resource cost, MapServer is actually more > expensive than ArcIMS. > > Would it make sense for the The annual Free and Open Source Software > for Geospatial (FOSS4G) conference discuss this in its coming > conference? > > > > > --- Tara Athan wrote: > >> Peter- there should be quite a few message in the archives over the >> last two weeks where I was getting advice from this list about >> installing mapserver on a shared hosting plan. I tried quite a few >> things, including FWTOOLS as well as building from scratch. I could >> never get the extra libraries recognized as they were needed. It >> appears that mapserver is not ready for the shared hosting >> environment, unless you are so experienced at Linux system >> adminstration that you can figure out on your own how to circumvent >> all the limitations of your particular service. Or perhaps it is the >> documentation of how to do it that is the gap. Either way, after >> investing considerable hours and attempting all proposed solutions >> kindly suggested by this list, I gave up. >> >> I am now trying out a mapserver hosting service in addition to my >> shared host service. I choose not to move all of my pages to the >> mapserver hosting service, because the shared hosting service offers >> quite a few things that the mapserver services do not, plus I have >> several sites in the middle of transition to CMS and it was just too >> complicated. If you haven't got too much invested with your shared >> hosting plan, you could drop them entirely and move your whole site >> to a mapserver hosting service, as that would be cheaper, (although >> not as cheap as most shared hosting plans!) Good luck. >> >> If you do somehow manage to get mapserver installed on your shared >> host service, please post the details as it would benefit many >> others. >> >> Tara >> >> >> Peter Shrock wrote: >>> Hello, all: >>> >>> I purchased a shard hosting plan a few months ago, and wnted to >>> implement mapserver. Due to the nature of shared hosting, all I can >>> do is to upload files. it is unfortunate that they do not allow >>> compiling, installtion, or change of environmental variables. >>> >>> I have been looking around for about a month, and have not found a >>> solution yet. >>> >>> I tried FWTOOLS, using the approach that Frank Warmerdam indicated >>> (below), >> but >>> with no luck. >>> >>> - upload mapserv executable and all the shared libraries somewhere. >>> - upload proj.4 support files (like epsg init file) somewhere >>> - create a mapserv wrapper script in the cgi-bin directory which sets >>> environment variables pointing to various things and then executes >>> the real mapserv binary. Environment variables would include: >>> LD_LIBRARY_PATH: needs to point to directory with all the .so files. >>> PROJ_LIB: needs to point to directory with the proj support >>> files. >>> >>> Now I have to come back to this mailing list for help. Basically, I >>> am >> looking >>> for the mapserver cgi and the SO files (for libpng, freetype, libgd, >>> Zlib, Proj4, GEOS, GDAL). I will use a wrapper script to define the >>> location of >> the >>> dependencies, using Frank Warmerdam's suggestions. >>> >>> I will appreciate it if anyone can email me this type of binary >>> package. Honestly, I do not know if such package exists. >>> >>> Thank you >>> >>> Peter >>> >>> >>> >>> >> > ______________________________________________________________________ > ________ > ______ >>> Luggage? GPS? Comic books? >>> Check out fitting gifts for grads at Yahoo! Search >>> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs= >>> bz >>> >>> >>> >> >> >> -- >> My e-mail delivery has been unreliable lately, so I am asking for >> return receipts from all my email messages. >> OK'ing the return receipt lets me know that my message was delivered. >> Thank you. >> >> Tara Athan >> Principal, Alternatives to Invasive Species tara_athan at alt2is.com >> 707-485-1198 >> PO Box 415 >> Redwood Valley, CA 95470 >> > > > > > ______________________________________________________________________________ > ______ > Need a vacation? Get great deals > to amazing places on Yahoo! Travel. > http://travel.yahoo.com/ From jayzee.smith at GMAIL.COM Fri Sep 7 07:09:16 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 7 Sep 2007 10:09:16 -0400 Subject: colorrange and point? In-Reply-To: Message-ID: using MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS =WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POS TGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG On 9/6/07, John Smith wrote: > guys, > does colorrange not work with point layers? > > LAYER > NAME "US" > STATUS default > TYPE point > ... > CLASS > NAME "US" > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > STYLE > COLORRANGE 255 0 0 0 0 255 > OUTLINECOLOR 0 0 0 > DATARANGE 100 1000 > RANGEITEM "COUNT" > SYMBOL "circle" > SIZE 5 > END > END > ... > END > > cheers, jzs From jayzee.smith at GMAIL.COM Fri Sep 7 07:11:57 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 7 Sep 2007 10:11:57 -0400 Subject: proportion of SIZEITEM Message-ID: guys, i wanna do something like STYLE ... SIZEITEM "COUNT/10" ... END but no luck. "[COUNT]/10" doesn't help either. any workarounds? cheers, jzs From docterrobert at MSN.COM Fri Sep 7 07:17:32 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Fri, 7 Sep 2007 09:17:32 -0500 Subject: No subject Message-ID: No, I'm setting all the parameters (well, as many as I can and understand). I tried to follow the Proj.4 .pdf manual and I was kinda confused what lat_1, lon_1 and lat_2, lon_2 were supposed to be or if I even needed them. Here is my map file: MAP NAME UniversityOfIllinois STATUS ON SIZE 600 500 IMAGETYPE GIF PROJECTION "proj=utm" "ellps=WGS84" "datum=NAD83" "zone=16" "units=m" "north" END EXTENT 393898 4438945 396253 4441379 #image is 1747 X 1916 pixels UNITS METERS SHAPEPATH "/var/www/mapserver/basic/data/illinois/" IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME thegif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGB EXTENSION "gif" END WEB IMAGEPATH "/var/www/mapserver/basic/images/" IMAGEURL "/mapserver/basic/images/" END #REFERENCE #IMAGE /var/www/mapserver/basic/data/illinois/colorUofIllinoisGIF.gif # location of the image #EXTENT 393898 4438945 396253 4441379 # extent of the image #STATUS ON # the overview is on by default #COLOR -1 -1 -1 # transparent background #OUTLINECOLOR 255 0 0 # the color of the outline #SIZE 1747 1916 # the size of the image in pixels #END LAYER NAME "UofI" DATA "colorUofIllinoisGIF.gif" TYPE RASTER STATUS ON PROJECTION "proj=utm" "ellps=WGS84" "datum=NAD83" "zone=16" "units=m" "north" END EXTENT 393898 4438945 396253 4441379 CLASS EXPRESSION /*/ COLOR 0 255 0 END END END I have that reference section in there although I really don't know the point behind it. It didn't change a thing, so I commented it out. Thanks so much David for your help! - Chris _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Fri Sep 7 07:19:08 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 7 Sep 2007 08:19:08 -0600 Subject: colorrange? In-Reply-To: Message-ID: Hey, neat colorrange. I see this in the source for 4.10 and 5.0, but don't see it in the documentation. Has Mapserver secretly supported automagically pulling colors from a range based on data? If so, a) Is a linear equal-interval method used for picking the color? Just a linear interpolation of the value versus range to pick the color from colorrange? b) Does it support quantile selection as well, weighting the color based on the frequency of the values in the dataset? c) Should I open a documentation bug, since this isn't mentioned? -- Gregor Mosheh / Greg Allensworth 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 From David.Fawcett at STATE.MN.US Fri Sep 7 07:35:09 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 7 Sep 2007 09:35:09 -0500 Subject: No subject In-Reply-To: A Message-ID: Chris, I see two parts to this: 1. To get your map file properly set up 2. To confirm that your image is properly georeferenced. For the map file: Have you looked at the Raster Data HowTo? http://mapserver.gis.umn.edu/docs/howto/raster_data This should give you some simple examples. You shouldn't actually need projection blocks unless you are combining data from different projections or serving the data up as a WMS. If you do need to use projections, and your data is in UTM Zone 16, using the epsg definition that I sent in the last email will make it easier. Get rid of the EXTENT line in your LAYER, I don't believe that this property exists. Set your LAYER STATUS to DEFAULT. Get rid of the CLASS block in your LAYER. For the image, run gdalinfo on it and see if the georeferencing information is correct. You can get gdalinfo at http://www.gdal.org/ David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Friday, September 07, 2007 9:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] No, I'm setting all the parameters (well, as many as I can and understand). I tried to follow the Proj.4 .pdf manual and I was kinda confused what lat_1, lon_1 and lat_2, lon_2 were supposed to be or if I even needed them. Here is my map file: MAP NAME UniversityOfIllinois STATUS ON SIZE 600 500 IMAGETYPE GIF PROJECTION "proj=utm" "ellps=WGS84" "datum=NAD83" "zone=16" "units=m" "north" END EXTENT 393898 4438945 396253 4441379 #image is 1747 X 1916 pixels UNITS METERS SHAPEPATH "/var/www/mapserver/basic/data/illinois/" IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME thegif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGB EXTENSION "gif" END WEB IMAGEPATH "/var/www/mapserver/basic/images/" IMAGEURL "/mapserver/basic/images/" END #REFERENCE #IMAGE /var/www/mapserver/basic/data/illinois/colorUofIllinoisGIF.gif # location of the image #EXTENT 393898 4438945 396253 4441379 # extent of the image #STATUS ON # the overview is on by default #COLOR -1 -1 -1 # transparent background #OUTLINECOLOR 255 0 0 # the color of the outline #SIZE 1747 1916 # the size of the image in pixels #END LAYER NAME "UofI" DATA "colorUofIllinoisGIF.gif" TYPE RASTER STATUS ON PROJECTION "proj=utm" "ellps=WGS84" "datum=NAD83" "zone=16" "units=m" "north" END EXTENT 393898 4438945 396253 4441379 CLASS EXPRESSION /*/ COLOR 0 255 0 END END END I have that reference section in there although I really don't know the point behind it. It didn't change a thing, so I commented it out. Thanks so much David for your help! - Chris ________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. Play now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayzee.smith at GMAIL.COM Fri Sep 7 07:43:30 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 7 Sep 2007 10:43:30 -0400 Subject: colorrange and point? In-Reply-To: Message-ID: greg, there's some discussion on this in our archives http://www.nabble.com/-UMN_MAPSERVER-USERS--Wishing-we-had-COLORRAMPs-or-something-tf108736.html#a299945 http://www.nabble.com/Re%3A--UMN_MAPSERVER-DEV--Proposed-RFC-on-COLORRAMP-Support-(Bug-13-05)-tf351032.html#a975705 jzs > Gregor Mosheh-3 Sep 07, 2007; 10:19am Hey, neat colorrange. I see this in the source for 4.10 and 5.0, but don't see it in the documentation. Has Mapserver secretly supported automagically pulling colors from a range based on data? If so, a) Is a linear equal-interval method used for picking the color? Just a linear interpolation of the value versus range to pick the color from colorrange? b) Does it support quantile selection as well, weighting the color based on the frequency of the values in the dataset? c) Should I open a documentation bug, since this isn't mentioned? -- Gregor Mosheh / Greg Allensworth 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 On 9/7/07, John Smith wrote: > using > > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS > =WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT=POS > TGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > On 9/6/07, John Smith wrote: > > guys, > > does colorrange not work with point layers? > > > > LAYER > > NAME "US" > > STATUS default > > TYPE point > > ... > > CLASS > > NAME "US" > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > STYLE > > COLORRANGE 255 0 0 0 0 255 > > OUTLINECOLOR 0 0 0 > > DATARANGE 100 1000 > > RANGEITEM "COUNT" > > SYMBOL "circle" > > SIZE 5 > > END > > END > > ... > > END > > > > cheers, jzs From ed at TOPOZONE.COM Fri Sep 7 07:49:19 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 7 Sep 2007 10:49:19 -0400 Subject: No subject In-Reply-To: Message-ID: Chris - I would start by setting the LAYER object to STATUS DEFAULT rather than STATUS ON, and you don?t need an EXTENT statement inside your LAYER. - Ed -- Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com From: Christopher Harris Reply-To: Christopher Harris Date: Fri, 7 Sep 2007 09:17:32 -0500 To: Subject: [UMN_MAPSERVER-USERS] No, I'm setting all the parameters (well, as many as I can and understand). I tried to follow the Proj.4 .pdf manual and I was kinda confused what lat_1, lon_1 and lat_2, lon_2 were supposed to be or if I even needed them. Here is my map file: MAP NAME UniversityOfIllinois STATUS ON SIZE 600 500 IMAGETYPE GIF PROJECTION "proj=utm" "ellps=WGS84" "datum=NAD83" "zone=16" "units=m" "north" END EXTENT 393898 4438945 396253 4441379 #image is 1747 X 1916 pixels UNITS METERS SHAPEPATH "/var/www/mapserver/basic/data/illinois/" IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME thegif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGB EXTENSION "gif" END WEB IMAGEPATH "/var/www/mapserver/basic/images/" IMAGEURL "/mapserver/basic/images/" END #REFERENCE #IMAGE /var/www/mapserver/basic/data/illinois/colorUofIllinoisGIF.gif # location of the image #EXTENT 393898 4438945 396253 4441379 # extent of the image #STATUS ON # the overview is on by default #COLOR -1 -1 -1 # transparent background #OUTLINECOLOR 255 0 0 # the color of the outline #SIZE 1747 1916 # the size of the image in pixels #END LAYER NAME "UofI" DATA "colorUofIllinoisGIF.gif" TYPE RASTER STATUS ON PROJECTION "proj=utm" "ellps=WGS84" "datum=NAD83" "zone=16" "units=m" "north" END EXTENT 393898 4438945 396253 4441379 CLASS EXPRESSION /*/ COLOR 0 255 0 END END END I have that reference section in there although I really don't know the point behind it. It didn't change a thing, so I commented it out. Thanks so much David for your help! - Chris Kick back and relax with hot games and cool activities at the Messenger Caf?. Play now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Sep 7 07:55:07 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 7 Sep 2007 10:55:07 -0400 Subject: colorrange? In-Reply-To: <46E15DDC.30307@hostgis.com> Message-ID: Gregor Mosheh wrote: > Hey, neat colorrange. I see this in the source for 4.10 and 5.0, but > don't see it in the documentation. Has Mapserver secretly supported > automagically pulling colors from a range based on data? This was some experimental code that was added, I don't think Bill Binko has been available to continue the development (I might be wrong on that), so there it sits for the time being. http://mapserver.gis.umn.edu/development/rfc/ms-rfc-6/ http://trac.osgeo.org/mapserver/ticket/1305 > If so, > a) Is a linear equal-interval method used for picking the color? Just a > linear interpolation of the value versus range to pick the color from > colorrange? > > b) Does it support quantile selection as well, weighting the color based > on the frequency of the values in the dataset? > > c) Should I open a documentation bug, since this isn't mentioned? > It only supports simple linear interpertation IIRC. I think there needs to be some discussion as to what level of support there is for this feature. If it is still experimental and not supported, then it does not need a doc bug. -Steve W From tara_athan at ALT2IS.COM Fri Sep 7 08:45:25 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Fri, 7 Sep 2007 08:45:25 -0700 Subject: Can anyone email a MapServer cgi binary package for redhat? In-Reply-To: <46E15787.9050406@pobox.com> Message-ID: SSH (secure shell access) is available from a number of cheap web hosts (under $10(US) per month) including dreamhost, bluehost, HostMonster and Hosting.com.ru It seems like a logical first step would be to thoroughly address this scenario and move on to "file upload only" after that is successfully handled. I see a couple of steps: 1. someone with the appropriate level of Linux expertise to experiment with enough of these webhosting services to determine the configurations and settings needed for a broad variety of circumstances (different shells, different Linux flavors); 2. someone with extensive Mapserver expertise to document any dangerous practices that a novice mapserver user should avoid in order to keep from crashing the server or unexpectedly demanding high amounts of bandwidth or memory, that could cause the hosting service to disable the account or charge extra for exceeding account limitations. I will be attending FOSS4G2007 and would be interested in hearing this discussed. Tara Frank Warmerdam wrote: > Peter Shrock wrote: >> Dear Tara: >> >> I do not know Linux, However, the approach I wanted to take is valid, >> if you >> could read Novell's tech paper: >> http://www.novell.com/coolsolutions/feature/11775.html >> >> Our MapServer Expert Frank Warmerdam also recommended the same approach. >> IMHO, this kind of package may be very important for our MapServer >> community. >> A few years ago, a friend told me that a student spent three weeks to >> get >> mapserver installed. I laughed, as I though that should be a >> 20-minutes work >> (at least it is true for ArcIMS, let alone ArcIMS's comprehensie >> functions). Now, I have spent two months, and did not get it work. >> Considering human >> resource cost, MapServer is actually more expensive than ArcIMS. > > Peter, > > Have you tried installing ArcIMS with only file upload capability? I > *feel* > that you hamstrung yourself with a hosting scenario that put you at a > substantial disadvantage (no shell access). I'm reasonably confident > that > you would also be doomed installing most proprietary software under > such a scenario. > >> Would it make sense for the The annual Free and Open Source Software for >> Geospatial (FOSS4G) conference discuss this in its coming conference? > > I'm sure there will be more discussions. But the "file upload only" > scenario may still not gain much traction. > > Best regards, -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan at alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From Scott_Solomon at SRA.COM Fri Sep 7 08:57:49 2007 From: Scott_Solomon at SRA.COM (Solomon, Scott) Date: Fri, 7 Sep 2007 11:57:49 -0400 Subject: I installed MapServer and the Apache Web Server In-Reply-To: Message-ID: I installed MapServer and the Apache Web Server. The attached pics show that. When I manually start Apache each time, by clicking on /ms4w/Apache/bin/httpd.exe the empty DOS window opens, but just for a split second and disappears. It appears just along enough that I could grab a screen capture of it: But it either closes automatically, or runs in the background, so how would I be able to close it? Most importantly, I went to request a map image directly from MapServer through both Internet Explorer and Mozilla Firefox. Should I see a MapServer toolbar with a button that says "Request Map" or something along those lines in the browser window? Right now I don't, which leads me to believe I installed MapServer unsuccessfully. What should I be looking for? Scott Solomon Data Mining Analyst Arlington Center 3434 Washington Blvd, 2nd Floor Arlington, VA 22201 voice 703-284-3233 fax 703 284 1375 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 14790 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 73 bytes Desc: image002.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Apache MapServer Stuff.JPG Type: image/jpeg Size: 19126 bytes Desc: Apache MapServer Stuff.JPG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Blank Apache is running window.JPG Type: image/jpeg Size: 15218 bytes Desc: Blank Apache is running window.JPG URL: From Jukka.Rahkonen at MMMTIKE.FI Fri Sep 7 09:24:28 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 7 Sep 2007 19:24:28 +0300 Subject: I installed MapServer and the Apache Web Server Message-ID: Hi, When it comes to your first problem, starting Apache, if you first open a Windows command window and start httpd.exe from there you will have more time to read the error messages which perhaps appear on the screen. -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Solomon, Scott Sent: Fri 7.9.2007 18:57 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] I installed MapServer and the Apache Web Server I installed MapServer and the Apache Web Server. The attached pics show that. When I manually start Apache each time, by clicking on /ms4w/Apache/bin/httpd.exe the empty DOS window opens, but just for a split second and disappears. It appears just along enough that I could grab a screen capture of it: But it either closes automatically, or runs in the background, so how would I be able to close it? Most importantly, I went to request a map image directly from MapServer through both Internet Explorer and Mozilla Firefox. Should I see a MapServer toolbar with a button that says "Request Map" or something along those lines in the browser window? Right now I don't, which leads me to believe I installed MapServer unsuccessfully. What should I be looking for? Scott Solomon Data Mining Analyst Arlington Center 3434 Washington Blvd, 2nd Floor Arlington, VA 22201 voice 703-284-3233 fax 703 284 1375 -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 14790 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 73 bytes Desc: image002.gif URL: From docterrobert at MSN.COM Fri Sep 7 09:38:56 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Fri, 7 Sep 2007 11:38:56 -0500 Subject: Thanks Guys!!!! Message-ID: Thanks Dave and Ed! I got it working! It appears that World File was crucial also in getting the image to display. You're right about the projections. They don't seem to change a thing when I comment them out, but it still works. Awesome! - Chris From ed at TOPOZONE.COM Fri Sep 7 10:01:26 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 7 Sep 2007 13:01:26 -0400 Subject: Thanks Guys!!!! In-Reply-To: Message-ID: Chris - Good job! All layers in a map file are presumed to be the same projection unless specified otherwise, and the only reason you really need to specify projections is if you have layers in different projections. Then MapServer needs to know which layers need to be reprojected and how. As long as you use the UNITS METERS at the top (so scalebars and things work) and all your data are in UTM Zone 16, you can ignore projections entirely. MapServer will simply work with a bunch of X/Y coordinates without knowing to what projection they refer. - Ed -- Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Christopher Harris > Reply-To: Christopher Harris > Date: Fri, 7 Sep 2007 11:38:56 -0500 > To: > Subject: [UMN_MAPSERVER-USERS] Thanks Guys!!!! > > Thanks Dave and Ed! I got it working! It appears that World File was > crucial also in getting the image to display. You're right about the > projections. They don't seem to change a thing when I comment them out, but > it still works. Awesome! > > - Chris From dmorissette at MAPGEARS.COM Fri Sep 7 10:21:16 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 7 Sep 2007 13:21:16 -0400 Subject: SV: [UMN_MAPSERVER-USERS] RFC 31 and PHP MapScript In-Reply-To: <156367754.287131189165666206.JavaMail.adm-moff@moffice5.nsc.no> Message-ID: Sture Dings?yr wrote: > It is implemented in the Mapserver 5.0 source code yes...but I do not think it is implemented in the PHP Mapscript version of Mapserver? > You're right, there is no mapping of RFC-31 features in PHP MapScript. Unfortunately it's too late for 5.0 so that will have to be added in 5.2 once we sort out what needs to be added exactly. I have created a ticket for that: http://trac.osgeo.org/mapserver/ticket/2298 Daniel -- Daniel Morissette http://www.mapgears.com/ From sandeepkumar.jakkaraju at GMAIL.COM Fri Sep 7 10:32:29 2007 From: sandeepkumar.jakkaraju at GMAIL.COM (Sandeep Kumar Jakkaraju) Date: Fri, 7 Sep 2007 23:02:29 +0530 Subject: Php vs Java Mapscript Message-ID: Hi All I want know which peforms better Php Mapscript or Java Mapscript ?? -- Thanks Regards Sandeep Kumar Jakkaraju -------------- next part -------------- An HTML attachment was scrubbed... URL: From coolfrenz85 at YAHOO.COM Fri Sep 7 11:30:28 2007 From: coolfrenz85 at YAHOO.COM (cool frenz) Date: Fri, 7 Sep 2007 11:30:28 -0700 Subject: Using mysql to generate map Message-ID: Hi, I am using mysql db and php as mapscript on windows. In mysql db i have got coordinates of the points thst i need to show on the map. I dont have any base map (on which i can add point). What i mean to say is that i have just point coordinates and nothing else( Except the extent and projections). Now i want to read those points from the database and display them on map and attaching some information with those individual points (like labels and link to open pop up) Please let me know how it can be done. I tried searching for some documentation regarding using mysql as db but couldnt find relevant document. If you have found one please let me know the address. Thanks and Regards, Piyush --------------------------------- Got a little couch potato? Check out fun summer activities for kids. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hunter at FNF.COM Fri Sep 7 11:58:19 2007 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri, 7 Sep 2007 13:58:19 -0500 Subject: Oracle Spatial problem Message-ID: I am trying to set up MapServer CGI to run in Tomcat with Oracle Spatial support. I got the cgi-bin set up and working, and then created a test map file and HTML template. I have test data in .TAB form and in Oracle 10g. When using the default libmap.dll from MS4W 2.2.5, the .TAB layer displays OK, but when I add the Oracle layer it displays the "OracleSpatial not supported" message. When I copy the libmap.dll from cgi-bin/ignored-libmap/oracle10g to cgi-bin, a totally blank page is displayed, no matter what layer (.TAB and/or Oracle) I use. It's as if the template is not found or ignored. There are no messages in the log file or anything else to diagnose the problem. Anybody have any ideas? Here's the map file I'm playing with: MAP IMAGETYPE PNG24 EXTENT -79.9 40.3 -71.6 45.1 SIZE 650 520 SHAPEPATH "roadbase/" SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" IMAGECOLOR 255 255 255 UNITS miles WEB IMAGEPATH "/Tomcat/webapps/ext-1.0.1/tmp/" IMAGEURL "/ext-1.0.1/tmp/" TEMPLATE "oratest.htm" LOG "/Tomcat/logs/mapserver.log" END LAYER NAME "Counties_Labels" CONNECTIONTYPE ogr CONNECTION "NYxxxxcb.tab" STATUS DEFAULT TYPE ANNOTATION LABELITEM "countyname" CLASS LABEL TYPE TRUETYPE FONT arial SIZE 10 COLOR 128 128 128 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE ANGLE auto FORCE false POSITION auto OFFSET 0 0 MINDISTANCE 335 END END END LAYER NAME "Counties" CONNECTIONTYPE ogr CONNECTION "NYxxxxcb.tab" STATUS DEFAULT TYPE POLYGON CLASS NAME "Counties" OUTLINECOLOR 128 128 128 SYMBOL "circle" SIZE 3 END END LAYER NAME "FireDistricts" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "data/fngsdata at SLP" #DATA "GEOLOC FROM (SELECT * FROM locppc.us_1007 WHERE state = 'NY') USING VERSION 10g" DATA "GEOLOC FROM locppc.us_1007 USING VERSION 10g" DUMP TRUE CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 SYMBOL "circle" SIZE 1 END END END END David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 Email: david.hunter at fnf.com Phone: 952.542.1440 ext. 256 Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kedaar.ghanekar at GMAIL.COM Fri Sep 7 12:50:58 2007 From: kedaar.ghanekar at GMAIL.COM (Kedaar Ghanekar) Date: Fri, 7 Sep 2007 15:50:58 -0400 Subject: Ogr csv file access Message-ID: Hi, I am trying to access a csv file with x,y point data using OGR. I have it working using ODBC however I am not able to access the files without ODBC which I would like to do. I am using ms4w on a windows XP box and was not able to access my csv files using the method described here: http://lists.umn.edu/cgi-bin/wa/cgi-bin/wa?A2=ind0603&L=mapserver-users&D=0&P=63569&X=24C17728765623E608 And at the bottom of the page here: http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData From warmerdam at POBOX.COM Fri Sep 7 13:37:31 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 7 Sep 2007 16:37:31 -0400 Subject: Ogr csv file access In-Reply-To: <306046bc0709071250g50b1ecf3rb8b07299e43e9904@mail.gmail.com> Message-ID: Kedaar Ghanekar wrote: > Hi, > > I am trying to access a csv file with x,y point data using OGR. I have > it working using ODBC however I am not able to access the files without > ODBC which I would like to do. I am using ms4w on a windows XP box and > was not able to access my csv files using the method described here: > http://lists.umn.edu/cgi-bin/wa/cgi-bin/wa?A2=ind0603&L=mapserver-users&D=0&P=63569&X=24C17728765623E608 > > > And at the bottom of the page here: > http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData > > >From what I understood of the OGR document on the mapserver website it > says that csv files can be accessed directly by entering the path to the > file in the SrcDataSource, but this does not seem to be working for me. > > Here is the connection string that I am trying to use: > CONNECTION " > name='city'>C:\ms4w\apps\sp-wms\admin_tools\data\ReportData\ > city.csv y='Y'/>wkbPointWGS84" > > > Here is the working ODBC version: > CONNECTION " > name='IRSS_TEXT'>ODBC:IRSS_TEXT,city.csvcity.csv > y='Y'/>wkbPoint" Kedaar, I would suggest that you start by trying "ogrinfo" against the .csv file and see if that works. If not, perhaps you could provide me the first few lines of the file. The .csv driver has a quite a bit more restrictive concept of format than the windows ODBC csv driver. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Steve.Lime at DNR.STATE.MN.US Fri Sep 7 14:42:19 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 7 Sep 2007 16:42:19 -0500 Subject: Mapserver 5 expressions In-Reply-To: Message-ID: These are runtime subs via a URL? Is there any runtime validations being done? Did this work before in 4.10? Steve >>> On 9/7/2007 at 7:15 AM, in message , Lars-G?ran Edholm wrote: > Hi again. > Expression like ....&fasokex=210176493.... > work fine, but how to write the expression when i have 2 or more values: > ...&fasokex=210176493 or 210176494..... > ...&fasokex=210176493,210176494..... > ...&fasokex=210176493+210176494..... > ...&fasokex=210176493&fasokex=210176494..... > won't work > > Lars-G?ran Edholm > > _________________________________________________________________ > Dags f?r ny TV? J?mf?r pris p? MSN Shopping! > http://pricerunner.msn.se/s/2/TV-priser From Steve.Lime at DNR.STATE.MN.US Fri Sep 7 14:44:37 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 7 Sep 2007 16:44:37 -0500 Subject: proportion of SIZEITEM In-Reply-To: Message-ID: Work around would be to use a DB backend then you could create the new column on the fly. Otherwise you're out of luck. Sorry. Could always pre-process the data and add the content there. Steve >>> On 9/7/2007 at 9:11 AM, in message , John Smith wrote: > guys, > i wanna do something like > > STYLE > ... > SIZEITEM "COUNT/10" > ... > END > > but no luck. "[COUNT]/10" doesn't help either. any workarounds? > cheers, jzs From woodbri at SWOODBRIDGE.COM Fri Sep 7 18:40:03 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 7 Sep 2007 21:40:03 -0400 Subject: Mapserver 5 expressions In-Reply-To: <46E17F6B.5157.008F.0@dnr.state.mn.us> Message-ID: Steve, Can this be written as a regex expression? how? &fasokex=/210176493|210176494/ -Steve W Steve Lime wrote: > These are runtime subs via a URL? Is there any runtime validations being > done? Did this > work before in 4.10? > > Steve > >>>> On 9/7/2007 at 7:15 AM, in message > , Lars-G?ran Edholm > wrote: >> Hi again. >> Expression like ....&fasokex=210176493.... >> work fine, but how to write the expression when i have 2 or more > values: >> ...&fasokex=210176493 or 210176494..... >> ...&fasokex=210176493,210176494..... >> ...&fasokex=210176493+210176494..... >> ...&fasokex=210176493&fasokex=210176494..... >> won't work >> >> Lars-G?ran Edholm >> >> _________________________________________________________________ >> Dags f?r ny TV? J?mf?r pris p? MSN Shopping! >> http://pricerunner.msn.se/s/2/TV-priser From vishu_73ns at YAHOO.COM Fri Sep 7 20:38:31 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Fri, 7 Sep 2007 22:38:31 -0500 Subject: Thanks Guys!!!! Message-ID: I also used world file to add georeference information and scale to my elevation data, it worked fine, but how do you add georeference information to dgn files. From jeremiahosullivan at GMAIL.COM Sat Sep 8 06:13:10 2007 From: jeremiahosullivan at GMAIL.COM (Jerry O'Sullivan) Date: Sat, 8 Sep 2007 14:13:10 +0100 Subject: Point data from SQL Server In-Reply-To: <67fe0b0709080609q106784cahd259f745ad644a39@mail.gmail.com> Message-ID: Hi, I have point data in SQL Server (X,Y Columns in a table), what is the best way to display this in mapserver..ideally without having to transform it to another data format. Thanks in advance Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: From candalt at ONLINE.NO Sat Sep 8 06:51:49 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Sat, 8 Sep 2007 15:51:49 +0200 Subject: SV: [UMN_MAPSERVER-USERS] Point data from SQL Server Message-ID: Hi there I suggest that you use OGR and ODBC.. Make an DSN (odbc) connection to your database...you do this on your server (windows)... Then make an Mapserver OGR layer... You will ned a Mapserver version compiled with the OGR library, e.g. MS4W (Mapserver for windows)... Check out http://ms.gis.umn.edu/docs/howto/ogr_howto You could make an OGR Layer in mapserver with something like this: LAYER CONNECTION "ODBC:@test,TABLENAMETABLENAMEwkbPoint" CONNECTIONTYPE OGR DATA "test" NAME "test" STATUS ON TYPE POINT CLASS MAXSCALE 100000000 MINSCALE 0 NAME "test" COLOR 255 255 255 SYMBOL "circle" SIZE 5 END END You see that the CONNECTIONTYPE is ogr and that the CONNECTION string is an OGR spesific inlay XML..where you put the name of the DSN, tablename, x and y column... See also: http://www.gdal.org/ogr/drv_odbc.html to see how to spesify the connectionstring...with username and password.. And: http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData?set_language=de&cl=de http://www.gdal.org/ogr/drv_vrt.html If you need to transform your data into another coordinate system...you can also use the Mapserver PROJECTION tagg as normal in the LAYER... e.g. PROJECTION "init=epsg:4326" END Cheers Sture -------------------------------------------------------------------------------- Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] P? vegne av Jerry O'Sullivan Sendt: 8. september 2007 15:13 Til: MAPSERVER-USERS at LISTS.UMN.EDU Emne: [UMN_MAPSERVER-USERS] Point data from SQL Server Hi, I have point data in SQL Server (X,Y Columns in a table), what is the best way to display this in mapserver..ideally without having to transform it to another data format. Thanks in advance Jerry From reh2 at PRODIGY.NET Sat Sep 8 08:16:01 2007 From: reh2 at PRODIGY.NET (Robert Hollingsworth) Date: Sat, 8 Sep 2007 10:16:01 -0500 Subject: Using mysql to generate map Message-ID: I've had good results with mySQL, php_mapscript on mswin. I'd also found the documents to be a bit difficult on the subject. In the std docs, look at what OGR docs have to say about mysql. Ignore anything you see on the "MYGIS" CONNECTIONTYPE; I've exclusively been using the MySQL support under OGR. All my efforts have been using the MySQL Spatial constructs. Some quick notes that should help: 1. As mentioned, only use OGR support for MySQL. 2. I'm assuming you're using MySQL Spatial Geometry only. 3. Make sure your Geometry column has a Spatial Index if you want to do spatial queries (see DATA statement below). 4. Build or otherwise make sure (ogrinfo.exe) that your GDAL lib supports MySQL. 5. mapfile extract: LAYER NAME "MySQLdata" TYPE point STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "mysql:databasename,user=mysqluser,password=mysqlpasswd,host=mysqlhost,port=3306" # make sure your port is really 3306. fill in the actual values for db user passwd host, of course DATA "select attr1,attr2,geom from tablename where attr1 not like '%HH' and MBRIntersects(GeomFromText('Polygon((-98 29,-98 30,-97 30,-97 29,-98 29))' ),shape)" LABELITEM attr2 CLASSITEM attr1 CLASS EXPRESSION /...[0-9][0-9]/ ...... 6. The DATA statement above, from some zipcode data I've done, shows a WHERE clause; you can use whatever SQL you need (joins, etc.). It's possible that the OGR driver will actually make all your attributes available to you without their explicit mention in the DATA statement, but I haven't experimented with all the variations. 7. The DATA statement also illustrates a spatial query -- pretty essential for performance if you want to pull a small amount of data from a large dataset. I hope this helps. have fun. REH >>>>>>>>>>>>>>>>> original: >I am using mysql db and php as mapscript on windows. In mysql db i have got coordinates of the points thst i need to show on the map. I dont have any base map (on which i can add point). What i mean to say is that i have just point coordinates and nothing else( Except the extent and projections). Now i want to read those points from the database and display them on map and attaching some information with those individual points (like labels and link to open pop up) Please let me know how it can be done. >I tried searching for some documentation regarding using mysql as db but couldnt find relevant document. If you have found one please let me know the address. From crystal.li at IDISIS.COM Sun Sep 9 08:44:18 2007 From: crystal.li at IDISIS.COM (Crystal Li) Date: Sun, 9 Sep 2007 09:44:18 -0600 Subject: lossy index Message-ID: Hi All, Would any one explain lossy indexes for me? in PostGIS Manual it talked about GiST indexes are assumed to be lossy.Thanks. Crystal -- ========================= Crystal Li Systems Analyst Idisis, Inc. 430, 318 11th Avenue S.E. Calgary, Alberta T2G 0Y2 www.idisis.com E-mail: crystal.li at idisis.com Office: (403)670-7351 Fax: (403) 670-7359 -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Sun Sep 9 11:35:44 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 9 Sep 2007 14:35:44 -0400 Subject: lossy index In-Reply-To: <417cc46d0709090844n569ab828ye25bbf7aa4317f32@mail.gmail.com> Message-ID: Crystal Li wrote: > Hi All, > > Would any one explain lossy indexes for me? in PostGIS Manual it talked > about GiST indexes are assumed to be lossy.Thanks. > > Crystal I believe that this relates to the fact the gist indexes are based on the bbox of the geometry, so that they loose the precise nature of the geometry in favor of the faster bbox representation. So the use of gist indexes is a && b means that a might interact with b and a moer precide test is needed to confirm that. So you see typical queries doing: where a && b and intersects(a,b) HTH, -Steve From ed at TOPOZONE.COM Sun Sep 9 11:48:42 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 9 Sep 2007 14:48:42 -0400 Subject: lossy index In-Reply-To: A<46E43D00.5050501@swoodbridge.com> Message-ID: Crystal - Steve's description is very good; while the GiST index is extremely helpful, it is not "deterministic" (I'm sure there's a fancy database term that's more accurate) like other indexes. What's being indexed is NOT the geometry itself, but the bounding box of the geometry, so it's not the same as indexing the actual data like you would with a text or numeric field. For all cases there the actual geometry of object A intersects the actual geometry of B, their bounding boxes will also intersect, so the query (A && B) will all objects that actually intersect. It will also, however, return objects which do NOT intersect themselves, but whose bounding boxes intersect - think of two diagonal parallel line segments. The test INTERSECTS(A, B) is a much more time-consuming operation than the VERY fast (A && B) test, so it is much faster to use (A && B) followed by INTERSECTS(A, B) in that order. The first test will be executed first and will discard all objects whose bounding boxes do not intersect. This is a "trivial rejection" test, quickly tossing out the objects that can't possibly intersect. The more complex INTERSECTS(A, B) test is then performed only on the subset of objects that passes the first test, and will toss out any false positives where the bounding boxes intersect but the objects themselves do not. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Sunday, September 09, 2007 2:36 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] lossy index Crystal Li wrote: > Hi All, > > Would any one explain lossy indexes for me? in PostGIS Manual it talked > about GiST indexes are assumed to be lossy.Thanks. > > Crystal I believe that this relates to the fact the gist indexes are based on the bbox of the geometry, so that they loose the precise nature of the geometry in favor of the faster bbox representation. So the use of gist indexes is a && b means that a might interact with b and a moer precide test is needed to confirm that. So you see typical queries doing: where a && b and intersects(a,b) HTH, -Steve From punk.kish at GMAIL.COM Sun Sep 9 12:29:20 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Sun, 9 Sep 2007 14:29:20 -0500 Subject: lossy index In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019883C0@ptolemy.topozone.com> Message-ID: "fuzzy index" sounds like a more apt phrase than "lossy index" given Steve's description. On 9/9/07, Ed McNierney wrote: > Crystal - > > Steve's description is very good; while the GiST index is extremely helpful, it is not "deterministic" (I'm sure there's a fancy database term that's more accurate) like other indexes. What's being indexed is NOT the geometry itself, but the bounding box of the geometry, so it's not the same as indexing the actual data like you would with a text or numeric field. > > For all cases there the actual geometry of object A intersects the actual geometry of B, their bounding boxes will also intersect, so the query (A && B) will all objects that actually intersect. It will also, however, return objects which do NOT intersect themselves, but whose bounding boxes intersect - think of two diagonal parallel line segments. The test INTERSECTS(A, B) is a much more time-consuming operation than the VERY fast (A && B) test, so it is much faster to use (A && B) followed by INTERSECTS(A, B) in that order. The first test will be executed first and will discard all objects whose bounding boxes do not intersect. This is a "trivial rejection" test, quickly tossing out the objects that can't possibly intersect. The more complex INTERSECTS(A, B) test is then performed only on the subset of objects that passes the first test, and will toss out any false positives where the bounding boxes intersect but the objects themselves do not. > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: 978-251-4242, Fax: 978-251-1396 > ed at topozone.com > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge > Sent: Sunday, September 09, 2007 2:36 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] lossy index > > Crystal Li wrote: > > Hi All, > > > > Would any one explain lossy indexes for me? in PostGIS Manual it talked > > about GiST indexes are assumed to be lossy.Thanks. > > > > Crystal > > I believe that this relates to the fact the gist indexes are based on > the bbox of the geometry, so that they loose the precise nature of the > geometry in favor of the faster bbox representation. > > So the use of gist indexes is a && b means that a might interact with b > and a moer precide test is needed to confirm that. So you see typical > queries doing: > > where a && b and intersects(a,b) > > HTH, > -Steve > -- 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/ Summer 2007 S&T Policy Fellow, The National Academies http://www.nas.edu/ From terence at WAIROADC.GOVT.NZ Sun Sep 9 16:55:34 2007 From: terence at WAIROADC.GOVT.NZ (Terence Maru) Date: Mon, 10 Sep 2007 11:55:34 +1200 Subject: blank image In-Reply-To: A<46DDF1E1.4050309@hostgis.com> Message-ID: Hi all, I have added a projection to the map object (see attached php script). I have also attached the postgis table describe. The postgis describe shows that the table "parcels" has a constraint check on the_geom (column) that the srid is 27200 (NZ Mapping Grid). Does this mean that the database has the correct projection? I have added in the mapscript the line "$map->setProjection('init=epsg:27200');", my understanding is that this sets the correct projection for the map object? Do I need to set the projection for the layer object too? Im still getting a blank image. I thought it might have something to do with the extents if my projections are correct? Still reasearching though. Thanks in advance. Indexes: "parcels_pkey" PRIMARY KEY, btree (gid) "gist_index" gist (the_geom) Check constraints: "enforce_dims_the_geom" CHECK (ndims(the_geom) = 2) "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL) "enforce_srid_the_geom" CHECK (srid(the_geom) = 27200) $map = ms_newMapObj(""); //$map->set("debug", MS_TRUE); $map->setSize(600, 300); $map->setExtent(-180, -90, 180, 90); //define path where to creat image $map->web->set("imagepath", "./data/"); $map->web->set("imageurl", "./data/"); $map->web->set("log", "./data/logfile.txt"); $map->setProjection('init=epsg:27200'); //crate parcel layer, associate it withthe map $parcelLayer = ms_newLayerObj($map); $parcelLayer->set("connectiontype", MS_POSTGIS); $parcelLayer->set("name", "parcels layer"); $connector = "user=user dbname=dbname host=localhost"; $parcelLayer->set("connection", $connector); $sql = "the_geom from parcels"; $parcelLayer->set("data", $sql); $parcelLayer->set("status", MS_DEFAULT); $parcelLayer->set("type", MS_LAYER_POLYGON); //$parcelLayer->set("debug", MS_ON); $parcelClass = ms_newClassObj($parcelLayer); $parcelClass->set("name", "parcels class"); $parcelStyle = ms_newStyleObj($parcelClass); $parcelStyle->color->setRGB( 250, 0, 0); $parcelStyle->outlinecolor->setRGB( 255, 255, 255); //$parcelStyle->set("symbol", 7); $parcelStyle->set("symbolname", "circle"); //$parcelStyle->set("size", 6); $parcelStyle->set("size", 10); bm -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU ] On Behalf Of Gregor Mosheh Sent: Wednesday, 5 September 2007 12:02 p.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] blank image Terence Maru wrote: > Hi everyone, I have a problem generating an image from my postgis > database I have attached my php script. No errors are returned when > the script is run, just a blank image is returned. Can anyone see > whats wrong with my script? Cheers This exact same question came up two days ago. 90% of the time, the issue is projections. Ensure that all layers and the output map are in the same projection, or else set projection blocks. 90% of the time, that fixes it. -- Gregor Mosheh / Greg Allensworth 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 ##################################################################################### This e-mail message has been scanned for Viruses by McAfee and content has been cleared by MailMarshal ##################################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Sun Sep 9 19:43:42 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Sun, 9 Sep 2007 19:43:42 -0700 Subject: blank image In-Reply-To: <8A78DFFBDB6ED849945A18DEF719911C64CB9E@wdcserver2.wairoadc.govt.nz> Message-ID: Terence, There are three separate issues: 1. What projection is your output map in? This is the projection of the overall map, presumably the NZ grid. 2. What projection is your data in? This is the projection assigned to your layer. If different than #1, it must be assigned and the data will be reprojected on-the-fly. 3. What is the extent in the output map projection? Use this to set the map extents. If your output map is in the epsg:27200 projection , then your given extents (-180, -90, 180, 90) are not correct. Those are the geographic coordinates (ie longitudes and latitudes) but you want to specify the extent in the NZ grid. - matt On 9/9/07, Terence Maru wrote: > > > > Hi all, I have added a projection to the map object (see attached php > script). I have also attached the postgis table describe. The postgis > describe shows that the table "parcels" has a constraint check on the_geom > (column) that the srid is 27200 (NZ Mapping Grid). Does this mean that the > database has the correct projection? I have added in the mapscript the line > "$map->setProjection('init=epsg:27200');", my understanding > is that this sets the correct projection for the map object? Do I need to > set the projection for the layer object too? Im still getting a blank > image. I thought it might have something to do with the extents if my > projections are correct? Still reasearching though. Thanks in advance. > > > Indexes: > "parcels_pkey" PRIMARY KEY, btree (gid) > "gist_index" gist (the_geom) > Check constraints: > "enforce_dims_the_geom" CHECK (ndims(the_geom) = 2) > "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = > 'MULTIPOLYGON'::text OR the_geom IS NULL) > "enforce_srid_the_geom" CHECK (srid(the_geom) = 27200) > > > $map = ms_newMapObj(""); > //$map->set("debug", MS_TRUE); > $map->setSize(600, 300); > $map->setExtent(-180, -90, 180, 90); > > //define path where to creat image > $map->web->set("imagepath", "./data/"); > $map->web->set("imageurl", "./data/"); > $map->web->set("log", "./data/logfile.txt"); > $map->setProjection('init=epsg:27200'); > > //crate parcel layer, associate it withthe map > $parcelLayer = ms_newLayerObj($map); > $parcelLayer->set("connectiontype", MS_POSTGIS); > $parcelLayer->set("name", "parcels layer"); > > $connector = "user=user dbname=dbname host=localhost"; > $parcelLayer->set("connection", $connector); > > $sql = "the_geom from parcels"; > $parcelLayer->set("data", $sql); > > $parcelLayer->set("status", MS_DEFAULT); > $parcelLayer->set("type", MS_LAYER_POLYGON); > //$parcelLayer->set("debug", MS_ON); > > $parcelClass = ms_newClassObj($parcelLayer); > $parcelClass->set("name", "parcels class"); > > $parcelStyle = ms_newStyleObj($parcelClass); > $parcelStyle->color->setRGB( 250, 0, 0); > $parcelStyle->outlinecolor->setRGB( 255, 255, 255); > //$parcelStyle->set("symbol", 7); > $parcelStyle->set("symbolname", "circle"); > //$parcelStyle->set("size", 6); > $parcelStyle->set("size", 10); > > > bm > > > > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor > Mosheh > Sent: Wednesday, 5 September 2007 12:02 p.m. > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] blank image > > Terence Maru wrote: > > Hi everyone, I have a problem generating an image from my postgis > > database I have attached my php script. No errors are returned when > > the script is run, just a blank image is returned. Can anyone see > > whats wrong with my script? Cheers > > This exact same question came up two days ago. 90% of the time, the issue is > projections. Ensure that all layers and the output map are in the same > projection, or else set projection blocks. 90% of the time, that fixes it. > > > -- > Gregor Mosheh / Greg Allensworth > 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 > ________________________________ > This e-mail message has been scanned for viruses by McAfee and the content > has been cleared by MailMarshal ________________________________ > -- Matthew T. Perry http://www.perrygeo.net "You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete" - R. Buckminster Fuller From mlinden at ZEELANDNET.NL Mon Sep 10 00:35:58 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 10 Sep 2007 09:35:58 +0200 Subject: Point data from SQL Server In-Reply-To: <67fe0b0709080613i61c79d7i9c741cc89ae93d6@mail.gmail.com> Message-ID: Hi Jerry! The best way to go for you is using a virtual format datasource like described on: http://www.gdal.org/ogr/drv_vrt.html This way you connect to your SQL server database like: ODBC:SQLSERVER CONNECTION worms wkbPoint WGS84 If this won't work, nothing will! Kind regards! Milo van der Linden > Hi, > > I have point data in SQL Server (X,Y Columns in a table), what is the best > way to display this in > mapserver..ideally without having to transform it to another data format. > > Thanks in advance > Jerry > Milo van der Linden SomaFM From pgiannini at BYTEWISE.IT Mon Sep 10 00:50:02 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Mon, 10 Sep 2007 09:50:02 +0200 Subject: Using mysql to generate map In-Reply-To: <902839.54899.qm@web30606.mail.mud.yahoo.com> Message-ID: http://mapserver.gis.umn.edu/docs/howto/ogrmysql bye .........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, Settembre 7, 2007 20:30, cool frenz wrote: > Hi, > I am using mysql db and php as mapscript on windows. In mysql db i have > got coordinates of the points thst i need to show on the map. I dont have > any base map (on which i can add point). What i mean to say is that i have > just point coordinates and nothing else( Except the extent and > projections). Now i want to read those points from the database and > display them on map and attaching some information with those individual > points (like labels and link to open pop up) Please let me know how it can > be done. > I tried searching for some documentation regarding using mysql as db but > couldnt find relevant document. If you have found one please let me know > the address. > > Thanks and Regards, > Piyush > > > --------------------------------- > Got a little couch potato? > Check out fun summer activities for kids. From bartvde at GMAIL.COM Mon Sep 10 02:23:41 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 10 Sep 2007 11:23:41 +0200 Subject: difference between shp2img and Mapserver Message-ID: Hi list, if I omit a NAME from a LAYER, shp2img will still draw the layer, but Mapserver will not draw it using &mode=map&layers=all. Would it not be better to generate an error/warning message saying the NAME is required in all cases? It took me quite a while to figure out what I was doing wrong ... :-) Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at GMAIL.COM Mon Sep 10 02:59:15 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 10 Sep 2007 11:59:15 +0200 Subject: scale difference in 5.0? Message-ID: Hi list, I was surprised to get a different scale back in 5.0 than in 4.8. I tracked it down to the following difference in mapscale.c: 4.8.4: md = width/(resolution*msInchesPerUnit(units, center_y)); /* was (width-1) */ 5.0: md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* remember, we use a pixel-center to pixel-center extent, hence the width-1 */ But PHP/Mapscript's zoomscale function does not seem to deal correctly with this new change: from Chameleon's map_navigator: // call the zoomscale function echo $nScale; $this->oSession->oMap->zoomscale($nScale, $oPixelPos, $this->oSession->oMap->width, $this->oSession->oMap->height, $oRect); echo '
'.$this->moMapObject->oMap->scale; will output: 4278
4287.52783964 Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorn at SPACETEC.NO Mon Sep 10 02:35:22 2007 From: jorn at SPACETEC.NO (=?utf-8?q?J=C3=B8rn_Vegard_R=C3=B8snes?=) Date: Mon, 10 Sep 2007 11:35:22 +0200 Subject: Google Earth with WMS support Message-ID: Hi, This may be old news for you... Google Earth v4.2 now supports WMS directly (no need of PHP, etc.) Add -> Image Overlay -> Refresh (tab) -> WMS parameters -> Add http://earth.google.com/userguide/v4/ug_imageoverlays.html#wms cheers J?rn Vegard From damien.corpataux at CAMPTOCAMP.COM Mon Sep 10 03:35:34 2007 From: damien.corpataux at CAMPTOCAMP.COM (Damien Corpataux) Date: Mon, 10 Sep 2007 12:35:34 +0200 Subject: Problem with long DATA object in an Oracle LAYER Message-ID: Hello List, I ran into memory corrption with a long sql query in the DATA object, for an Oracle LAYER. It is obviously due to Mapserver memory allocation mechanism. The corruption occurs when the DATA is longer than ca. 2037 characters. Do you know if Mapserver has a way of modifying the possible allocated memory limit? In header files? By applying a patch? Any idea is welcome! Thanks in advance, regards, Damien Corpataux -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Mon Sep 10 05:37:05 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 10 Sep 2007 09:37:05 -0300 Subject: Oracle Spatial problem In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B03569513@smbfnis-chi01.fnis.com> Message-ID: Hi David, The error: "OracleSpatial not supported" occurs whne the version of Mapserver that you are using don't contains the connection with OracleSpatial enabled. To fix this you have two ways, the first is use a version with this support, and the second is compile Mapserver by yourself. The blank image can occur because the objects from your layer was not inside of the extent that you defined. Another issue can be with OracleSpatial, how did you imported the data in database? Are you use shape or library? If yes, did you execute the SDO_MIGRATE.TO_CURRENT (you can find more info in the section 17 of the OracleSpatial manual)? I don't recommend to use the "*" in the data definition, like "select * from". Best regards. --------------------------------------------------- Fernando Simon UMN Mapserver and Oracle spatial developer Hunter, David - St. Louis Park, MN wrote: > > I am trying to set up MapServer CGI to run in Tomcat with Oracle > Spatial support. I got the cgi-bin set up and working, and then > created a test map file and HTML template. I have test data in .TAB > form and in Oracle 10g. When using the default libmap.dll from MS4W > 2.2.5, the .TAB layer displays OK, but when I add the Oracle layer it > displays the ?OracleSpatial not supported? message. When I copy the > libmap.dll from cgi-bin/ignored-libmap/oracle10g to cgi-bin, a totally > blank page is displayed, no matter what layer (.TAB and/or Oracle) I > use. It?s as if the template is not found or ignored. There are no > messages in the log file or anything else to diagnose the problem. > Anybody have any ideas? Here?s the map file I?m playing with: > > MAP > > IMAGETYPE PNG24 > > EXTENT -79.9 40.3 -71.6 45.1 > > SIZE 650 520 > > SHAPEPATH "roadbase/" > > SYMBOLSET "symbols/symbols35.sym" > > FONTSET "fonts/fonts.list" > > IMAGECOLOR 255 255 255 > > UNITS miles > > WEB > > IMAGEPATH "/Tomcat/webapps/ext-1.0.1/tmp/" > > IMAGEURL "/ext-1.0.1/tmp/" > > TEMPLATE "oratest.htm" > > LOG "/Tomcat/logs/mapserver.log" > > END > > LAYER > > NAME "Counties_Labels" > > CONNECTIONTYPE ogr > > CONNECTION "NYxxxxcb.tab" > > STATUS DEFAULT > > TYPE ANNOTATION > > LABELITEM "countyname" > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT arial > > SIZE 10 > > COLOR 128 128 128 > > OUTLINECOLOR 255 255 255 > > ANTIALIAS TRUE > > ANGLE auto > > FORCE false > > POSITION auto > > OFFSET 0 0 > > MINDISTANCE 335 > > END > > END > > END > > LAYER > > NAME "Counties" > > CONNECTIONTYPE ogr > > CONNECTION "NYxxxxcb.tab" > > STATUS DEFAULT > > TYPE POLYGON > > CLASS > > NAME "Counties" > > OUTLINECOLOR 128 128 128 > > SYMBOL "circle" > > SIZE 3 > > END > > END > > LAYER > > NAME "FireDistricts" > > STATUS DEFAULT > > TYPE POLYGON > > CONNECTIONTYPE oraclespatial > > CONNECTION "data/fngsdata at SLP" > > #DATA "GEOLOC FROM (SELECT * FROM locppc.us_1007 WHERE state = 'NY') > USING VERSION 10g" > > DATA "GEOLOC FROM locppc.us_1007 USING VERSION 10g" > > DUMP TRUE > > CLASS > > STYLE > > OUTLINECOLOR 0 0 0 > > COLOR 0 128 128 > > SYMBOL "circle" > > SIZE 1 > > END > > END > > END > > END > > *David S. Hunter* > /Sr. Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Financial > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > Email: david.hunter at fnf.com > Phone: 952.542.1440 ext. 256 > Fax: 952.542.3859/// > From damien.corpataux at CAMPTOCAMP.COM Mon Sep 10 03:35:34 2007 From: damien.corpataux at CAMPTOCAMP.COM (Damien Corpataux) Date: Mon, 10 Sep 2007 12:35:34 +0200 Subject: Problem with long DATA object in an Oracle LAYER Message-ID: Hello List, I ran into memory corrption with a long sql query in the DATA object, for an Oracle LAYER. It is obviously due to Mapserver memory allocation mechanism. The corruption occurs when the DATA is longer than ca. 2037 characters. Do you know if Mapserver has a way of modifying the possible allocated memory limit? In header files? By applying a patch? Any idea is welcome! Thanks in advance, regards, Damien Corpataux -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email? -------------- next part -------------- An HTML attachment was scrubbed... URL: From logon2varun at YAHOO.COM Mon Sep 10 06:26:43 2007 From: logon2varun at YAHOO.COM (Varun Sahni) Date: Mon, 10 Sep 2007 06:26:43 -0700 Subject: Reg. using Map Server as a viewer Message-ID: Hi, Any help regarding this Regards, Varun Varun Sahni wrote: Date: Thu, 6 Sep 2007 06:13:32 -0700 From: Varun Sahni Subject: [UMN_MAPSERVER-USERS] Reg. using Map Server as a viewer To: MAPSERVER-USERS at LISTS.UMN.EDU Hi, Does Map Server serves the purpose of a viewer also for files generated by AutoCAD? If so, what file format it supports? Thanks and Regards, Varun --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --------------------------------- Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at GMAIL.COM Mon Sep 10 06:42:06 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Mon, 10 Sep 2007 08:42:06 -0500 Subject: Reg. using Map Server as a viewer In-Reply-To: <908500.3492.qm@web45016.mail.sp1.yahoo.com> Message-ID: On 9/10/07, Varun Sahni wrote: > Hi, > Any help regarding this > A question like this is too basic, and is likely to go unanswered. I will try and provide an answer below, but that may not be enough for you. If you want to use MapServer purely as a viewer, and by that, it seems to imply that you want to use it as a desktop viewer (one person), then it is really not the right product. Try looking at QGIS or uDig. MapServer, as the name implies, is a server, and getting it going takes a bit more than insignificant work, usually worth it in a server type demand situation. Whether or not any of these products can read AutoCad data, look at the docs. AutoCad data come in many different formats... which one were you interested in? The docs of any of the above products will tell you. As I said above, you will have to look at your own data formats and then look at the docs of the products you are considering. Good luck. > > Varun Sahni wrote: > Date: Thu, 6 Sep 2007 06:13:32 -0700 > From: Varun Sahni > Subject: [UMN_MAPSERVER-USERS] Reg. using Map Server as a viewer > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Hi, > Does Map Server serves the purpose of a viewer also for files generated by > AutoCAD? > > If so, what file format it supports? > > Thanks and Regards, > Varun > ________________________________ > Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. > > > ________________________________ > Park yourself in front of a world of choices in alternative vehicles. > Visit the Yahoo! Auto Green Center. > > -- 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/ Summer 2007 S&T Policy Fellow, The National Academies http://www.nas.edu/ From warmerdam at POBOX.COM Mon Sep 10 07:23:24 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 10 Sep 2007 10:23:24 -0400 Subject: difference between shp2img and Mapserver In-Reply-To: <1ebb87870709100223q2ff2d2c3sf0e5009f419cdba@mail.gmail.com> Message-ID: Bart van den Eijnden wrote: > Hi list, > > if I omit a NAME from a LAYER, shp2img will still draw the layer, but > Mapserver will not draw it using &mode=map&layers=all. > > Would it not be better to generate an error/warning message saying the > NAME is required in all cases? > > It took me quite a while to figure out what I was doing wrong ... :-) Bart, Is this behavior new in 5.0? If not, then I would encourage you to file a ticket on the issue, and hopefully something can be done for 5.0.1 or 5.2. If this behavior is new in 5.0 then we need to know immediately so we can consider fixing it before the next RC. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at MAPGEARS.COM Mon Sep 10 07:23:37 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 10 Sep 2007 10:23:37 -0400 Subject: scale difference in 5.0? In-Reply-To: <1ebb87870709100259j5844c6eh2bccaa540ddd958d@mail.gmail.com> Message-ID: Hi Bart, I have created a ticket about this and will check now: http://trac.osgeo.org/mapserver/ticket/2300 Daniel Bart van den Eijnden wrote: > Hi list, > > I was surprised to get a different scale back in 5.0 than in 4.8. I > tracked it down to the following difference in mapscale.c: > > 4.8.4: > md = width/(resolution*msInchesPerUnit(units, center_y)); /* was > (width-1) */ > > 5.0: > md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* > remember, we use a pixel-center to pixel-center extent, hence the width-1 */ > > > But PHP/Mapscript's zoomscale function does not seem to deal correctly > with this new change: > > from Chameleon's map_navigator: > > // call the zoomscale function > echo $nScale; > $this->oSession->oMap->zoomscale($nScale, $oPixelPos, > $this->oSession->oMap->width, $this->oSession->oMap->height, > $oRect); > echo '
'.$this->moMapObject->oMap->scale; > > > will output: > > 4278
4287.52783964 > > Best regards, > Bart > -- Daniel Morissette http://www.mapgears.com/ From bartvde at GMAIL.COM Mon Sep 10 07:46:21 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 10 Sep 2007 16:46:21 +0200 Subject: difference between shp2img and Mapserver In-Reply-To: <46E5535C.3050302@pobox.com> Message-ID: Hi Frank, this will also present in 4.8.4 and 4.10.2. I've opened the following bug: http://trac.osgeo.org/mapserver/ticket/2301#preview and set the target to FUTURE. Feel free to update to 5.0.1 or 5.2 if appropriate. Best regards, Bart On 9/10/07, Frank Warmerdam wrote: > > Bart van den Eijnden wrote: > > Hi list, > > > > if I omit a NAME from a LAYER, shp2img will still draw the layer, but > > Mapserver will not draw it using &mode=map&layers=all. > > > > Would it not be better to generate an error/warning message saying the > > NAME is required in all cases? > > > > It took me quite a while to figure out what I was doing wrong ... :-) > > Bart, > > Is this behavior new in 5.0? If not, then I would encourage you to file a > ticket on the issue, and hopefully something can be done for 5.0.1 or 5.2. > > If this behavior is new in 5.0 then we need to know immediately so we can > consider fixing it before the next RC. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmanuel.belo at CAMPTOCAMP.COM Mon Sep 10 08:23:44 2007 From: emmanuel.belo at CAMPTOCAMP.COM (Emmanuel BELO) Date: Mon, 10 Sep 2007 17:23:44 +0200 Subject: Problem with long DATA object in an Oracle LAYER In-Reply-To: <46E51DF6.3030005@camptocamp.com> Message-ID: After some investigation, we could identify that this occurs only with an Oracle connector. It's not reproducible with a PostGIS connection. Here our testcase outline: LAYER CONNECTION "user/password at myoracleoracle9instance" CONNECTIONTYPE ORACLESPATIAL DATA "[Put a query larger than 2037 characters here]" METADATA END NAME "oracle_test_layer" PROJECTION "init=epsg:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS METADATA END STYLE ANGLE 360 OUTLINECOLOR 255 0 0 END END END You can build a large sql query by adding a lot of "always true" clauses, or by padding it with a lot of spaces eg. shape from (select shape from my_table where 'djfksdhfjkdsf' = 'djfksdhfjkdsf' and 'djfksdhfjkdsf' = 'djfksdhfjkdsf' [...]) Best regards, Emmanuel BELO Damien Corpataux wrote: > Hello List, > > I ran into memory corrption with a long sql query in the DATA object, > for an Oracle LAYER. It is obviously due to Mapserver memory allocation > mechanism. The corruption occurs when the DATA is longer than ca. 2037 > characters. > > Do you know if Mapserver has a way of modifying the possible allocated > memory limit? In header files? By applying a patch? > > Any idea is welcome! > > > Thanks in advance, regards, > Damien Corpataux -- Camptocamp SA Emmanuel BELO PSE A CH-1015 Lausanne +41 21 619 10 25 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) From lged_morris at HOTMAIL.COM Mon Sep 10 08:45:06 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Mon, 10 Sep 2007 17:45:06 +0200 Subject: Mapserver 5 expressions Message-ID: Hi again. I still have problem with expressions with 2 or more values. In Mapserver 4 I use: ...&map_fastvisa_class_expression=([FNR]=210176493 OR [FNR]=210176494).. In Mapserver 5 I use: In the Map-file: . . EXPRESSION ([FNR]=%fasokex%) . . and in the URL .....&fasokex=210176493&.... but how to use 2 or more values in Mapserver 5?? The whole URL is like: http://172.20.1.218/cgi-bin/mapserv5b5/mapserv.exe?map=C:\\Iis-Webbplatser\\BoM\\Byggmiljo\\mapserverapps\\ejfonster2007\\BMNStartintra2003cli.map&hussokex=210176493&mapext=1551957+6714299+1552357+6714699&behorig=A,B,N&pixlar=51.6&zoomsize=4&zoomdir=0&layer=Komm&layer=vatt&layer=Vag4&layer=Gatt&layer=regen&layer=polrit&layer=lmvhojd&layer=lmvtext&layer=magro&layer=lmvhus&layer=lmvvatt&layer=lmvkraft&layer=orto&layer=fastvisa&layer=uthus&layer=bohus&mapsize=900+630&layer=pktrit&map_pktrit_feature_points=1552157+6714499&map_pktrit_feature_text=&map.layer[pktrit]=FEATURE+POINTS+1552157+6714499+END+END&program=/cgi-bin/mapserv5b5/mapserv.exe&imgxy=450+315&fasokex=210176493 Lars-G?ran Edholm _________________________________________________________________ Vad h?nder p? modefronten? http://salongk.msn.se/ From fsimon at UNIVALI.BR Mon Sep 10 08:54:18 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 10 Sep 2007 12:54:18 -0300 Subject: Problem with long DATA object in an Oracle LAYER In-Reply-To: <46E56180.5000204@camptocamp.com> Message-ID: Hi all, I will investigate the problem. I believe that it's relate with the msSplitData function in the driver source code. Thanks for the reply about the error. Best regards. --------------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer Emmanuel BELO wrote: > After some investigation, we could identify that this occurs only with > an Oracle connector. It's not reproducible with a PostGIS connection. > > Here our testcase outline: > > > LAYER > CONNECTION "user/password at myoracleoracle9instance" > CONNECTIONTYPE ORACLESPATIAL > DATA "[Put a query larger than 2037 characters here]" > METADATA > END > NAME "oracle_test_layer" > PROJECTION > "init=epsg:4326" > END > SIZEUNITS PIXELS > STATUS ON > TOLERANCEUNITS PIXELS > TYPE POLYGON > UNITS METERS > CLASS > METADATA > END > STYLE > ANGLE 360 > OUTLINECOLOR 255 0 0 > END > END > END > > You can build a large sql query by adding a lot of "always true" > clauses, or by padding it with a lot of spaces > eg. shape from (select shape from my_table where 'djfksdhfjkdsf' = > 'djfksdhfjkdsf' and 'djfksdhfjkdsf' = 'djfksdhfjkdsf' [...]) > > > Best regards, > > Emmanuel BELO > > > > Damien Corpataux wrote: > >> Hello List, >> >> I ran into memory corrption with a long sql query in the DATA object, >> for an Oracle LAYER. It is obviously due to Mapserver memory allocation >> mechanism. The corruption occurs when the DATA is longer than ca. 2037 >> characters. >> >> Do you know if Mapserver has a way of modifying the possible allocated >> memory limit? In header files? By applying a patch? >> >> Any idea is welcome! >> >> >> Thanks in advance, regards, >> Damien Corpataux >> > > From andreas.albarello at TERRITORIUMONLINE.COM Mon Sep 10 09:03:02 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Mon, 10 Sep 2007 18:03:02 +0200 Subject: Mapserver 5 expressions In-Reply-To: Message-ID: Lars-G?ran Edholm wrote: > I still have problem with expressions with 2 or more values. > In Mapserver 4 I use: > ...&map_fastvisa_class_expression=([FNR]=210176493 OR [FNR]=210176494).. > > In Mapserver 5 I use: > > In the Map-file: > EXPRESSION ([FNR]=%fasokex%) > > and in the URL > .....&fasokex=210176493&.... > but how to use 2 or more values in Mapserver 5?? Lars, try this: EXPRESSION ([FNR] IN '%fasokex%') URL: ...&fasokex=210176493,210176494&... Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From andreas.albarello at TERRITORIUMONLINE.COM Mon Sep 10 09:13:29 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Mon, 10 Sep 2007 18:13:29 +0200 Subject: Problem with long DATA object in an Oracle LAYER In-Reply-To: <46E51DF6.3030005@camptocamp.com> Message-ID: Damien Corpataux wrote: > Hello List, > > I ran into memory corrption with a long sql query in the DATA object, > for an Oracle LAYER. It is obviously due to Mapserver memory allocation > mechanism. The corruption occurs when the DATA is longer than ca. 2037 > characters. > > Do you know if Mapserver has a way of modifying the possible allocated > memory limit? In header files? By applying a patch? > > Any idea is welcome! Damien, replace all occurrences of table_name[2000] with table_name[n] (where n is the maximum data statement length you would like to have) in maporaclespatial.c. That should fix it. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From emmanuel.belo at CAMPTOCAMP.COM Mon Sep 10 09:28:00 2007 From: emmanuel.belo at CAMPTOCAMP.COM (Emmanuel BELO) Date: Mon, 10 Sep 2007 18:28:00 +0200 Subject: Problem with long DATA object in an Oracle LAYER In-Reply-To: <46E568AA.7080701@univali.br> Message-ID: Hi Fernando, thank you for investigating. We need this for a project, where it is not possible to use PostGIS. Do you have an idea how long it would take to fix the problem? Can we help you in some manner? Best regards, Emmanuel Fernando Simon wrote: > Hi all, > I will investigate the problem. I believe that it's relate with the > msSplitData function in the driver source code. > Thanks for the reply about the error. > Best regards. > > --------------------------------------------------------- > Fernando Simon > UMN Mapserver and Oracle Spatial developer > > Emmanuel BELO wrote: >> After some investigation, we could identify that this occurs only with >> an Oracle connector. It's not reproducible with a PostGIS connection. >> >> Here our testcase outline: >> >> >> LAYER >> CONNECTION "user/password at myoracleoracle9instance" >> CONNECTIONTYPE ORACLESPATIAL >> DATA "[Put a query larger than 2037 characters here]" >> METADATA >> END >> NAME "oracle_test_layer" >> PROJECTION >> "init=epsg:4326" >> END >> SIZEUNITS PIXELS >> STATUS ON >> TOLERANCEUNITS PIXELS >> TYPE POLYGON >> UNITS METERS >> CLASS >> METADATA >> END >> STYLE >> ANGLE 360 >> OUTLINECOLOR 255 0 0 >> END >> END >> END >> >> You can build a large sql query by adding a lot of "always true" >> clauses, or by padding it with a lot of spaces >> eg. shape from (select shape from my_table where 'djfksdhfjkdsf' = >> 'djfksdhfjkdsf' and 'djfksdhfjkdsf' = 'djfksdhfjkdsf' [...]) >> >> >> Best regards, >> >> Emmanuel BELO >> >> >> >> Damien Corpataux wrote: >> >>> Hello List, >>> >>> I ran into memory corrption with a long sql query in the DATA object, >>> for an Oracle LAYER. It is obviously due to Mapserver memory allocation >>> mechanism. The corruption occurs when the DATA is longer than ca. 2037 >>> characters. >>> >>> Do you know if Mapserver has a way of modifying the possible allocated >>> memory limit? In header files? By applying a patch? >>> >>> Any idea is welcome! >>> >>> >>> Thanks in advance, regards, >>> Damien Corpataux >>> >> >> > -- Camptocamp SA Emmanuel BELO PSE A CH-1015 Lausanne +41 21 619 10 25 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) From docterrobert at MSN.COM Mon Sep 10 09:44:06 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Mon, 10 Sep 2007 11:44:06 -0500 Subject: latlong issues Message-ID: Hi. I posted last week about trying to get an image that I already have to be displayed on a layer with help from a world file. That all works. Now, I have new questions. My world file is using the UTM projection. The tricky part now is that I need to specify in my map file the extent in latitudes and longitudes. I have the appropriate geocodes, and I know that a world file and extent are lower left x,y then top right x,y and that an image is top left x,y then bottom right x,y. So I have all that compensated for, otherwise I wouldn't have gotten it working in meters for UTM as my extent. I've tried entering in the geocodes as the extent for the MAP object. That didn't work. So, I figured "I'm using UTM in my world file. Maybe I need to specify latlong projection for the MAP object." That didn't work either. I then tried adding that same projection to the one layer that I have. No luck. The image comes up blank once again. And yes, I've read the section on rasters. My questions: How do I switch from using Meters as my extent to geocodes? Do I need to use UTM for my world file? Every example I've seen on the net uses UTM. I've tried geocodes for the world file, but gdalinfo indicates that the corner coordinates are totally off. The .php file is nothing special or elaborate. It just simply creates the image and draws it. My world file: 1 0.0000000000 0.0000000000 -1 393898.00 4438945.00 My map file (I have the projections commented out as well as the EXTENT in METERS that worked) MAP NAME UniversityOfIllinois STATUS ON SIZE 1747 1916 IMAGETYPE GIF #image is 1747 X 1916 pixels #PROJECTION # "proj=latlong" # "ellps=WGS84" # "datum=NAD83" #END #EXTENT 393897.50 4437029.50 395644.50 4438945.50 #UNITS METERS EXTENT 40.071888 -88.244698 40.094110 -88.217468 SHAPEPATH "/var/www/mapserver/basic/data/illinois/" IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME thegif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGB EXTENSION "gif" END OUTPUTFORMAT NAME thepng DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB IMAGEPATH "/var/www/mapserver/basic/images/" IMAGEURL "/mapserver/basic/images/" END LAYER NAME "UofI" DATA "colorUofIllinois.gif" TYPE RASTER STATUS DEFAULT #PROJECTION # "proj=latlong" # "ellps=WGS84" # "datum=NAD83" #END END END Any extra info needed: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help would be spectacular. Thanks advance. - Chris _________________________________________________________________ Gear up for Halo? 3 with free downloads and an exclusive offer. It?s our way of saying thanks for using Windows Live?. http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmanuel.belo at CAMPTOCAMP.COM Mon Sep 10 10:06:45 2007 From: emmanuel.belo at CAMPTOCAMP.COM (Emmanuel BELO) Date: Mon, 10 Sep 2007 19:06:45 +0200 Subject: epsg:21781 In-Reply-To: <015901c7f097$f572fc30$2d01a8c0@newsviluppo> Message-ID: Hi Francesco, change your epsg file: <21781> +proj=somerc +lat_0=46d57'08.66"N +lon_0=7d26'22.50"E +ellps=bessel +x_0=600000 +y_0=200000 +towgs84=674.374,15.056,405.346 +units=m +k_0=1 +no_defs <> Best regards, Emmanuel BELO Francesco Sozzi wrote: > Hi all, > > I need projection "init=epsg:21781" but it is not supported. > What I have to do to fix?... > > Best regards > > Francesco -- Camptocamp SA Emmanuel BELO PSE A CH-1015 Lausanne +41 21 619 10 25 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) From wef1 at CEC.WUSTL.EDU Mon Sep 10 10:26:37 2007 From: wef1 at CEC.WUSTL.EDU (Edward Fialkowski) Date: Mon, 10 Sep 2007 12:26:37 -0500 Subject: how to add tags to WFS GML output Message-ID: Hi List, I've got a WFS serving data from a postgis database. I'm hoping it's possible to add a gml tag based on another column that is in the database. For example, oid | description | geometry | value 1 | Point A | geometry... | 100 retrieving both the description and the value would be great Point A 100 for each feature in the WFS. Does anyone know if this is possible or roughly how to accomplish this? Thanks! -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Sep 10 10:48:48 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 10 Sep 2007 13:48:48 -0400 Subject: latlong issues In-Reply-To: Message-ID: Chris - First, I think you?re using ?geocodes? in an unusual way, and I?m not really sure what you mean by it. ?Geocode? is a verb that means ?take some data (like street addresses) and turn it into geographic coordinates (like lat/lon)?. The process is called geocoding. You?re using it as a noun and I really can?t figure out just what you mean. If you can give some examples that would be helpful. The EXTENT of your map must be specified in the units and coordinates of the output projection of your map image. While you can combine lat/lon data and UTM data in multiple layers, your output map image must be one projection. As I recall, you were taking a UTM source raster and producing a UTM output image. That?s fine. Do you want to change that? I would discourage you strongly from changing your output projection, as UTM is an excellent choice for your application. Your raster map image shows a certain portion of the world, at a certain resolution/scale, in a particular projection. Your world file documents this information so applications can use it. You can?t modify your image by playing with the world file ? the world file either accurately describes the raster image, or it?s wrong. I think you had a correct world file for your raster layer already; if so, don?t touch it ? you can only make it incorrect. If you can explain a little about what your geocodes are and how you need to display them we can probably help. If I?m missing the boat please try to explain what it is you?re trying to go (in non-technical terms). - Ed -- Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com From: Christopher Harris Reply-To: Christopher Harris Date: Mon, 10 Sep 2007 11:44:06 -0500 To: Subject: [UMN_MAPSERVER-USERS] latlong issues Hi. I posted last week about trying to get an image that I already have to be displayed on a layer with help from a world file. That all works. Now, I have new questions. My world file is using the UTM projection. The tricky part now is that I need to specify in my map file the extent in latitudes and longitudes. I have the appropriate geocodes, and I know that a world file and extent are lower left x,y then top right x,y and that an image is top left x,y then bottom right x,y. So I have all that compensated for, otherwise I wouldn't have gotten it working in meters for UTM as my extent. I've tried entering in the geocodes as the extent for the MAP object. That didn't work. So, I figured "I'm using UTM in my world file. Maybe I need to specify latlong projection for the MAP object." That didn't work either. I then tried adding that same projection to the one layer that I have. No luck. The image comes up blank once again. And yes, I've read the section on rasters. My questions: How do I switch from using Meters as my extent to geocodes? Do I need to use UTM for my world file? Every example I've seen on the net uses UTM. I've tried geocodes for the world file, but gdalinfo indicates that the corner coordinates are totally off. The .php file is nothing special or elaborate. It just simply creates the image and draws it. My world file: 1 0.0000000000 0.0000000000 -1 393898.00 4438945.00 My map file (I have the projections commented out as well as the EXTENT in METERS that worked) MAP NAME UniversityOfIllinois STATUS ON SIZE 1747 1916 IMAGETYPE GIF #image is 1747 X 1916 pixels #PROJECTION # "proj=latlong" # "ellps=WGS84" # "datum=NAD83" #END #EXTENT 393897.50 4437029.50 395644.50 4438945.50 #UNITS METERS EXTENT 40.071888 -88.244698 40.094110 -88.217468 SHAPEPATH "/var/www/mapserver/basic/data/illinois/" IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME thegif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGB EXTENSION "gif" END OUTPUTFORMAT NAME thepng DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB IMAGEPATH "/var/www/mapserver/basic/images/" IMAGEURL "/mapserver/basic/images/" END LAYER NAME "UofI" DATA "colorUofIllinois.gif" TYPE RASTER STATUS DEFAULT #PROJECTION # "proj=latlong" # "ellps=WGS84" # "datum=NAD83" #END END END Any extra info needed: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help would be spectacular. Thanks advance. - Chris Gear up for Halo? 3 and get a $25 Best Buy gift card. It?s our way of saying thanks for using Windows Live?. Get it now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From RMcCulley at COUNTY24.COM Mon Sep 10 12:39:25 2007 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Mon, 10 Sep 2007 13:39:25 -0600 Subject: Agg and resampling Message-ID: Okay, I've finally had a moment to sit down and look at this again. I'm using the latest version of ms4w beta, which is based on beta 6. On all of my imagery, tiled or not, using the processing setting of "RESAMPLE=BILINEAR" results in the raster layer not being drawn. There are no error messages, and a map image is created, but the raster layer is not drawn. Using either "RESAMPLE=NEAREST" and "RESAMPLE=AVERAGE" results in the layer being drawn fine. If I switch to using GD for output, then "RESAMPLE=BILINEAR" works as it should, and the raster layer is drawn. Anyone else run into this? Rob McCulley ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Rob McCulley Sent: Thursday, August 30, 2007 1:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Agg and resampling Hi All, Agg doesn't seem to be able to use resampling in tiled raster layers. This is my raster layer: LAYER # Aerials_2003 NAME Aerials_2003 GROUP RemoteSensing TILEINDEX "Aerials_2003.shp" TILEITEM "location" STATUS DEFAULT TYPE RASTER PROCESSING "RESAMPLE=BILINEAR" OPACITY 70 MAXSCALEDENOM 75000 DEBUG ON END and this is my output format: OUTPUTFORMAT NAME "AGG_JPEG" DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION QUALITY=80 END Then the raster layer does not draw. There are no errors at all, but no raster layer. If I comment the PROCESSING line out, then the raster layer appears. If I leave the PROCESSING line in, and change the output format to GD/JPEG, then the raster layer appears. The output of shp2img with debug level set to 2 with the PROCESSING line and agg output is: msDrawRasterLayerLow(Aerials_2003): entering. msResampleGDALToMap in effect: cellsize = 1.000000 msDrawGDAL(Aerials_2003): using RAW_WINDOW=6244 2998 914 913 msDrawGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawMap(): Layer 0 (Aerials_2003), 0.172s msDrawMap(): Layer 1 (ParcelLines), 0.016s msDrawMap(): Layer 2 (CadastralLabelsParcel), 0.015s msDrawMap(): Layer 6 (Pipes), 0.016s msDrawMap(): Layer 7 (Abandoned_Pipes), 0.015s msDrawMap(): Layer 8 (New_Pipes), 0.000s msDrawMap(): Layer 9 (ForeignPipelines), 0.016s msDrawMap(): Layer 10 (TapStations), 0.016s msDrawMap(): Layer 11 (RegStations), 0.015s msDrawMap(): Layer 12 (Wells), 0.016s msDrawMap(): Layer 13 (Major-Water), 0.016s msDrawMap(): Layer 14 (Minor-Water), 0.015s msDrawMap(): Drawing Label Cache, 0.016s msDrawMap() total time: 0.344s It appears to be resampling the image, but the raster layer doesn't appear. Is this a bug, or am I missing a setting somewhere? Thanks, Rob McCulley -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Mon Sep 10 13:05:57 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 10 Sep 2007 16:05:57 -0400 Subject: [UMN_MAPSERVER-DEV] MapServer 5.0.0-rc2 released Message-ID: Hi everyone, A few issues have been found and fixed in MapServer 5.0.0-rc1 from last week so we are releasing MapServer 5.0.0-rc2 now. The source package is available at: http://mapserver.gis.umn.edu/download/beta The page above also contains links to binary distributions. They should be updated with binaries for this beta in the next few days. The MS4W (Windows) binaries should be updated to this version today as well. If no critical issue is found in this release candidate, then we will officially release MapServer 5.0.0 next week. Thanks a lot to all those who have tested previous betas/rc and have reported their results, either via the list or directly in Trac (bug tracker). That helps a lot... please keep testing and sending feedback. The complete list of changes/fixes since rc1 is included at the bottom of this email. More details about the MapServer 5.0 release can be found in the 5.0 release plan at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Daniel Version 5.0.0-rc2 (2007-09-10) ------------------------------ - Prevent seg fault in msWMSLoadGetMapParams when request is missing (#2299) - Fixed calculation of scale in PHP MapScript mapObj.zoomScale() (#2300) - Fixed conflict between runtime substitution validation and qstring validation. - Fixed agg configure logic (now should work with --with-agg alone) (#2295) - Fixed interleaving of multi-band results for raster query (#2294). From warmerdam at POBOX.COM Mon Sep 10 13:30:13 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 10 Sep 2007 16:30:13 -0400 Subject: Agg and resampling In-Reply-To: <8563B9D6767C904A912272A2D56548E41A5AA7@vermilion.County24.local> Message-ID: Rob McCulley wrote: > Okay, > > > > I?ve finally had a moment to sit down and look at this again. I?m using > the latest version of ms4w beta, which is based on beta 6. On all of my > imagery, tiled or not, using the processing setting of > ?RESAMPLE=BILINEAR? results in the raster layer not being drawn. There > are no error messages, and a map image is created, but the raster layer > is not drawn. Using either ?RESAMPLE=NEAREST? and ?RESAMPLE=AVERAGE? > results in the layer being drawn fine. If I switch to using GD for > output, then ?RESAMPLE=BILINEAR? works as it should, and the raster > layer is drawn. Rob, I have determined this is indeed a bug in mapresample.c (checking for _USE_AGG instead of USE_AGG) and is present in the current release candidate (RC2). I have created a bug report for this issue, and will apply a fix this afternoon. Whether it makes it into MapServer 5.0 final or not depends on whether we have enough issues to justify another RC go-around. http://trac.osgeo.org/mapserver/ticket/2303 Thanks for the specific report - it made it very easy for me to find the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From lged_morris at HOTMAIL.COM Mon Sep 10 13:46:05 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Mon, 10 Sep 2007 22:46:05 +0200 Subject: Mapserver 5 expressions In-Reply-To: <46E56AB6.20202@territoriumonline.com> Message-ID: Hi again! Many thanks to eas Albarello for the solution of my problem. It works well even as a filter. Finally I can move my applications to Mapserver 5. Lars-G?ran Edholm >From: Andreas Albarello >Reply-To: Andreas Albarello >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver 5 expressions >Date: Mon, 10 Sep 2007 18:03:02 +0200 > >Lars-G?ran Edholm wrote: >>I still have problem with expressions with 2 or more values. >>In Mapserver 4 I use: >>...&map_fastvisa_class_expression=([FNR]=210176493 OR [FNR]=210176494).. >> >>In Mapserver 5 I use: >> >>In the Map-file: >>EXPRESSION ([FNR]=%fasokex%) >> >>and in the URL >>.....&fasokex=210176493&.... >>but how to use 2 or more values in Mapserver 5?? > >Lars, > >try this: > >EXPRESSION ([FNR] IN '%fasokex%') > >URL: ...&fasokex=210176493,210176494&... > > >Best regards, >-- >-------------------------------------------------------------------- >Andreas Albarello >Analysis & SW Development > >Territorium Online srl/GmbH >Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen >email: andreas.albarello at territoriumonline.com >web: www.territoriumonline.com >-------------------------------------------------------------------- _________________________________________________________________ Fixa idolst?mning i mobilen! http://msn2.cellus.se/?page=ringtones&type=&categoryId=8791 From rogaete at YAHOO.COM.BR Mon Sep 10 15:56:09 2007 From: rogaete at YAHOO.COM.BR (Rodrigo Gaete) Date: Mon, 10 Sep 2007 15:56:09 -0700 Subject: getResult problems Message-ID: Hello Mapserver users I'm using a structure to fetch all registers associated to a shape. But the fuction returns $numResults times the same record, as shown in the example: John => House02 Mary => House02 Peter => House02 The fuction returns: John => House02 John => House02 John => House02 Using the PHP/Mapscript: ************ ********* ********* *** for ($i = 0; $i < $numResults; $i++) { $result = $msLayer->getResult($i) ; $shape = $msLayer->getShape($result->tileindex, $result->shapeindex); $results[] = $shape; } ************ ********* ********* *** Can anyone help me? I'm using Postgres/Postgis to store the information and Mapserver 4.10 and PHP 5.2.1 Regards, Rodrigo Gaete. Flickr agora em portugu?s. Voc? clica, todo mundo v?. http://www.flickr.com.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From terence at WAIROADC.GOVT.NZ Mon Sep 10 16:17:23 2007 From: terence at WAIROADC.GOVT.NZ (Terence Maru) Date: Tue, 11 Sep 2007 11:17:23 +1200 Subject: blank image In-Reply-To: A<5383fa5e0709091943l801d64fl4e3759ddebb45321@mail.gmail.com> Message-ID: Hi Matt, thanks for the explanation. The projection for the output map is in (NZ Mapping Grid = 27200) this is set using mapscript - is this correct? $map = ms_newMapObj(""); $map->setProjection('init=epsg:27200'); The projection for the layer is not set using mapscript. The layer information comes from a postgis database. When I imported the data into the postgres/postgis database I set the srid. This is validated from describing the parcels table - Is this correct, should I be using mapscript to set the projection in the map file for this layer? Check constraints: "enforce_dims_the_geom" CHECK (ndims(the_geom) = 2) "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL) "enforce_srid_the_geom" CHECK (srid(the_geom) = 27200) To find the correct extents from the postgis database I used this sql statement - Is this correct select extent(the_geom) from parcels; extent --------------------------------------------- BOX(2825539.75 6199758.5,2942387.5 6283728) (1 row) I then set the extent in the map file using mapscript $map->setExtent(2825539.75, 6199758.5, 2942387.5, 6283728); Image was still blank. I think I will set the projection in the layer and see how that goes, any help would be much appreciated. Thanks in advance for the help. bm -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Matthew Perry Sent: Monday, 10 September 2007 2:44 p.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] blank image Terence, There are three separate issues: 1. What projection is your output map in? This is the projection of the overall map, presumably the NZ grid. 2. What projection is your data in? This is the projection assigned to your layer. If different than #1, it must be assigned and the data will be reprojected on-the-fly. 3. What is the extent in the output map projection? Use this to set the map extents. If your output map is in the epsg:27200 projection , then your given extents (-180, -90, 180, 90) are not correct. Those are the geographic coordinates (ie longitudes and latitudes) but you want to specify the extent in the NZ grid. - matt On 9/9/07, Terence Maru wrote: > > > > Hi all, I have added a projection to the map object (see attached php > script). I have also attached the postgis table describe. The > postgis describe shows that the table "parcels" has a constraint check > on the_geom > (column) that the srid is 27200 (NZ Mapping Grid). Does this mean > that the database has the correct projection? I have added in the > mapscript the line "$map->setProjection('init=epsg:27200');", my > understanding is that this sets the correct projection for the map > object? Do I need to set the projection for the layer object too? Im > still getting a blank image. I thought it might have something to do > with the extents if my projections are correct? Still reasearching though. Thanks in advance. > > > Indexes: > "parcels_pkey" PRIMARY KEY, btree (gid) > "gist_index" gist (the_geom) > Check constraints: > "enforce_dims_the_geom" CHECK (ndims(the_geom) = 2) > "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = > 'MULTIPOLYGON'::text OR the_geom IS NULL) > "enforce_srid_the_geom" CHECK (srid(the_geom) = 27200) > $map = ms_newMapObj(""); > //$map->set("debug", MS_TRUE); $map->setSize(600, 300); > $map->setExtent(-180, -90, 180, 90); > > //define path where to creat image > $map->web->set("imagepath", "./data/"); $map->web->set("imageurl", > "./data/"); $map->web->set("log", "./data/logfile.txt"); > $map->setProjection('init=epsg:27200'); > > //crate parcel layer, associate it withthe map $parcelLayer = > ms_newLayerObj($map); $parcelLayer->set("connectiontype", MS_POSTGIS); > $parcelLayer->set("name", "parcels layer"); > > $connector = "user=user dbname=dbname host=localhost"; > $parcelLayer->set("connection", $connector); > > $sql = "the_geom from parcels"; > $parcelLayer->set("data", $sql); > > $parcelLayer->set("status", MS_DEFAULT); $parcelLayer->set("type", > MS_LAYER_POLYGON); //$parcelLayer->set("debug", MS_ON); > > $parcelClass = ms_newClassObj($parcelLayer); $parcelClass->set("name", > "parcels class"); > > $parcelStyle = ms_newStyleObj($parcelClass); > $parcelStyle->color->setRGB( 250, 0, 0); > $parcelStyle->outlinecolor->setRGB( 255, 255, 255); > //$parcelStyle->set("symbol", 7); $parcelStyle->set("symbolname", > "circle"); //$parcelStyle->set("size", 6); $parcelStyle->set("size", > 10); > > bm > > > > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh > Sent: Wednesday, 5 September 2007 12:02 p.m. > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] blank image > > Terence Maru wrote: > > Hi everyone, I have a problem generating an image from my postgis > > database I have attached my php script. No errors are returned > > when the script is run, just a blank image is returned. Can anyone > > see whats wrong with my script? Cheers > > This exact same question came up two days ago. 90% of the time, the > issue is projections. Ensure that all layers and the output map are in > the same projection, or else set projection blocks. 90% of the time, that fixes it. > > > -- > Gregor Mosheh / Greg Allensworth > 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 > ________________________________ > This e-mail message has been scanned for viruses by McAfee and the > content has been cleared by MailMarshal > ________________________________ > -- Matthew T. Perry http://www.perrygeo.net "You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete" - R. Buckminster Fuller ##################################################################################### This e-mail message has been scanned for Viruses by McAfee and content has been cleared by MailMarshal ##################################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvanulden at GMAIL.COM Mon Sep 10 16:56:23 2007 From: jvanulden at GMAIL.COM (Joost van Ulden) Date: Mon, 10 Sep 2007 16:56:23 -0700 Subject: GetLegendGraphic WMS/SLD Message-ID: Hi all, Does MapServer cascade GetLegendGraphic requests? If not, has anyone worked around this issue? Cheers and thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From terence at WAIROADC.GOVT.NZ Mon Sep 10 17:57:25 2007 From: terence at WAIROADC.GOVT.NZ (Terence Maru) Date: Tue, 11 Sep 2007 12:57:25 +1200 Subject: blank image Message-ID: Hi All, I have got it to work, first off the extent was wrong, I found this by executing the sql "select extent(the_geom) from parcels" in my postgis database. The last thing to address was the setting $parcelLayer->set("status", MS_DEFAULT); Which I assume is MS_OFF, I changed this setting to MS_ON and it worked. Thanks everyone for helping me work through this problem. bm > ______________________________________________ > From: Terence Maru > Sent: Tuesday, 11 September 2007 11:17 a.m. > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] blank image > > > Hi Matt, thanks for the explanation. > > The projection for the output map is in (NZ Mapping Grid = 27200) this > is set using mapscript - is this correct? > $map = ms_newMapObj(""); > $map->setProjection('init=epsg:27200'); > > The projection for the layer is not set using mapscript. The layer > information comes from a postgis database. When I imported the data > into the postgres/postgis database I set the srid. This is validated > from describing the parcels table - Is this correct, should I be using > mapscript to set the projection in the map file for this layer? > Check constraints: > "enforce_dims_the_geom" CHECK (ndims(the_geom) = 2) > "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = > 'MULTIPOLYGON'::text OR the_geom IS NULL) > "enforce_srid_the_geom" CHECK (srid(the_geom) = 27200) > > To find the correct extents from the postgis database I used this sql > statement - Is this correct > select extent(the_geom) from parcels; > > extent > --------------------------------------------- > BOX(2825539.75 6199758.5,2942387.5 6283728) > (1 row) > > I then set the extent in the map file using mapscript > $map->setExtent(2825539.75, 6199758.5, 2942387.5, 6283728); > > Image was still blank. I think I will set the projection in the layer > and see how that goes, any help would be much appreciated. Thanks in > advance for the help. > > bm > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Matthew Perry > Sent: Monday, 10 September 2007 2:44 p.m. > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] blank image > > Terence, > > There are three separate issues: > > 1. What projection is your output map in? This is the projection of > the overall map, presumably the NZ grid. > > 2. What projection is your data in? This is the projection assigned to > your layer. If different than #1, it must be assigned and the data > will be reprojected on-the-fly. > > 3. What is the extent in the output map projection? Use this to set > the map extents. If your output map is in the epsg:27200 projection , > then your given extents (-180, -90, 180, 90) are not correct. Those > are the geographic coordinates (ie longitudes and latitudes) but you > want to specify the extent in the NZ grid. > > > - matt > > On 9/9/07, Terence Maru wrote: > > > > > > > > Hi all, I have added a projection to the map object (see attached > php > > script). I have also attached the postgis table describe. The > > postgis describe shows that the table "parcels" has a constraint > check > > on the_geom > > (column) that the srid is 27200 (NZ Mapping Grid). Does this mean > > that the database has the correct projection? I have added in the > > mapscript the line "$map->setProjection('init=epsg:27200');", my > > understanding is that this sets the correct projection for the map > > object? Do I need to set the projection for the layer object too? > Im > > still getting a blank image. I thought it might have something to > do > > with the extents if my projections are correct? Still reasearching > though. Thanks in advance. > > > > > > Indexes: > > "parcels_pkey" PRIMARY KEY, btree (gid) > > "gist_index" gist (the_geom) > > Check constraints: > > "enforce_dims_the_geom" CHECK (ndims(the_geom) = 2) > > "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = > > 'MULTIPOLYGON'::text OR the_geom IS NULL) > > "enforce_srid_the_geom" CHECK (srid(the_geom) = 27200) > > $map = ms_newMapObj(""); > > //$map->set("debug", MS_TRUE); $map->setSize(600, 300); > > $map->setExtent(-180, -90, 180, 90); > > > > //define path where to creat image > > $map->web->set("imagepath", "./data/"); $map->web->set("imageurl", > > "./data/"); $map->web->set("log", "./data/logfile.txt"); > > $map->setProjection('init=epsg:27200'); > > > > //crate parcel layer, associate it withthe map $parcelLayer = > > ms_newLayerObj($map); $parcelLayer->set("connectiontype", > MS_POSTGIS); > > $parcelLayer->set("name", "parcels layer"); > > > > $connector = "user=user dbname=dbname host=localhost"; > > $parcelLayer->set("connection", $connector); > > > > $sql = "the_geom from parcels"; > > $parcelLayer->set("data", $sql); > > > > $parcelLayer->set("status", MS_DEFAULT); $parcelLayer->set("type", > > MS_LAYER_POLYGON); //$parcelLayer->set("debug", MS_ON); > > > > $parcelClass = ms_newClassObj($parcelLayer); > $parcelClass->set("name", > > "parcels class"); > > > > $parcelStyle = ms_newStyleObj($parcelClass); > > $parcelStyle->color->setRGB( 250, 0, 0); > > $parcelStyle->outlinecolor->setRGB( 255, 255, 255); > > //$parcelStyle->set("symbol", 7); $parcelStyle->set("symbolname", > > "circle"); //$parcelStyle->set("size", 6); $parcelStyle->set("size", > > 10); > > > > bm > > > > > > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh > > Sent: Wednesday, 5 September 2007 12:02 p.m. > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] blank image > > > > Terence Maru wrote: > > > Hi everyone, I have a problem generating an image from my postgis > > > database I have attached my php script. No errors are returned > > > when the script is run, just a blank image is returned. Can > anyone > > > see whats wrong with my script? Cheers > > > > This exact same question came up two days ago. 90% of the time, the > > issue is projections. Ensure that all layers and the output map are > in > > the same projection, or else set projection blocks. 90% of the time, > that fixes it. > > > > > > -- > > Gregor Mosheh / Greg Allensworth > > 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 > > ________________________________ > > This e-mail message has been scanned for viruses by McAfee and the > > content has been cleared by MailMarshal > > ________________________________ > > > > > -- > Matthew T. Perry > http://www.perrygeo.net > > "You never change things by fighting the existing reality. > To change something, build a new model that makes the existing model > obsolete" - R. Buckminster Fuller > > ##################################################################################### This e-mail message has been scanned for Viruses by McAfee and content has been cleared by MailMarshal ##################################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Mon Sep 10 21:03:19 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 11 Sep 2007 01:03:19 -0300 Subject: Odd query result In-Reply-To: <8434d0ad0709101230v354d27e4i522a7c614d63ada7@mail.gmail.com> Message-ID: thanks Oscar. i'll try it as soon as i get to work. about query code, i'm using GMap code. 2007/9/10, Oscar ^_^ : > > Hello again Eduardo. > > I can see You use for every class a template so that mean for every shape > that has values for each class it returns this values. > > I think You must use just a main template because You call the same > template for every class so when shape has values for 2 fields (I think must > be unique for use a class for every shape but maybe u've got more than one > value for each shape) Mapserver returns this values for your query. > > Try something like this: > > LAYER > NAME Solos_AL > METADATA > "DESCRIPTION" "Solos" > "RESULT_FIELDS" "Leg_solos" > "RESULT_HEADERS" "C?digo" > END > LABELITEM "Leg_solos" > LABELCACHE ON > TYPE POLYGON > STATUS OFF > DATA Solos_AL > CLASSITEM "Leg_solos" > TOLERANCE 0 #<-- I think you must put at least value 1 > TOLERANCEUNITS pixels > TEMPLATE "templates/template_solos.html" #<-- This is what I mean > CLASS > NAME "PA" > EXPRESSION "PA" > STYLE > COLOR 253 241 240 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > END > CLASS > NAME "PVA" > EXPRESSION "PVA" > STYLE > COLOR 249 210 205 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > END > CLASS > NAME "RL" > EXPRESSION "RL" > STYLE > COLOR 150 149 149 > OUTLINECOLOR 0 0 0 > END > LABEL > FONT sans > TYPE TRUETYPE > PARTIALS TRUE > SIZE 7 > OUTLINECOLOR 255 255 255 > END > END > . > . > . > END #Layer > > What about your code for query? it works fine? You can try debug your code > too. > > Hope it be helpful for You. > > > Oscar. > > > 2007/9/10, Eduardo Zenaide : > > > > hi Oscar! > > > > i'm using php/mapscript > > > > > > 2007/9/3, Oscar ^_^ : > > > > > > Can You give more information about what are u doing? > > > > > > Are you using mapscript or CGI or what? > > > > > > > > > > > > > > > 2007/9/1, Eduardo Zenaide : > > > > > > > > nobody? :( > > > > > > > > 2007/8/24, Eduardo Zenaide : > > > > > > > > > > hi all, > > > > > > > > > > i'm experiencing something odd here. > > > > > i have a soil layer with some IDs. its dbf is something like: > > > > > > > > > > leg_solos > > > > > > > > > > PVA > > > > > PA > > > > > RL > > > > > SX > > > > > RL > > > > > RY > > > > > RR > > > > > ... > > > > > > > > > > when i do the query, using ROSA i click in a RL polygon. it > > > > > returns: > > > > > > > > > > SX > > > > > RR > > > > > RL > > > > > PA > > > > > PA > > > > > PVA > > > > > PVA > > > > > RY > > > > > RY > > > > > > > > > > any other polygon returns same results - only changes the one in > > > > > query and, sometimes, PAs appear above. like: > > > > > > > > > > SX > > > > > RR > > > > > PA > > > > > PA > > > > > SX > > > > > PVA > > > > > PVA > > > > > RY > > > > > RY > > > > > > > > > > (when querying SX polygon) > > > > > > > > > > here a visual example: http://www.uep.cnps.embrapa.br/imagens/queryexemplo.jpg > > > > > > > > > > > > > > > my map file (its really big, so i'm just sending relevant layer > > > > > and classes): > > > > > > > > > > LAYER > > > > > NAME Solos_AL > > > > > METADATA > > > > > "DESCRIPTION" "Solos" > > > > > "RESULT_FIELDS" "Leg_solos" > > > > > "RESULT_HEADERS" "C?digo" > > > > > END > > > > > LABELITEM "Leg_solos" > > > > > LABELCACHE ON > > > > > TYPE POLYGON > > > > > STATUS OFF > > > > > DATA Solos_AL > > > > > CLASSITEM "Leg_solos" > > > > > TOLERANCE 0 > > > > > TOLERANCEUNITS pixels > > > > > CLASS > > > > > NAME "PA" > > > > > EXPRESSION "PA" > > > > > STYLE > > > > > COLOR 253 241 240 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > LABEL > > > > > FONT sans > > > > > TYPE TRUETYPE > > > > > PARTIALS TRUE > > > > > SIZE 7 > > > > > OUTLINECOLOR 255 255 255 > > > > > END > > > > > TEMPLATE "templates/template_solos.html" > > > > > END > > > > > CLASS > > > > > NAME "PVA" > > > > > EXPRESSION "PVA" > > > > > STYLE > > > > > COLOR 249 210 205 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > LABEL > > > > > FONT sans > > > > > TYPE TRUETYPE > > > > > PARTIALS TRUE > > > > > SIZE 7 > > > > > OUTLINECOLOR 255 255 255 > > > > > END > > > > > TEMPLATE "templates/template_solos.html" > > > > > END > > > > > CLASS > > > > > NAME "RL" > > > > > EXPRESSION "RL" > > > > > STYLE > > > > > COLOR 150 149 149 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > LABEL > > > > > FONT sans > > > > > TYPE TRUETYPE > > > > > PARTIALS TRUE > > > > > SIZE 7 > > > > > OUTLINECOLOR 255 255 255 > > > > > END > > > > > TEMPLATE "templates/template_solos.html" > > > > > END > > > > > CLASS > > > > > NAME "RY" > > > > > EXPRESSION "RY" > > > > > STYLE > > > > > COLOR 238 235 220 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > LABEL > > > > > FONT sans > > > > > TYPE TRUETYPE > > > > > PARTIALS TRUE > > > > > SIZE 7 > > > > > OUTLINECOLOR 255 255 255 > > > > > END > > > > > TEMPLATE "templates/template_solos.html" > > > > > END > > > > > CLASS > > > > > NAME "RR" > > > > > EXPRESSION "RR" > > > > > STYLE > > > > > COLOR 207 206 206 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > LABEL > > > > > FONT sans > > > > > TYPE TRUETYPE > > > > > PARTIALS TRUE > > > > > SIZE 7 > > > > > OUTLINECOLOR 255 255 255 > > > > > END > > > > > TEMPLATE "templates/template_solos.html" > > > > > END > > > > > CLASS > > > > > NAME "SX" > > > > > EXPRESSION "SX" > > > > > STYLE > > > > > COLOR 181 214 174 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > LABEL > > > > > FONT sans > > > > > TYPE TRUETYPE > > > > > PARTIALS TRUE > > > > > SIZE 7 > > > > > OUTLINECOLOR 255 255 255 > > > > > END > > > > > TEMPLATE "templates/template_solos.html" > > > > > END > > > > > END # layer Solos_final_dd > > > > > > > > > > ######################## > > > > > > > > > > any thoughts? > > > > > > > > > > thanks :) > > > > > > > > > > > > > > > -- > > > > > Eduardo Zenaide > > > > > > > > > > > > > > > > > > > > -- > > > > Eduardo Zenaide > > > > > > > > > > > > > > > -- > > > Oscar ^_ > > > > > > > > > > -- > > Eduardo Zenaide > > > > > -- > Oscar ^_ -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at HYDROTEC.DE Tue Sep 11 00:41:31 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Tue, 11 Sep 2007 09:41:31 +0200 Subject: Antwort: Re: [UMN_MAPSERVER-USERS] Problem with long DATA object in an Oracle LAYER In-Reply-To: <46E57090.7020807@camptocamp.com> Message-ID: Hi Emmanuell If your project is stuck with this problem: In cases like this, I always try to avoid long SQL-statements in mapfiles anyway. Instead I put the complexity in a view and use in the mapfile just this view. Benedikt Rothe UMN MapServer Users List schrieb am 10.09.2007 18:28:00: > Hi Fernando, > > thank you for investigating. We need this for a project, where it is not > possible to use PostGIS. > > Do you have an idea how long it would take to fix the problem? Can we > help you in some manner? > > Best regards, > > Emmanuel > > > > > > Fernando Simon wrote: > > Hi all, > > I will investigate the problem. I believe that it's relate with the > > msSplitData function in the driver source code. > > Thanks for the reply about the error. > > Best regards. > > > > --------------------------------------------------------- > > Fernando Simon > > UMN Mapserver and Oracle Spatial developer > > > > Emmanuel BELO wrote: > >> After some investigation, we could identify that this occurs only with > >> an Oracle connector. It's not reproducible with a PostGIS connection. > >> > >> Here our testcase outline: > >> > >> > >> LAYER > >> CONNECTION "user/password at myoracleoracle9instance" > >> CONNECTIONTYPE ORACLESPATIAL > >> DATA "[Put a query larger than 2037 characters here]" > >> METADATA > >> END > >> NAME "oracle_test_layer" > >> PROJECTION > >> "init=epsg:4326" > >> END > >> SIZEUNITS PIXELS > >> STATUS ON > >> TOLERANCEUNITS PIXELS > >> TYPE POLYGON > >> UNITS METERS > >> CLASS > >> METADATA > >> END > >> STYLE > >> ANGLE 360 > >> OUTLINECOLOR 255 0 0 > >> END > >> END > >> END > >> > >> You can build a large sql query by adding a lot of "always true" > >> clauses, or by padding it with a lot of spaces > >> eg. shape from (select shape from my_table where 'djfksdhfjkdsf' = > >> 'djfksdhfjkdsf' and 'djfksdhfjkdsf' = 'djfksdhfjkdsf' [...]) > >> > >> > >> Best regards, > >> > >> Emmanuel BELO > >> > >> > >> > >> Damien Corpataux wrote: > >> > >>> Hello List, > >>> > >>> I ran into memory corrption with a long sql query in the DATA object, > >>> for an Oracle LAYER. It is obviously due to Mapserver memory allocation > >>> mechanism. The corruption occurs when the DATA is longer than ca. 2037 > >>> characters. > >>> > >>> Do you know if Mapserver has a way of modifying the possible allocated > >>> memory limit? In header files? By applying a patch? > >>> > >>> Any idea is welcome! > >>> > >>> > >>> Thanks in advance, regards, > >>> Damien Corpataux > >>> > >> > >> > > > > -- > Camptocamp SA > Emmanuel BELO > PSE A > CH-1015 Lausanne > > +41 21 619 10 25 (direct) > +41 21 619 10 10 (centrale) > +41 21 619 10 00 (fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.corpataux at CAMPTOCAMP.COM Tue Sep 11 01:34:30 2007 From: damien.corpataux at CAMPTOCAMP.COM (Damien Corpataux) Date: Tue, 11 Sep 2007 10:34:30 +0200 Subject: Problem with long DATA object in an Oracle LAYER In-Reply-To: <46E56D29.7020405@territoriumonline.com> Message-ID: Andreas Albarello wrote: > Damien Corpataux wrote: >> Hello List, >> >> I ran into memory corrption with a long sql query in the DATA object, >> for an Oracle LAYER. It is obviously due to Mapserver memory >> allocation mechanism. The corruption occurs when the DATA is longer >> than ca. 2037 characters. >> >> Do you know if Mapserver has a way of modifying the possible >> allocated memory limit? In header files? By applying a patch? >> >> Any idea is welcome! > > Damien, > > replace all occurrences of table_name[2000] with table_name[n] (where > n is the maximum data statement length you would like to have) in > maporaclespatial.c. That should fix it. > > Best regards, Hello Andreas, Thanks for the Tip! It works! I suppose that the default limit (2000) is a good compromise for memory_usage/use_cases_coverage, so let's patch the source when a project needs it (and perhaps buy some more RAM for the server :-)) Thanks a lot for the precious help, regards, Damien -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email? -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.corpataux at CAMPTOCAMP.COM Tue Sep 11 01:38:24 2007 From: damien.corpataux at CAMPTOCAMP.COM (Damien Corpataux) Date: Tue, 11 Sep 2007 10:38:24 +0200 Subject: Antwort: Re: [UMN_MAPSERVER-USERS] Problem with long DATA object in an Oracle LAYER In-Reply-To: Message-ID: Hi Benedikt, Thanks for the tip. My problem is that the queries are highly dynamic. Using views would imply view managment (creation, cleanup). I'll keep that idea if I run into problem with Andreas' solution. Thanks, and regards, Damien Corpataux Benedikt Rothe wrote: > > Hi Emmanuell > > If your project is stuck with this problem: In cases like this, I > always try to avoid long SQL-statements in mapfiles > anyway. Instead I put the complexity in a view and use in the mapfile > just this view. > > Benedikt Rothe > > UMN MapServer Users List schrieb am > 10.09.2007 18:28:00: > > > Hi Fernando, > > > > thank you for investigating. We need this for a project, where it is not > > possible to use PostGIS. > > > > Do you have an idea how long it would take to fix the problem? Can we > > help you in some manner? > > > > Best regards, > > > > Emmanuel > > > > > > > > > > > > Fernando Simon wrote: > > > Hi all, > > > I will investigate the problem. I believe that it's relate with the > > > msSplitData function in the driver source code. > > > Thanks for the reply about the error. > > > Best regards. > > > > > > --------------------------------------------------------- > > > Fernando Simon > > > UMN Mapserver and Oracle Spatial developer > > > > > > Emmanuel BELO wrote: > > >> After some investigation, we could identify that this occurs only > with > > >> an Oracle connector. It's not reproducible with a PostGIS connection. > > >> > > >> Here our testcase outline: > > >> > > >> > > >> LAYER > > >> CONNECTION "user/password at myoracleoracle9instance" > > >> CONNECTIONTYPE ORACLESPATIAL > > >> DATA "[Put a query larger than 2037 characters here]" > > >> METADATA > > >> END > > >> NAME "oracle_test_layer" > > >> PROJECTION > > >> "init=epsg:4326" > > >> END > > >> SIZEUNITS PIXELS > > >> STATUS ON > > >> TOLERANCEUNITS PIXELS > > >> TYPE POLYGON > > >> UNITS METERS > > >> CLASS > > >> METADATA > > >> END > > >> STYLE > > >> ANGLE 360 > > >> OUTLINECOLOR 255 0 0 > > >> END > > >> END > > >> END > > >> > > >> You can build a large sql query by adding a lot of "always true" > > >> clauses, or by padding it with a lot of spaces > > >> eg. shape from (select shape from my_table where 'djfksdhfjkdsf' = > > >> 'djfksdhfjkdsf' and 'djfksdhfjkdsf' = 'djfksdhfjkdsf' [...]) > > >> > > >> > > >> Best regards, > > >> > > >> Emmanuel BELO > > >> > > >> > > >> > > >> Damien Corpataux wrote: > > >> > > >>> Hello List, > > >>> > > >>> I ran into memory corrption with a long sql query in the DATA > object, > > >>> for an Oracle LAYER. It is obviously due to Mapserver memory > allocation > > >>> mechanism. The corruption occurs when the DATA is longer than > ca. 2037 > > >>> characters. > > >>> > > >>> Do you know if Mapserver has a way of modifying the possible > allocated > > >>> memory limit? In header files? By applying a patch? > > >>> > > >>> Any idea is welcome! > > >>> > > >>> > > >>> Thanks in advance, regards, > > >>> Damien Corpataux > > >>> > > >> > > >> > > > > > > > -- > > Camptocamp SA > > Emmanuel BELO > > PSE A > > CH-1015 Lausanne > > > > +41 21 619 10 25 (direct) > > +41 21 619 10 10 (centrale) > > +41 21 619 10 00 (fax) -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovidio at PLANETEK.IT Tue Sep 11 03:43:46 2007 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 11 Sep 2007 12:43:46 +0200 Subject: DXF Message-ID: Hi! Does the last release of MapServer read a DXF file natively without CONNECTIONTYPE OGR or POSTGIS ?? Thanks -- Fabio D'Ovidio WEBGIS Software Engineer Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 9644200 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- From dmorissette at MAPGEARS.COM Tue Sep 11 05:03:41 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 11 Sep 2007 08:03:41 -0400 Subject: DXF In-Reply-To: <46E68D82.921.B1B9BD@dovidio.planetek.it> Message-ID: Fabio D'Ovidio wrote: > Hi! > Does the last release of MapServer read a DXF file natively without CONNECTIONTYPE > OGR or POSTGIS ?? > No, MapServer doesn't read DXF natively nor via any connectiontype that I'm aware of. OGR has a DXF driver but the doc says it supports only writing to DXF/DWG but doesn't support reading: http://gdal.org/ogr/drv_dxfdwg.html Daniel -- Daniel Morissette http://www.mapgears.com/ From bartvde at GMAIL.COM Tue Sep 11 06:58:16 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 11 Sep 2007 15:58:16 +0200 Subject: 5.0: change in PIXMAP SIZE? Message-ID: Hi list, I just spent half of my day finding out why an SLD with external graphics did not work anymore with 5.0, something like: msGeometryGIF'. '1.0 I used a PointSymbolizer with Size 1 and this results in something like: STYLE ANGLE 360 COLOR 0 0 0 SIZE 1 SYMBOL "....." END In Mapserver 4.10 this used to draw the symbol in its native size/dimension, but in 5.0 this does not work anymore, i.e. I do not see anything in the map. If I change Size to 17 (the size in pixels of the image used), the SLD works fine again. Was this change intentional? Anyways, I guess this should be documented in the migration guide :-) ? Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at GMAIL.COM Tue Sep 11 07:08:26 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 11 Sep 2007 16:08:26 +0200 Subject: 5.0: change in PIXMAP SIZE? In-Reply-To: <1ebb87870709110658m4088c666s3e3bc05f8764c109@mail.gmail.com> Message-ID: Something additional, Mapserver does not comply with the SLD spec if you omit the Size in the SLD. The SLD 1.0 spec says: "The default size of an image format (such as GIF) is the inherent size of the image." but Mapserver seems to use a default of 6 pixels ... if (psSize && psSize->psChild && psSize->psChild->pszValue) psStyle->size = atoi(psSize->psChild->pszValue); else psStyle->size = 6; /* defualt value */ Best regards, Bart On 9/11/07, Bart van den Eijnden wrote: > > Hi list, > > I just spent half of my day finding out why an SLD with external graphics > did not work anymore with 5.0, something like: > > msGeometry '. > 'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" > xlink:href="'.$this->externalgraphic.'"/>GIF'. > '1.0 > > > I used a PointSymbolizer with Size 1 and this results in something like: > > STYLE > ANGLE 360 > COLOR 0 0 0 > SIZE 1 > SYMBOL "....." > END > > In Mapserver 4.10 this used to draw the symbol in its native > size/dimension, but in 5.0 this does not work anymore, i.e. I do not see > anything in the map. > > If I change Size to 17 (the size in pixels of the image used), the SLD > works fine again. > > Was this change intentional? Anyways, I guess this should be documented in > the migration guide :-) ? > > Best regards, > Bart > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Tue Sep 11 07:20:32 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 11 Sep 2007 08:20:32 -0600 Subject: strange problem with quadtree index In-Reply-To: Message-ID: On 9/4/07, Flavio Hendry wrote: > Hi Bart > > Did you try to convert the whole to MapInfo TAB (should be as fast as it > is the same indexing as the qix ...)? I found Flavio's comment interesting that qix and MapInfo TAB used the same type of index. Much of my data is in MapInfo format, and I have always converted to shp for use in MapServer. I did two quick tests and found that the shp/qix is still faster than the MapInfo TAB. I assume this is due to additional overhead of the OGR driver. My tests were on a layer with ~13000 polygons. One test 'zoomed out', showing most of the layer, the other test 'zoomed in' to just a few polygons. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From assefa at DMSOLUTIONS.CA Tue Sep 11 08:19:11 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 11 Sep 2007 11:19:11 -0400 Subject: 5.0: change in PIXMAP SIZE? In-Reply-To: <1ebb87870709110708h114ca1f9sb7a224747144cbce@mail.gmail.com> Message-ID: Bart, I have entered a bug on this 2305. I think the default pixel size for Markers is 6 and I assumed that it was the same for external symbols. I will update the code so that if size is omitted, the image size is used (I think that even just setting the size to -1 would force the rendering to get the image size before drawing). BTW there was no change in this regard in the SLD code for quite some time. Later, Bart van den Eijnden wrote: > Something additional, Mapserver does not comply with the SLD spec if you > omit the Size in the SLD. The SLD 1.0 spec says: > > "The default size of an image format (such as GIF) is the inherent size > of the image." > > but Mapserver seems to use a default of 6 pixels ... > > if (psSize && psSize->psChild && psSize->psChild->pszValue) > psStyle->size = atoi(psSize->psChild->pszValue); > else > psStyle->size = 6; /* defualt value */ > > Best regards, > Bart > > On 9/11/07, *Bart van den Eijnden* < bartvde at gmail.com > > wrote: > > Hi list, > > I just spent half of my day finding out why an SLD with external > graphics did not work anymore with 5.0, something like: > > msGeometry '. > 'xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:type="simple" > xlink:href="'.$this->externalgraphic.'"/>GIF'. > > '1.0 > > I used a PointSymbolizer with Size 1 and this results in something like: > > STYLE > ANGLE 360 > COLOR 0 0 0 > SIZE 1 > SYMBOL "....." > END > > In Mapserver 4.10 this used to draw the symbol in its native > size/dimension, but in 5.0 this does not work anymore, i.e. I do not > see anything in the map. > > If I change Size to 17 (the size in pixels of the image used), the > SLD works fine again. > > Was this change intentional? Anyways, I guess this should be > documented in the migration guide :-) ? > > Best regards, > Bart > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Josh.Hevenor at DPRA.COM Tue Sep 11 08:21:11 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Tue, 11 Sep 2007 10:21:11 -0500 Subject: Mapserver SDE 9.2 Question Message-ID: I had a quick question on using the msplugin_sde_92.dll to connect to an SDE service from mapserver. The SDE Notes from the README file state the following: As of Map Server 5.0 (including betas and release candidates), the following applies: Steps to Enable SDE 9.1 and 9.2 Support in MS4W's Map Server *********************************************************** 1. Make sure the ArcSDE? SDK dlls for 9.1 are available on... But it doesn't mention arcSDE 9.2 SDK dll's for connecting to a 9.2 service. Are the 9.1 dll's sufficient? I'm just working through my setup and thought I should clear this up as I go along. Thanks, Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Phone: 905-333-4544 ext. 19 Fax: 905-333-0455 Cell: 905-320-7525 Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3247 bytes Desc: image001.jpg URL: From hobu.inc at GMAIL.COM Tue Sep 11 08:43:04 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Tue, 11 Sep 2007 10:43:04 -0500 Subject: Mapserver SDE 9.2 Question In-Reply-To: <49B9846C39F25A4FA901064970861610C02283@mhk-ex1.ad.dpra.com> Message-ID: No, the 9.1 ArcSDE SDK dlls are not sufficient to connect to 9.2 with the 9.2 plugin. The plugins are linked against each specific version of the ArcSDE SDK and have to be matched. The use of plugins makes this less obnoxious than it was in the past, which required swapping out the entire libmap.dll, but it is still some hassle. The rules for ArcSDE MapServer connections are as follows: - If you have to connect to both ArcSDE X.1 and X.2 servers, use the X.2 version of the ArcSDE SDK. You can usually connect to a X.1 version server with X.2 version client DLLs without ill effect. - To connect to X.2 servers, you *have* to use X.2 versions of the ArcSDE SDK. - Do not use both the X.1 and X.2 versions of the plugins in the same MapServer map if you have to connect to both X.1 and X.2 version servers. Just use X.2. Howard On Sep 11, 2007, at 10:21 AM, Josh Hevenor wrote: > I had a quick question on using the msplugin_sde_92.dll to connect > to an SDE service from mapserver. The SDE Notes from the README > file state the following: > As of Map Server 5.0 (including betas and release > candidates), the following applies: > > Steps to Enable SDE 9.1 and 9.2 Support in MS4W's Map Server > > *********************************************************** > > 1. Make sure the ArcSDE? SDK dlls for 9.1 are available on? But > it doesn?t mention arcSDE 9.2 SDK dll?s for connecting to a 9.2 > service. Are the 9.1 dll?s sufficient? I?m just working through my > setup and thought I should clear this up as I go along. Thanks, > > > Josh Hevenor > Application Developer > ____________________________________________ > 5230 South Service Road > Burlington, Ontario > L7L 5K2 Canada > Phone: 905-333-4544 ext. 19 > Fax: 905-333-0455 > Cell: 905-320-7525 > Email: josh.hevenor at dpra.com > Internet: http://www.dpra.com > > > > > > > > Attention: > Privileged/Confidential Information may be contained in this > message. Disclosure to any person other than the named recipient is > unauthorized. If you are not the intended recipient, please delete > all copies of this information and kindly notify the sender by > reply email. Opinions, conclusions and other information in this > message that do not relate to the official business of DPRA shall > be understood as neither given nor endorsed by it. DPRA and any of > its subsidiaries reserve the right to monitor all e-mail > communications through its networks. Thank you. > > > > From Josh.Hevenor at DPRA.COM Tue Sep 11 08:58:00 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Tue, 11 Sep 2007 10:58:00 -0500 Subject: Mapserver SDE 9.2 Question In-Reply-To: Message-ID: That makes sense to me. It wouldn't hurt to update \ms4w\Apache\cgi-bin\ignored-libmap\sde9.1\README-sde.txt To mention the 9.2 DLL and possible remove the 9.1 reference from the folder name. Thanks for all your help, Josh -----Original Message----- From: Howard Butler [mailto:hobu.inc at gmail.com] Sent: Tuesday, September 11, 2007 11:43 AM To: Josh Hevenor Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: Mapserver SDE 9.2 Question No, the 9.1 ArcSDE SDK dlls are not sufficient to connect to 9.2 with the 9.2 plugin. The plugins are linked against each specific version of the ArcSDE SDK and have to be matched. The use of plugins makes this less obnoxious than it was in the past, which required swapping out the entire libmap.dll, but it is still some hassle. The rules for ArcSDE MapServer connections are as follows: - If you have to connect to both ArcSDE X.1 and X.2 servers, use the X.2 version of the ArcSDE SDK. You can usually connect to a X.1 version server with X.2 version client DLLs without ill effect. - To connect to X.2 servers, you *have* to use X.2 versions of the ArcSDE SDK. - Do not use both the X.1 and X.2 versions of the plugins in the same MapServer map if you have to connect to both X.1 and X.2 version servers. Just use X.2. Howard On Sep 11, 2007, at 10:21 AM, Josh Hevenor wrote: > I had a quick question on using the msplugin_sde_92.dll to connect > to an SDE service from mapserver. The SDE Notes from the README > file state the following: > As of Map Server 5.0 (including betas and release > candidates), the following applies: > > Steps to Enable SDE 9.1 and 9.2 Support in MS4W's Map Server > > *********************************************************** > > 1. Make sure the ArcSDE? SDK dlls for 9.1 are available on... But > it doesn't mention arcSDE 9.2 SDK dll's for connecting to a 9.2 > service. Are the 9.1 dll's sufficient? I'm just working through my > setup and thought I should clear this up as I go along. Thanks, > > > Josh Hevenor > Application Developer > ____________________________________________ > 5230 South Service Road > Burlington, Ontario > L7L 5K2 Canada > Phone: 905-333-4544 ext. 19 > Fax: 905-333-0455 > Cell: 905-320-7525 > Email: josh.hevenor at dpra.com > Internet: http://www.dpra.com > > > > > > > > Attention: > Privileged/Confidential Information may be contained in this > message. Disclosure to any person other than the named recipient is > unauthorized. If you are not the intended recipient, please delete > all copies of this information and kindly notify the sender by > reply email. Opinions, conclusions and other information in this > message that do not relate to the official business of DPRA shall > be understood as neither given nor endorsed by it. DPRA and any of > its subsidiaries reserve the right to monitor all e-mail > communications through its networks. Thank you. > > > > From jmckenna at DMSOLUTIONS.CA Tue Sep 11 09:11:08 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 11 Sep 2007 12:11:08 -0400 Subject: Mapserver SDE 9.2 Question In-Reply-To: <49B9846C39F25A4FA901064970861610C02296@mhk-ex1.ad.dpra.com> Message-ID: Josh Hevenor wrote: > That makes sense to me. It wouldn't hurt to update > > \ms4w\Apache\cgi-bin\ignored-libmap\sde9.1\README-sde.txt > > To mention the 9.2 DLL and possible remove the 9.1 reference from the > folder name. > > Thanks for all your help, > > Josh done. -- jeff From nsavard at MAPGEARS.COM Tue Sep 11 10:47:57 2007 From: nsavard at MAPGEARS.COM (Normand Savard) Date: Tue, 11 Sep 2007 13:47:57 -0400 Subject: MapServer 5.0-rc2 testing Message-ID: We are at the last stage of releasing MapServer. We need feedback from all platforms users to help us detect important issues. I created a questionnaire for you to report which feature you tested. You have to keep in mind that you don't have to test all the features listed in this questionnaire but only those you usually work with. If you didn't test a feature simply click the "Not tested" radio button. With a greater number of users testing some of the MapServer features we will end up with most features tested. Testing is a mean for you to have a better MapServer user product. So help us. To access the questionnaire you need to register on MapServer Web site: http://mapserver.gis.umn.edu/join_form You can find the questionnaire here: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/copy5_of_questionnaire.2007-08-06.6792918562 The ms4w package for Windows can be find here: http://www.maptools.org/ms4w/index.phtml?page=ROADMAP-dev.html The MapServer fgs package for Unix is located here: http://download.osgeo.org/mapserver/fgs-msx Norm From woklist at KYNGCHAOS.COM Tue Sep 11 11:48:39 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Tue, 11 Sep 2007 13:48:39 -0500 Subject: MapServer 5.0-rc2 testing In-Reply-To: <46E6D4CD.8040205@mapgears.com> Message-ID: And the MapServer OSX package is at my site: http://www.kyngchaos.com/software/unixport/mapserver ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From mlinden at ZEELANDNET.NL Tue Sep 11 12:47:30 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Tue, 11 Sep 2007 21:47:30 +0200 Subject: php Mapscript $Layer->getExtent returns strange BBOX Message-ID: Hello list! I have a postGIS layer from which I select a subset through the following php mapscript. $newLayer = ms_newLayerObj($map, $map->getLayerByName('original_layer')); $newLayer->set('data', '\'the geom from (select * from myLayer where F_id in (select F_id from anotherLayer where project_id=1)) as lppg USING UNIQUE F_id USING SRID=4326\''); //$newLayer->set('status', MS_ON); echo $newLayer->data; $rectObj = $newLayer->getExtent(); var_dump($rectObj); The vardump returns: { ["_handle_"]=> resource(47) of type (Unknown) ["minx"]=> float(-25000000) ["miny"]=> float(-25000000) ["maxx"]=> float(25000000) ["maxy"]=> float(25000000) } But I need coordinates in lat/lon wgs84? Any help kindly appreciated! -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas.albarello at TERRITORIUMONLINE.COM Tue Sep 11 13:10:39 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Tue, 11 Sep 2007 22:10:39 +0200 Subject: php Mapscript $Layer->getExtent returns strange BBOX In-Reply-To: <46E6F0D2.6000906@zeelandnet.nl> Message-ID: Milo van der Linden wrote: > $newLayer = ms_newLayerObj($map, $map->getLayerByName('original_layer')); > $newLayer->set('data', '\'the geom from (select * from myLayer where > F_id in (select F_id from anotherLayer where project_id=1)) as lppg > USING UNIQUE F_id USING SRID=4326\''); > //$newLayer->set('status', MS_ON); > echo $newLayer->data; > $rectObj = $newLayer->getExtent(); > > var_dump($rectObj); > > The vardump returns: > { ["_handle_"]=> resource(47) of type (Unknown) ["minx"]=> > float(-25000000) ["miny"]=> float(-25000000) ["maxx"]=> float(25000000) > ["maxy"]=> float(25000000) } > > But I need coordinates in lat/lon wgs84? Milo, the getExtent() call is not implemented for PostGIS layers and therefore always returns +/-FLT_MAX, which is +/-25000000. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From Josh.Hevenor at DPRA.COM Tue Sep 11 13:09:24 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Tue, 11 Sep 2007 15:09:24 -0500 Subject: Mapserver SDE 9.2 Question In-Reply-To: Message-ID: My installation is working well. I really appreciate all your help :) I had a quick question about symbolization for SDE layers. I made a sample map file based on my applications existing map file. I update a couple background layers to use our SDE services. Two of three of these layers work well and the third does not draw. This third layer (REGDIV) has a CLASSITEM set and a number of CLASSES defined. There is no error displayed, even with the -map_debug or -all_debug flags set. If I change the layer to use just one default class then the layer draws. I tried updating my CLASSITEM to use a full path, for example DIVID became GIS.DBO.REGDIV.DIVID but I received the following error: C:\ms4w\apps\sdedemo>shp2img -m gp.map -o gp.png msDrawMap(): Image handling error. Failed to draw layer named 'REGDIV'.
msSDELayerInitItemInfo(): SDE error. A specified CLASSITEM, FILTERITEM, or expression key cannot be found
My Layer looks like this LAYER NAME 'REGDIV' STATUS on TYPE POLYGON CONNECTIONTYPE PLUGIN PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" CONNECTION "matata,port:5252,GIS,sa,sa" PROCESSING 'CLOSE_CONNECTION=DEFER' DATA "GIS.DBO.REGDIV,Shape,dbo.DEFAULT" TOLERANCE 12 TRANSPARENCY 75 CLASSITEM 'GIS.DBO.REGDIV.DIVID' CLASS NAME 'West' EXPRESSION 'West' TEMPLATE 'null' STYLE COLOR 204 204 204 OUTLINECOLOR 5 5 5 END #STYLE END #CLASS CLASS NAME 'Ontario' EXPRESSION 'Ontario' TEMPLATE 'null' STYLE COLOR 204 204 204 OUTLINECOLOR 5 5 5 END #STYLE END #CLASS CLASS NAME 'Qu?bec' EXPRESSION 'Qu?bec' TEMPLATE 'null' STYLE COLOR 204 204 204 OUTLINECOLOR 5 5 5 END #STYLE END #CLASS CLASS NAME 'Atlantic' EXPRESSION 'Atlantic' TEMPLATE 'null' STYLE COLOR 246 197 103 OUTLINECOLOR 5 5 5 END #STYLE END #CLASS PROJECTION "init=epsg:4326" END END #LAYER What am I missing? Thanks again, Josh -----Original Message----- From: Howard Butler [mailto:hobu.inc at gmail.com] Sent: Tuesday, September 11, 2007 11:43 AM To: Josh Hevenor Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: Mapserver SDE 9.2 Question No, the 9.1 ArcSDE SDK dlls are not sufficient to connect to 9.2 with the 9.2 plugin. The plugins are linked against each specific version of the ArcSDE SDK and have to be matched. The use of plugins makes this less obnoxious than it was in the past, which required swapping out the entire libmap.dll, but it is still some hassle. The rules for ArcSDE MapServer connections are as follows: - If you have to connect to both ArcSDE X.1 and X.2 servers, use the X.2 version of the ArcSDE SDK. You can usually connect to a X.1 version server with X.2 version client DLLs without ill effect. - To connect to X.2 servers, you *have* to use X.2 versions of the ArcSDE SDK. - Do not use both the X.1 and X.2 versions of the plugins in the same MapServer map if you have to connect to both X.1 and X.2 version servers. Just use X.2. Howard On Sep 11, 2007, at 10:21 AM, Josh Hevenor wrote: > I had a quick question on using the msplugin_sde_92.dll to connect > to an SDE service from mapserver. The SDE Notes from the README > file state the following: > As of Map Server 5.0 (including betas and release > candidates), the following applies: > > Steps to Enable SDE 9.1 and 9.2 Support in MS4W's Map Server > > *********************************************************** > > 1. Make sure the ArcSDE? SDK dlls for 9.1 are available on... But > it doesn't mention arcSDE 9.2 SDK dll's for connecting to a 9.2 > service. Are the 9.1 dll's sufficient? I'm just working through my > setup and thought I should clear this up as I go along. Thanks, > > > Josh Hevenor > Application Developer > ____________________________________________ > 5230 South Service Road > Burlington, Ontario > L7L 5K2 Canada > Phone: 905-333-4544 ext. 19 > Fax: 905-333-0455 > Cell: 905-320-7525 > Email: josh.hevenor at dpra.com > Internet: http://www.dpra.com > > > > > > > > Attention: > Privileged/Confidential Information may be contained in this > message. Disclosure to any person other than the named recipient is > unauthorized. If you are not the intended recipient, please delete > all copies of this information and kindly notify the sender by > reply email. Opinions, conclusions and other information in this > message that do not relate to the official business of DPRA shall > be understood as neither given nor endorsed by it. DPRA and any of > its subsidiaries reserve the right to monitor all e-mail > communications through its networks. Thank you. > > > > From hobu.inc at GMAIL.COM Tue Sep 11 13:26:42 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Tue, 11 Sep 2007 15:26:42 -0500 Subject: Mapserver SDE 9.2 Question In-Reply-To: <49B9846C39F25A4FA901064970861610C02308@mhk-ex1.ad.dpra.com> Message-ID: Josh, Set MS_ERRORFILE as per MS RFC 28 to get debug output . When it queries the REGDIV layer, the SDE debug output should tell you what it thinks the names of the columns are. You should be able to then use that column name for the CLASSITEM. Howard On Sep 11, 2007, at 3:09 PM, Josh Hevenor wrote: > My installation is working well. I really appreciate all your help :) > > I had a quick question about symbolization for SDE layers. I made a > sample map file based on my applications existing map file. I > update a couple background layers to use our SDE services. Two of > three of these layers work well and the third does not draw. This > third layer (REGDIV) has a CLASSITEM set and a number of CLASSES > defined. There is no error displayed, even with the -map_debug or - > all_debug flags set. If I change the layer to use just one default > class then the layer draws. > > I tried updating my CLASSITEM to use a full path, for example DIVID > became GIS.DBO.REGDIV.DIVID but I received the following error: > > C:\ms4w\apps\sdedemo>shp2img -m gp.map -o gp.png > msDrawMap(): Image handling error. Failed to draw layer named > 'REGDIV'.
> msSDELayerInitItemInfo(): SDE error. A specified CLASSITEM, > FILTERITEM, or expression key cannot be found
> > My Layer looks like this > > LAYER > NAME 'REGDIV' > STATUS on > TYPE POLYGON > CONNECTIONTYPE PLUGIN > PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" > CONNECTION "matata,port:5252,GIS,sa,sa" > PROCESSING 'CLOSE_CONNECTION=DEFER' > > DATA "GIS.DBO.REGDIV,Shape,dbo.DEFAULT" > > TOLERANCE 12 > TRANSPARENCY 75 > > CLASSITEM 'GIS.DBO.REGDIV.DIVID' > > CLASS > NAME 'West' > EXPRESSION 'West' > TEMPLATE 'null' > STYLE > COLOR 204 204 204 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > CLASS > NAME 'Ontario' > EXPRESSION 'Ontario' > TEMPLATE 'null' > STYLE > COLOR 204 204 204 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > CLASS > NAME 'Qu?bec' > EXPRESSION 'Qu?bec' > TEMPLATE 'null' > STYLE > COLOR 204 204 204 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > CLASS > NAME 'Atlantic' > EXPRESSION 'Atlantic' > TEMPLATE 'null' > STYLE > COLOR 246 197 103 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > PROJECTION > "init=epsg:4326" > END > END #LAYER > > What am I missing? > > Thanks again, > > Josh > > -----Original Message----- > From: Howard Butler [mailto:hobu.inc at gmail.com] > Sent: Tuesday, September 11, 2007 11:43 AM > To: Josh Hevenor > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Mapserver SDE 9.2 Question > > No, the 9.1 ArcSDE SDK dlls are not sufficient to connect to 9.2 with > the 9.2 plugin. The plugins are linked against each specific > version of the ArcSDE SDK and have to be matched. The use of plugins > makes this less obnoxious than it was in the past, which required > swapping out the entire libmap.dll, but it is still some hassle. > > The rules for ArcSDE MapServer connections are as follows: > - If you have to connect to both ArcSDE X.1 and X.2 servers, use the > X.2 version of the ArcSDE SDK. You can usually connect to a X.1 > version server with X.2 version client DLLs without ill effect. > - To connect to X.2 servers, you *have* to use X.2 versions of the > ArcSDE SDK. > - Do not use both the X.1 and X.2 versions of the plugins in the same > MapServer map if you have to connect to both X.1 and X.2 version > servers. Just use X.2. > > Howard > > On Sep 11, 2007, at 10:21 AM, Josh Hevenor wrote: > >> I had a quick question on using the msplugin_sde_92.dll to connect >> to an SDE service from mapserver. The SDE Notes from the README >> file state the following: >> As of Map Server 5.0 (including betas and release >> candidates), the following applies: >> >> Steps to Enable SDE 9.1 and 9.2 Support in MS4W's Map Server >> >> *********************************************************** >> >> 1. Make sure the ArcSDE? SDK dlls for 9.1 are available on... But >> it doesn't mention arcSDE 9.2 SDK dll's for connecting to a 9.2 >> service. Are the 9.1 dll's sufficient? I'm just working through my >> setup and thought I should clear this up as I go along. Thanks, >> >> >> Josh Hevenor >> Application Developer >> ____________________________________________ >> 5230 South Service Road >> Burlington, Ontario >> L7L 5K2 Canada >> Phone: 905-333-4544 ext. 19 >> Fax: 905-333-0455 >> Cell: 905-320-7525 >> Email: josh.hevenor at dpra.com >> Internet: http://www.dpra.com >> >> >> >> >> >> >> >> Attention: >> Privileged/Confidential Information may be contained in this >> message. Disclosure to any person other than the named recipient is >> unauthorized. If you are not the intended recipient, please delete >> all copies of this information and kindly notify the sender by >> reply email. Opinions, conclusions and other information in this >> message that do not relate to the official business of DPRA shall >> be understood as neither given nor endorsed by it. DPRA and any of >> its subsidiaries reserve the right to monitor all e-mail >> communications through its networks. Thank you. >> >> >> >> > From wef1 at CEC.WUSTL.EDU Tue Sep 11 14:44:26 2007 From: wef1 at CEC.WUSTL.EDU (Edward Fialkowski) Date: Tue, 11 Sep 2007 16:44:26 -0500 Subject: NetCDF Reprojection, possible in WCS? Message-ID: Hi List, just wondering if anyone has any experience with reprojecting a netCDF file, and serving it through mapserver's WCS service. I haven't even tried reprojection in WCS yet, as I'm still trying to conquer it for WMS, but I suddenly had the feeling it wouldn't be possible for WCS. If anyone's had any experience with reprojection in WCS, if there was any random information that helped you out, I'd love to hear it. Thanks! -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: From brooks.glenn at COMCAST.NET Tue Sep 11 15:26:11 2007 From: brooks.glenn at COMCAST.NET (Glenn Brooks) Date: Tue, 11 Sep 2007 22:26:11 +0000 Subject: RSS feeds and Cartoweb client questions Message-ID: HI, I am working on distributing GIS attribute information (and some other non-spatial data) to a simple business intellegence/reporting dashboard. The dashboard which will also include a transactional Cartoweb-Mapserver WMS/WFS for data entry into the underlying data bases. Viewable by very non-technical people. I would like to ask if anyone has explored outputting (or automatically updating) GIS layers from Postgis to mapserver or cartoweb WFS clients using RSS feeds? Is this practicable/more simple/or a nightmare?? It seems like it would be a Also, would like to find more documentation about mapserver methods for connecting to Cartoweb and other clients- particularily how to decide whether and when Cartoweb/clients should request data layers directly from data sources then send to Mapserver, versus Mapserver connecting directly to Postgres/postgis or native formats. I am unsure how this should be organized. (The goal here is field-based browser based data editing ( ie create a new point in an existing layer, populate with attribute data- update the master database. I get the transactional side from the user, just don't understand all the linkages between WFS-T and Mapserver) thanks much, Glenn Brooks From sgillies at FRII.COM Tue Sep 11 16:07:36 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 11 Sep 2007 17:07:36 -0600 Subject: RSS feeds and Cartoweb client questions In-Reply-To: Message-ID: Glenn, MapServer itself does not read in GeoRSS feeds yet, although I'm sure there are mapscript and XSLT + OGR based solutions deployed out there. I've written about one that uses a little bit of Python mapscript: http://zcologia.com/news/336/cartography-data-georss/ Speaking of feeds, there are a bunch of us experimenting with using the Atom Publishing Protocol as a replacement for WFS-T. The nexus for this discussion is http://groups.google.com/group/geo-web-rest One live example is at http://labs.metacarta.com/atompub/app-demo.html The displayed features are posted to FeatureServer using Atompub, not WFS-T. Another live example of GIS + Atompub is at http://zcologia.com/hammock/places.html (I almost wrote "Feeds FTW" here, but that seemed a bit silly.) Cheers, Sean Glenn Brooks wrote: > HI, > > I am working on distributing GIS attribute information (and some other non-spatial data) to a simple business intellegence/reporting dashboard. The dashboard which will also include a transactional Cartoweb-Mapserver WMS/WFS for data entry into the underlying data bases. Viewable by very non-technical people. > > I would like to ask if anyone has explored outputting (or automatically updating) GIS layers from Postgis to mapserver or cartoweb WFS clients using RSS feeds? Is this practicable/more simple/or a nightmare?? It seems like it would be a > > Also, would like to find more documentation about mapserver methods for connecting to Cartoweb and other clients- particularily how to decide whether and when Cartoweb/clients should request data layers directly from data sources then send to Mapserver, versus Mapserver connecting directly to Postgres/postgis or native formats. I am unsure how this should be organized. (The goal here is field-based browser based data editing ( ie create a new point in an existing layer, populate with attribute data- update the master database. I get the transactional side from the user, just don't understand all the linkages between WFS-T and Mapserver) > > thanks much, > > Glenn Brooks > From support at BIZEASSET.COM.AU Tue Sep 11 18:42:38 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Wed, 12 Sep 2007 11:42:38 +1000 Subject: MapScripting on ASP pages Message-ID: Hi All, Have basically just started with MapServer, MapScript etc. My situation is that I'd like to build a mapping application into some ASP pages, e.g. VB. However the examples I've come across are all for either PERL, PYTHON and PHP. (These existing pages are already querying out a lot of attribute information from MapInfo tables so there's not too much chance of changing languages, hence the following questions) Is there a VB version out there? If so where could I find a copy? If not is there still a way to build an application into the *.asp pages using the above languages? Any advice would be great on where to start. Regards, Hayden Fisher Development and Support BizeAsset Pty Ltd support at bizeasset.com.au Mob: (04) 3838 4747 Ph: (07) 3369 2222 Fax: (07) 3369 8883 Toll Free: 1800 836 850 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at GMAIL.COM Tue Sep 11 19:18:03 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Tue, 11 Sep 2007 21:18:03 -0500 Subject: MapScripting on ASP pages In-Reply-To: Message-ID: Do you mean old-school VB6? no. You could use the .NET/C# bindings with ASP.NET though. Howard On Sep 11, 2007, at 8:42 PM, Hayden Fisher wrote: > Hi All, > > > > Have basically just started with MapServer, MapScript etc. My > situation is that I?d like to build a mapping application into some > ASP pages, e.g. VB. > > However the examples I?ve come across are all for either PERL, > PYTHON and PHP. > > > > (These existing pages are already querying out a lot of attribute > information from MapInfo tables so there?s not too much chance of > changing languages, hence the following questions) > > > > Is there a VB version out there? If so where could I find a copy? > If not is there still a way to build an application into the *.asp > pages using the above languages? > > > > Any advice would be great on where to start. > > > > Regards, > > Hayden Fisher > > Development and Support > > BizeAsset Pty Ltd > > support at bizeasset.com.au > > Mob: (04) 3838 4747 > > Ph: (07) 3369 2222 > > Fax: (07) 3369 8883 > > Toll Free: 1800 836 850 > > > > From support at BIZEASSET.COM.AU Tue Sep 11 19:28:19 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Wed, 12 Sep 2007 12:28:19 +1000 Subject: MapScripting on ASP pages Message-ID: Hi Howard, Yeah I was just thinking the same thing! Where would I find the source for the C# MapScript? Regards, Hayden Fisher -----Original Message----- From: Howard Butler [mailto:hobu.inc at gmail.com] Sent: Wednesday, 12 September 2007 12:18 PM To: Hayden Fisher Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: MapScripting on ASP pages Do you mean old-school VB6? no. You could use the .NET/C# bindings with ASP.NET though. Howard On Sep 11, 2007, at 8:42 PM, Hayden Fisher wrote: > Hi All, > > > > Have basically just started with MapServer, MapScript etc. My > situation is that I'd like to build a mapping application into some > ASP pages, e.g. VB. > > However the examples I've come across are all for either PERL, > PYTHON and PHP. > > > > (These existing pages are already querying out a lot of attribute > information from MapInfo tables so there's not too much chance of > changing languages, hence the following questions) > > > > Is there a VB version out there? If so where could I find a copy? > If not is there still a way to build an application into the *.asp > pages using the above languages? > > > > Any advice would be great on where to start. > > > > Regards, > > Hayden Fisher > > Development and Support > > BizeAsset Pty Ltd > > support at bizeasset.com.au > > Mob: (04) 3838 4747 > > Ph: (07) 3369 2222 > > Fax: (07) 3369 8883 > > Toll Free: 1800 836 850 > > > > From helenagarcia at GRUPOTECOPY.ES Wed Sep 12 01:24:51 2007 From: helenagarcia at GRUPOTECOPY.ES (H Garcia) Date: Wed, 12 Sep 2007 03:24:51 -0500 Subject: line with the arrow in the ending point Message-ID: Hi, Kristjan and list Did you get the line with the arrow? I have the same problem and I would like to know how to draw it. Is it some possibility of doing it with images instead of truetype fonts? Could anybody help me? Thanks in advance! From richardorama at YAHOO.COM Wed Sep 12 01:30:27 2007 From: richardorama at YAHOO.COM (richard orama) Date: Wed, 12 Sep 2007 01:30:27 -0700 Subject: Mapserver PHP Issues Message-ID: Dear All, I have picked up quite a bit of Mapserver - and I am already doing some publishing on our intranet. But this question still bothers me: I have not yet used any PHP scripts in addition to my map file - I use only the map file and html files. How can I use PHP and for what purpose? Can someone send a simple example of how I can use PHP Mapscript? Best regards, Richard. ____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz -------------- next part -------------- An HTML attachment was scrubbed... URL: From richardorama at YAHOO.COM Wed Sep 12 01:31:44 2007 From: richardorama at YAHOO.COM (richard orama) Date: Wed, 12 Sep 2007 01:31:44 -0700 Subject: Mapserver Query Issue Message-ID: Dear All, When I query my map at a certain point or polygon, the result can at times be something in the neighbourhood of the point or polygon I queried. My tolerance for points are 3 and for polygons are 0. Best regards, Richard. ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC -------------- next part -------------- An HTML attachment was scrubbed... URL: From richardorama at YAHOO.COM Wed Sep 12 01:33:26 2007 From: richardorama at YAHOO.COM (richard orama) Date: Wed, 12 Sep 2007 01:33:26 -0700 Subject: Mapserver Oracle Issue Message-ID: Dear All, I have an oracle 9i (not oracle spatial) database with ordinary (non-spatial) data about patients. One of the tables is districtmaster with the fields districtid, districtname, and patientcount - nothing to do with x,y. My GIS layer has a districtid field which I hope to use to join with the districtid in oracle table. I then want to use the patientcount field from the oracle table to classify my layer. Is this possible? Best regards, Richard. ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC -------------- next part -------------- An HTML attachment was scrubbed... URL: From dpinte at ITAE.BE Wed Sep 12 01:41:16 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 12 Sep 2007 10:41:16 +0200 Subject: Mapserver PHP Issues In-Reply-To: <279885.78786.qm@web50904.mail.re2.yahoo.com> Message-ID: On Wed, 2007-09-12 at 01:30 -0700, richard orama wrote: > Dear All, > > I have picked up quite a bit of Mapserver - and I am already doing > some publishing on our intranet. But this question still bothers me: > > I have not yet used any PHP scripts in addition to my map file - I use > only the map file and html files. How can I use PHP and for what > purpose? Can someone send a simple example of how I can use PHP > Mapscript? > > Best regards, > Richard. Hi Richard, I think you can find a very interesting tutorial here : http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample Concerning the purpose of php/mapscript, I'm sure that if you need it you will already thought about scripting the use of mapserver. It's definetely very easy to keep using map files without php/mapscript. The php/mapscript is only another way to call your mapfile that let you do more things than the CGI version. This is cool but the CGI version provides you a lot of functionnalities that are easy to use (querying, enabling layers, etc.). In php/mapscript, you can do it but you have to program each type of action in your php application. One solution is to use one of the existing php/mapscript frameworks (like p.mapper, ka-map, etc.). I hope this helps. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From lged_morris at HOTMAIL.COM Wed Sep 12 01:42:41 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Wed, 12 Sep 2007 10:42:41 +0200 Subject: Mapserver 5 RC25 cgi, 1 threads didn't exit Message-ID: Hi! The old problem with that : Error in my_thread_global_end(): 1 threads didn't exit is written at the end of the page is back. Replacing the libmysql.dll with the libmysql.dl from Mapserver 5 beta 6 solves the problem. Lars-G?ran Edholm _________________________________________________________________ Idol 2007: B?sta & v?rsta klippen! http://video.se.msn.com/v/sv-se/v.htm From marcos at BURKE.ATH.CX Wed Sep 12 01:53:24 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Wed, 12 Sep 2007 10:53:24 +0200 Subject: MapScripting on ASP pages In-Reply-To: <7B703FBC-3EEA-41F5-AF5F-6AE1E982946F@gmail.com> Message-ID: You might try to build an ActiveX with the Python Windows extensions, although it might have a performance hit (probably trivial compared to the map processing, probably not). El mar, 11-09-2007 a las 21:18 -0500, Howard Butler escribi?: > Do you mean old-school VB6? no. You could use the .NET/C# bindings > with ASP.NET though. > > Howard > > On Sep 11, 2007, at 8:42 PM, Hayden Fisher wrote: > > > Hi All, > > > > > > > > Have basically just started with MapServer, MapScript etc. My > > situation is that I?d like to build a mapping application into some > > ASP pages, e.g. VB. > > > > However the examples I?ve come across are all for either PERL, > > PYTHON and PHP. > > > > > > > > (These existing pages are already querying out a lot of attribute > > information from MapInfo tables so there?s not too much chance of > > changing languages, hence the following questions) > > > > > > > > Is there a VB version out there? If so where could I find a copy? > > If not is there still a way to build an application into the *.asp > > pages using the above languages? > > > > > > > > Any advice would be great on where to start. > > > > > > > > Regards, > > > > Hayden Fisher > > > > Development and Support > > > > BizeAsset Pty Ltd > > > > support at bizeasset.com.au > > > > Mob: (04) 3838 4747 > > > > Ph: (07) 3369 2222 > > > > Fax: (07) 3369 8883 > > > > Toll Free: 1800 836 850 > > > > > > > > From donal_regan10 at YAHOO.CO.UK Wed Sep 12 01:55:42 2007 From: donal_regan10 at YAHOO.CO.UK (Donal) Date: Wed, 12 Sep 2007 01:55:42 -0700 Subject: how do I scale a shapefile? Message-ID: Hello. Is it possible to somehow scale a shapefile? For example when I use ogrinfo to examine a shape file I see that it has an extent of Extent: (33791266.000000, 8769802.000000) - (34589323.000000, 9369802.000000) with a Layer SRS WKT: (unknown) I have been told that they should be epsg:30161 but are out by a factor of 1000. Is there some tool I can use that will scale the shapefile contents? Or is there a way to tell mapserver to divide the extents and coordinates by 1000? I hope this makes sense and is possible to achieve. Thanks, D. -- View this message in context: http://www.nabble.com/how-do-I-scale-a-shapefile--tf4427886.html#a12631395 Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at GMAIL.COM Wed Sep 12 02:17:39 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 12 Sep 2007 11:17:39 +0200 Subject: MapScripting on ASP pages In-Reply-To: Message-ID: Hi, Those files can be found in the /mapscript/csharp directory of the mapserver source tree. The current release can be downloaded from here: http://download.osgeo.org/mapserver/mapserver-4.10.3.tar.gz In your application add a reference to the mapscript_csharp.dll and ensure that all of the dependent dll-s are available in the PATH. Most of the binary distributions like ms4w and FWTools should contain all the dll-s required. Best regards, Tamas 2007/9/12, Hayden Fisher : > Hi Howard, > > Yeah I was just thinking the same thing! Where would I find the source > for the C# MapScript? > > Regards, > Hayden Fisher > > -----Original Message----- > From: Howard Butler [mailto:hobu.inc at gmail.com] > Sent: Wednesday, 12 September 2007 12:18 PM > To: Hayden Fisher > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: MapScripting on ASP pages > > Do you mean old-school VB6? no. You could use the .NET/C# bindings > with ASP.NET though. > > Howard > > On Sep 11, 2007, at 8:42 PM, Hayden Fisher wrote: > > > Hi All, > > > > > > > > Have basically just started with MapServer, MapScript etc. My > > situation is that I'd like to build a mapping application into some > > ASP pages, e.g. VB. > > > > However the examples I've come across are all for either PERL, > > PYTHON and PHP. > > > > > > > > (These existing pages are already querying out a lot of attribute > > information from MapInfo tables so there's not too much chance of > > changing languages, hence the following questions) > > > > > > > > Is there a VB version out there? If so where could I find a copy? > > If not is there still a way to build an application into the *.asp > > pages using the above languages? > > > > > > > > Any advice would be great on where to start. > > > > > > > > Regards, > > > > Hayden Fisher > > > > Development and Support > > > > BizeAsset Pty Ltd > > > > support at bizeasset.com.au > > > > Mob: (04) 3838 4747 > > > > Ph: (07) 3369 2222 > > > > Fax: (07) 3369 8883 > > > > Toll Free: 1800 836 850 > > > > > > > > > From siki at AGT.BME.HU Wed Sep 12 05:33:45 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 12 Sep 2007 11:33:45 -0100 Subject: Mapserver PHP Issues {Scanned} In-Reply-To: <279885.78786.qm@web50904.mail.re2.yahoo.com> Message-ID: Hello, try this link http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample Best regards, Zoltan On Wed, 12 Sep 2007, richard orama wrote: > Dear All, I have picked up quite a bit of Mapserver - and I am already doing some publishing on our intranet. But this question still bothers me: I have not yet used any PHP scripts in addition to my map file - I use only the map file and html files. How can I use PHP and for what purpose? Can someone send a simple example of how I can use PHP Mapscript? Best regards, Richard. ____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz From donal_regan10 at YAHOO.CO.UK Wed Sep 12 02:35:39 2007 From: donal_regan10 at YAHOO.CO.UK (Donal) Date: Wed, 12 Sep 2007 02:35:39 -0700 Subject: how do I scale a shapefile? In-Reply-To: <12631395.post@talk.nabble.com> Message-ID: Just for the record, I think I have it with the following : ogr2ogr -s_srs ' +proj=tmerc +lat_0=33 +lon_0=129.5 +k=0.999900 +x_0=0 +y_0=0 +ellps=bessel +to_meter=0.001' -t_srs EPSG:30161 out.shp in.shp and I got my settings by looking up the value for 30161 in the /usr/local/share/proj/epsg file. Donal wrote: > > Hello. > > Is it possible to somehow scale a shapefile? > > For example when I use ogrinfo to examine a shape file I see that it has > an extent of > > Extent: (33791266.000000, 8769802.000000) - (34589323.000000, > 9369802.000000) > > with a > > Layer SRS WKT: (unknown) > > I have been told that they should be epsg:30161 but are out by a factor of > 1000. > > Is there some tool I can use that will scale the shapefile contents? > > Or is there a way to tell mapserver to divide the extents and coordinates > by 1000? > > I hope this makes sense and is possible to achieve. > > Thanks, > > D. > > -- View this message in context: http://www.nabble.com/how-do-I-scale-a-shapefile--tf4427886.html#a12632057 Sent from the Mapserver - User mailing list archive at Nabble.com. From miguelandre.fernandes at GMAIL.COM Wed Sep 12 03:00:27 2007 From: miguelandre.fernandes at GMAIL.COM (Miguel Fernandes) Date: Wed, 12 Sep 2007 11:00:27 +0100 Subject: Mapserver, php/mapscript and maplab conflicts Message-ID: Hello all, I'm having a versions conflict. I want to install mapserver, php/mapscript and maplab, i'm having dificulties with the php version to install. MapLab says i have to install php 4.4.0 or less but i'm not being able to find mapserver and php/mapscript built with this php version. Can anyone please clarify which versions that i must have for this configuration and if there are binary versions for those for windows. Thanks to all. Miguel Fernandes -------------- next part -------------- An HTML attachment was scrubbed... URL: From bailey at TEXASSABAL.COM Wed Sep 12 03:04:08 2007 From: bailey at TEXASSABAL.COM (Bailey Landress) Date: Wed, 12 Sep 2007 05:04:08 -0500 Subject: antialias lines Message-ID: Trying to fix jagged lines. See anything wrong with the Mapfile below? When I change IMAGEMODE to RGBA the background of my map turns black. Also if I take out SYMBOL "cartoline" from the Style tag under Layer, I do not see any change in regard to antialiasing. Any help would be greatly appreciated. Thanks. MapServer version 4.10.2 In MAP: IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END SYMBOL NAME 'cartoline' TYPE cartoline LINECAP round LINEJOIN round LINEJOINMAXSIZE 3 END LAYER NAME "Contours" STATUS on TYPE LINE DATA "Contours" SYMBOLSCALE 24000 TRANSPARENCY alpha CLASS STYLE COLOR 000 000 000 SYMBOL "cartoline" ANTIALIAS TRUE WIDTH 2 END END END Bailey From jmckenna at DMSOLUTIONS.CA Wed Sep 12 05:53:54 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 12 Sep 2007 08:53:54 -0400 Subject: Mapserver, php/mapscript and maplab conflicts In-Reply-To: <5c0591a60709120300p7e4a332albd5316a0c040e562@mail.gmail.com> Message-ID: MapLab is very old and has not been in development or maintained in many many years; therefore it is no longer recommended for mapfile creation. Recommended: Quantum GIS www.qgis.org (has a File/Export to Mapfile utility), and MapStorer www.mapstorer.org (based on postgresql or mysql). -- jeff Miguel Fernandes wrote: > Hello all, > > I'm having a versions conflict. I want to install mapserver, > php/mapscript and maplab, i'm having dificulties with the php version to > install. MapLab says i have to install php 4.4.0 or less but i'm not > being able to find mapserver and php/mapscript built with this php > version. Can anyone please clarify which versions that i must have for > this configuration and if there are binary versions for those for windows. > Thanks to all. > > Miguel Fernandes -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at DMSOLUTIONS.CA Wed Sep 12 06:32:52 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 12 Sep 2007 09:32:52 -0400 Subject: Mapserver 5 RC25 cgi, 1 threads didn't exit In-Reply-To: Message-ID: MS4W 2.2.6-beta was released with a new PHP version (5.2.4) in the hopes that this problem would be resolved. Due to your feedback (thank you) I have repackaged this beta with a previous libmysql.dll, like you suggested. Attention *all MS4W users*: please use the MS4W email list (information at http://lists.maptools.org/mailman/listinfo/ms4w-users) for MS4W feedback or questions. If you find a bug (like this case) then please use the MS4W bug tracker (info at http://www.maptools.org/ms4w/index.phtml?page=bugs.html). That way any MS4W feedback is not missed on this busy MapServer list. Thank you very much in advance. Lars-G?ran: please use one of those 2 options for your feedback when you try this newer package, thanks (and please do-retry, it's available on the download page again, since the more quality-assurance we get the better!). -- jeff Lars-G?ran Edholm wrote: > Hi! > The old problem with that : > Error in my_thread_global_end(): 1 threads didn't exit > > is written at the end of the page is back. > > Replacing the libmysql.dll with the libmysql.dl from Mapserver 5 beta 6 > solves the problem. > > Lars-G?ran Edholm > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Josh.Hevenor at DPRA.COM Wed Sep 12 07:31:18 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Wed, 12 Sep 2007 09:31:18 -0500 Subject: Mapserver SDE 9.2 Question In-Reply-To: <1745B960-B8D7-4903-9FF6-99558197C7FA@gmail.com> Message-ID: As instructed I setup a proper log file. Nothing caught my eye there. I started to think that I just wasn't matching the data so I set the LABELITEM to see what I was dealing with (not sure why I didn't try that yesterday). The string fields from the service are coming out garbled (sample image attached). There are mostly I's, C's, A', and most characters have accents. It looks like there's a misinterpretation of character encoding but from I haven't found anywhere to configure this. Has anyone else come across this? Josh -----Original Message----- From: Howard Butler [mailto:hobu.inc at gmail.com] Sent: Tuesday, September 11, 2007 4:27 PM To: Josh Hevenor Cc: UMN MapServer Users List Subject: Re: Mapserver SDE 9.2 Question Josh, Set MS_ERRORFILE as per MS RFC 28 to get debug output . When it queries the REGDIV layer, the SDE debug output should tell you what it thinks the names of the columns are. You should be able to then use that column name for the CLASSITEM. Howard On Sep 11, 2007, at 3:09 PM, Josh Hevenor wrote: > My installation is working well. I really appreciate all your help :) > > I had a quick question about symbolization for SDE layers. I made a > sample map file based on my applications existing map file. I > update a couple background layers to use our SDE services. Two of > three of these layers work well and the third does not draw. This > third layer (REGDIV) has a CLASSITEM set and a number of CLASSES > defined. There is no error displayed, even with the -map_debug or - > all_debug flags set. If I change the layer to use just one default > class then the layer draws. > > I tried updating my CLASSITEM to use a full path, for example DIVID > became GIS.DBO.REGDIV.DIVID but I received the following error: > > C:\ms4w\apps\sdedemo>shp2img -m gp.map -o gp.png > msDrawMap(): Image handling error. Failed to draw layer named > 'REGDIV'.
> msSDELayerInitItemInfo(): SDE error. A specified CLASSITEM, > FILTERITEM, or expression key cannot be found
> > My Layer looks like this > > LAYER > NAME 'REGDIV' > STATUS on > TYPE POLYGON > CONNECTIONTYPE PLUGIN > PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" > CONNECTION "matata,port:5252,GIS,sa,sa" > PROCESSING 'CLOSE_CONNECTION=DEFER' > > DATA "GIS.DBO.REGDIV,Shape,dbo.DEFAULT" > > TOLERANCE 12 > TRANSPARENCY 75 > > CLASSITEM 'GIS.DBO.REGDIV.DIVID' > > CLASS > NAME 'West' > EXPRESSION 'West' > TEMPLATE 'null' > STYLE > COLOR 204 204 204 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > CLASS > NAME 'Ontario' > EXPRESSION 'Ontario' > TEMPLATE 'null' > STYLE > COLOR 204 204 204 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > CLASS > NAME 'Qu?bec' > EXPRESSION 'Qu?bec' > TEMPLATE 'null' > STYLE > COLOR 204 204 204 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > CLASS > NAME 'Atlantic' > EXPRESSION 'Atlantic' > TEMPLATE 'null' > STYLE > COLOR 246 197 103 > OUTLINECOLOR 5 5 5 > END #STYLE > END #CLASS > > PROJECTION > "init=epsg:4326" > END > END #LAYER > > What am I missing? > > Thanks again, > > Josh > > -----Original Message----- > From: Howard Butler [mailto:hobu.inc at gmail.com] > Sent: Tuesday, September 11, 2007 11:43 AM > To: Josh Hevenor > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Mapserver SDE 9.2 Question > > No, the 9.1 ArcSDE SDK dlls are not sufficient to connect to 9.2 with > the 9.2 plugin. The plugins are linked against each specific > version of the ArcSDE SDK and have to be matched. The use of plugins > makes this less obnoxious than it was in the past, which required > swapping out the entire libmap.dll, but it is still some hassle. > > The rules for ArcSDE MapServer connections are as follows: > - If you have to connect to both ArcSDE X.1 and X.2 servers, use the > X.2 version of the ArcSDE SDK. You can usually connect to a X.1 > version server with X.2 version client DLLs without ill effect. > - To connect to X.2 servers, you *have* to use X.2 versions of the > ArcSDE SDK. > - Do not use both the X.1 and X.2 versions of the plugins in the same > MapServer map if you have to connect to both X.1 and X.2 version > servers. Just use X.2. > > Howard > > On Sep 11, 2007, at 10:21 AM, Josh Hevenor wrote: > >> I had a quick question on using the msplugin_sde_92.dll to connect >> to an SDE service from mapserver. The SDE Notes from the README >> file state the following: >> As of Map Server 5.0 (including betas and release >> candidates), the following applies: >> >> Steps to Enable SDE 9.1 and 9.2 Support in MS4W's Map Server >> >> *********************************************************** >> >> 1. Make sure the ArcSDE? SDK dlls for 9.1 are available on... But >> it doesn't mention arcSDE 9.2 SDK dll's for connecting to a 9.2 >> service. Are the 9.1 dll's sufficient? I'm just working through my >> setup and thought I should clear this up as I go along. Thanks, >> >> >> Josh Hevenor >> Application Developer >> ____________________________________________ >> 5230 South Service Road >> Burlington, Ontario >> L7L 5K2 Canada >> Phone: 905-333-4544 ext. 19 >> Fax: 905-333-0455 >> Cell: 905-320-7525 >> Email: josh.hevenor at dpra.com >> Internet: http://www.dpra.com >> >> >> >> >> >> >> >> Attention: >> Privileged/Confidential Information may be contained in this >> message. Disclosure to any person other than the named recipient is >> unauthorized. If you are not the intended recipient, please delete >> all copies of this information and kindly notify the sender by >> reply email. Opinions, conclusions and other information in this >> message that do not relate to the official business of DPRA shall >> be understood as neither given nor endorsed by it. DPRA and any of >> its subsidiaries reserve the right to monitor all e-mail >> communications through its networks. Thank you. >> >> >> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: gp.png Type: image/png Size: 44712 bytes Desc: gp.png URL: From mlinden at ZEELANDNET.NL Wed Sep 12 08:45:21 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 12 Sep 2007 17:45:21 +0200 Subject: FWTools 1.3.6 using mapserver 5.0.0-beta4 Message-ID: Hello list! I am in the proces of installing mapserver on IIS 5 with php and php_mapscript.dll keeps crashing. I used FWTools 1.3.6 and been cracking my head why it would not work. Now I discovered that a mapserv.exe -v command shows version 5.0.0-beta4! I decided to uninstall FWtools 1.3.6 and revert to 1.3.4 Now I have mapserv 4.99. When I php from the command prompt, I get the error: "cannot find entrypoint for procedure msDrawQueryMap in dll-file libmap.dll" any suggestions? Do I need to revert further back to get the php_mapscript.dll working? I use the one that comes with ms4w. What I did: - Installed fwtools - copied only the php_mapscript.dll from the ms4w package into c:\PHP\ext - added extension=phpmapscript.dll to my php.ini - made sure the paths point to C:\PHP and C:\FWTools\bin and so on. Is there anyone that can tell me why libmap.dll is teasing me? From mlinden at ZEELANDNET.NL Wed Sep 12 09:11:44 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 12 Sep 2007 18:11:44 +0200 Subject: FWTools 1.3.6 using mapserver 5.0.0-beta4 In-Reply-To: <43196.213.201.130.58.1189611921.squirrel@secure.zeelandnet.nl> Message-ID: I figured it out. The trick is to take all the contents of the ms4w/apache/cgi-bin/ directory and OVERWRITE everything in C:\Fwtools\bin... Now php_mapscript.dll works like a charm under IIS, without all the extra load that ms4w brings! > Hello list! > > I am in the proces of installing mapserver on IIS 5 with php and > php_mapscript.dll keeps crashing. > > I used FWTools 1.3.6 and been cracking my head why it would not work. > > Now I discovered that a mapserv.exe -v command shows version 5.0.0-beta4! > > I decided to uninstall FWtools 1.3.6 and revert to 1.3.4 > > Now I have mapserv 4.99. When I php from the command prompt, I get the > error: > > "cannot find entrypoint for procedure msDrawQueryMap in dll-file > libmap.dll" > > any suggestions? Do I need to revert further back to get the > php_mapscript.dll working? I use the one that comes with ms4w. > > What I did: > - Installed fwtools > - copied only the php_mapscript.dll from the ms4w package into c:\PHP\ext > - added extension=phpmapscript.dll to my php.ini > - made sure the paths point to C:\PHP and C:\FWTools\bin and so on. > > Is there anyone that can tell me why libmap.dll is teasing me? > Milo van der Linden SomaFM From warmerdam at POBOX.COM Wed Sep 12 09:18:18 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 12 Sep 2007 12:18:18 -0400 Subject: FWTools 1.3.6 using mapserver 5.0.0-beta4 In-Reply-To: <43196.213.201.130.58.1189611921.squirrel@secure.zeelandnet.nl> Message-ID: Milo van der Linden wrote: > What I did: > - Installed fwtools > - copied only the php_mapscript.dll from the ms4w package into c:\PHP\ext > - added extension=phpmapscript.dll to my php.ini > - made sure the paths point to C:\PHP and C:\FWTools\bin and so on. > > Is there anyone that can tell me why libmap.dll is teasing me? Milo, I do not believe you should mix the php_mapscript.dll from MS4W with the mapserver build done for FWTools. FWTools is a "moving target" compiled against the latest and greatest mapserver source at the time it is released. So there is no way to ensure that the php mapscript corresponds with the correct structures, functions and so forth from the FWTools mapserver dlls. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From jhhal at WMDATA.COM Sun Sep 2 23:14:51 2007 From: jhhal at WMDATA.COM (Hallgren Johan E) Date: Mon, 3 Sep 2007 08:14:51 +0200 Subject: Large installations Message-ID: Hello I'm looking for large installations of MapServer, or websites with high amount of traffic. I need references so any information in that would be valuable. /Johan Johan Hallgren WM-data/LogicaCMG Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.e.hallgren at wmdata.com http://www.LogicaCMG.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhhal at WMDATA.COM Mon Sep 3 23:13:32 2007 From: jhhal at WMDATA.COM (Hallgren Johan E) Date: Tue, 4 Sep 2007 08:13:32 +0200 Subject: Large installations Message-ID: Dear Friends I'm looking for anyone knowing large websites that are using MapServer, or MapServer-based websites with high amount of traffic. I need references so any information would be valuable. /Johan Johan Hallgren WM-data/LogicaCMG Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.e.hallgren at wmdata.com http://www.LogicaCMG.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Wed Sep 12 09:38:46 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 12 Sep 2007 18:38:46 +0200 Subject: Mapserver, php/mapscript and maplab conflicts In-Reply-To: <46E7E162.8090803@dmsolutions.ca> Message-ID: Interesting discussion! Is there a solid list somewhere that describes which mapserver related projects are active an which are not? I run into this a lot when advising customers on where to go. I would really like to know the statusses on: - p.mapper - kaMap - cartoweb - sharpMap - Rosa as used in GMap example - postGIS - msSQLSpatial with development of mapserver, gdal and ogr I have no concern, these seem to be extremely active and a good example of how OpenSource can really do the work! > MapLab is very old and has not been in development or maintained in many > many years; therefore it is no longer recommended for mapfile creation. > Recommended: Quantum GIS www.qgis.org (has a File/Export to Mapfile > utility), and MapStorer www.mapstorer.org (based on postgresql or mysql). > > > -- > jeff > > > > > Miguel Fernandes wrote: >> Hello all, >> >> I'm having a versions conflict. I want to install mapserver, >> php/mapscript and maplab, i'm having dificulties with the php version to >> install. MapLab says i have to install php 4.4.0 or less but i'm not >> being able to find mapserver and php/mapscript built with this php >> version. Can anyone please clarify which versions that i must have for >> this configuration and if there are binary versions for those for >> windows. >> Thanks to all. >> >> Miguel Fernandes > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > Milo van der Linden SomaFM From hobu.inc at GMAIL.COM Wed Sep 12 10:32:00 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Wed, 12 Sep 2007 12:32:00 -0500 Subject: Mapserver SDE 9.2 Question In-Reply-To: <49B9846C39F25A4FA901064970861610C0237D@mhk-ex1.ad.dpra.com> Message-ID: Josh and I were able to figure out the problem, but there isn't a good solution for it right now. The columns in Josh's table are unicode (SE_NSTRING is the SDE column type). While there is (very) limited support for rendering these unicode columns with labels, there's no support for dealing with them in classification or expressions. The solution is to use non-unicode (SE_STRING) columns for your data, and things will work as before. So, to clarify, unicode support for SDE is available only for rendering labels (and there maybe bugs in that still, I have only gotten it to work in a few instances) in 5.0. If you need the full gamut of MapServer power with SDE layers, do not use unicode columns in ArcSDE 9.2. Howard On Sep 12, 2007, at 9:31 AM, Josh Hevenor wrote: > As instructed I setup a proper log file. Nothing caught my eye > there. I started to think that I just wasn't matching the data so I > set the LABELITEM to see what I was dealing with (not sure why I > didn't try that yesterday). The string fields from the service are > coming out garbled (sample image attached). There are mostly I's, > C's, A', and most characters have accents. > > It looks like there's a misinterpretation of character encoding but > from I haven't found anywhere to configure this. Has anyone else > come across this? > > Josh > > -----Original Message----- > From: Howard Butler [mailto:hobu.inc at gmail.com] > Sent: Tuesday, September 11, 2007 4:27 PM > To: Josh Hevenor > Cc: UMN MapServer Users List > Subject: Re: Mapserver SDE 9.2 Question > > Josh, > > Set MS_ERRORFILE as per MS RFC 28 to get debug output mapserver.gis.umn.edu/development/rfc/ms-rfc-28>. When it queries > the REGDIV layer, the SDE debug output should tell you what it thinks > the names of the columns are. You should be able to then use that > column name for the CLASSITEM. > > Howard > > > > On Sep 11, 2007, at 3:09 PM, Josh Hevenor wrote: > >> My installation is working well. I really appreciate all your help :) >> >> I had a quick question about symbolization for SDE layers. I made a >> sample map file based on my applications existing map file. I >> update a couple background layers to use our SDE services. Two of >> three of these layers work well and the third does not draw. This >> third layer (REGDIV) has a CLASSITEM set and a number of CLASSES >> defined. There is no error displayed, even with the -map_debug or - >> all_debug flags set. If I change the layer to use just one default >> class then the layer draws. >> >> I tried updating my CLASSITEM to use a full path, for example DIVID >> became GIS.DBO.REGDIV.DIVID but I received the following error: >> >> C:\ms4w\apps\sdedemo>shp2img -m gp.map -o gp.png >> msDrawMap(): Image handling error. Failed to draw layer named >> 'REGDIV'.
>> msSDELayerInitItemInfo(): SDE error. A specified CLASSITEM, >> FILTERITEM, or expression key cannot be found
>> >> My Layer looks like this >> >> LAYER >> NAME 'REGDIV' >> STATUS on >> TYPE POLYGON >> CONNECTIONTYPE PLUGIN >> PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" >> CONNECTION "matata,port:5252,GIS,sa,sa" >> PROCESSING 'CLOSE_CONNECTION=DEFER' >> >> DATA "GIS.DBO.REGDIV,Shape,dbo.DEFAULT" >> >> TOLERANCE 12 >> TRANSPARENCY 75 >> >> CLASSITEM 'GIS.DBO.REGDIV.DIVID' >> >> CLASS >> NAME 'West' >> EXPRESSION 'West' >> TEMPLATE 'null' >> STYLE >> COLOR 204 204 204 >> OUTLINECOLOR 5 5 5 >> END #STYLE >> END #CLASS >> >> CLASS >> NAME 'Ontario' >> EXPRESSION 'Ontario' >> TEMPLATE 'null' >> STYLE >> COLOR 204 204 204 >> OUTLINECOLOR 5 5 5 >> END #STYLE >> END #CLASS >> >> CLASS >> NAME 'Qu?bec' >> EXPRESSION 'Qu?bec' >> TEMPLATE 'null' >> STYLE >> COLOR 204 204 204 >> OUTLINECOLOR 5 5 5 >> END #STYLE >> END #CLASS >> >> CLASS >> NAME 'Atlantic' >> EXPRESSION 'Atlantic' >> TEMPLATE 'null' >> STYLE >> COLOR 246 197 103 >> OUTLINECOLOR 5 5 5 >> END #STYLE >> END #CLASS >> >> PROJECTION >> "init=epsg:4326" >> END >> END #LAYER >> >> What am I missing? >> >> Thanks again, >> >> Josh >> >> -----Original Message----- >> From: Howard Butler [mailto:hobu.inc at gmail.com] >> Sent: Tuesday, September 11, 2007 11:43 AM >> To: Josh Hevenor >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: Mapserver SDE 9.2 Question >> >> No, the 9.1 ArcSDE SDK dlls are not sufficient to connect to 9.2 with >> the 9.2 plugin. The plugins are linked against each specific >> version of the ArcSDE SDK and have to be matched. The use of plugins >> makes this less obnoxious than it was in the past, which required >> swapping out the entire libmap.dll, but it is still some hassle. >> >> The rules for ArcSDE MapServer connections are as follows: >> - If you have to connect to both ArcSDE X.1 and X.2 servers, use the >> X.2 version of the ArcSDE SDK. You can usually connect to a X.1 >> version server with X.2 version client DLLs without ill effect. >> - To connect to X.2 servers, you *have* to use X.2 versions of the >> ArcSDE SDK. >> - Do not use both the X.1 and X.2 versions of the plugins in the same >> MapServer map if you have to connect to both X.1 and X.2 version >> servers. Just use X.2. >> >> Howard >> >> On Sep 11, 2007, at 10:21 AM, Josh Hevenor wrote: >> >>> I had a quick question on using the msplugin_sde_92.dll to connect >>> to an SDE service from mapserver. The SDE Notes from the README >>> file state the following: >>> As of Map Server 5.0 (including betas and release >>> candidates), the following applies: >>> >>> Steps to Enable SDE 9.1 and 9.2 Support in MS4W's Map Server >>> >>> *********************************************************** >>> >>> 1. Make sure the ArcSDE? SDK dlls for 9.1 are available on... But >>> it doesn't mention arcSDE 9.2 SDK dll's for connecting to a 9.2 >>> service. Are the 9.1 dll's sufficient? I'm just working through my >>> setup and thought I should clear this up as I go along. Thanks, >>> >>> >>> Josh Hevenor >>> Application Developer >>> ____________________________________________ >>> 5230 South Service Road >>> Burlington, Ontario >>> L7L 5K2 Canada >>> Phone: 905-333-4544 ext. 19 >>> Fax: 905-333-0455 >>> Cell: 905-320-7525 >>> Email: josh.hevenor at dpra.com >>> Internet: http://www.dpra.com >>> >>> >>> >>> >>> >>> >>> >>> Attention: >>> Privileged/Confidential Information may be contained in this >>> message. Disclosure to any person other than the named recipient is >>> unauthorized. If you are not the intended recipient, please delete >>> all copies of this information and kindly notify the sender by >>> reply email. Opinions, conclusions and other information in this >>> message that do not relate to the official business of DPRA shall >>> be understood as neither given nor endorsed by it. DPRA and any of >>> its subsidiaries reserve the right to monitor all e-mail >>> communications through its networks. Thank you. >>> >>> >>> >>> >> > > From David.Fawcett at STATE.MN.US Wed Sep 12 11:07:51 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 12 Sep 2007 13:07:51 -0500 Subject: Large installations In-Reply-To: A Message-ID: I would suggest searching the list archives. This question come up periodically. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hallgren Johan E Sent: Monday, September 03, 2007 1:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Large installations Hello I'm looking for large installations of MapServer, or websites with high amount of traffic. I need references so any information in that would be valuable. /Johan Johan Hallgren WM-data/LogicaCMG Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.e.hallgren at wmdata.com http://www.LogicaCMG.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Wed Sep 12 09:35:21 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 12 Sep 2007 18:35:21 +0200 Subject: FWTools 1.3.6 using mapserver 5.0.0-beta4 In-Reply-To: <46E8114A.8070405@pobox.com> Message-ID: Frank, Thank you for the response, I understand your concern and will keep it in mind. For now this is at least a working situation under IIS, which on itself is tricky enough allready. The enduser however is stricly a microsoft minded firm and Apache was no option so WAMP or ms4w was no option. Basically the situation that I now have is a FWtools that is a stripped ms4w installation without apache and mysql, but with the proj and gdal definitions from FWTools. > Milo van der Linden wrote: >> What I did: >> - Installed fwtools >> - copied only the php_mapscript.dll from the ms4w package into >> c:\PHP\ext >> - added extension=phpmapscript.dll to my php.ini >> - made sure the paths point to C:\PHP and C:\FWTools\bin and so on. >> >> Is there anyone that can tell me why libmap.dll is teasing me? > > Milo, > > I do not believe you should mix the php_mapscript.dll from MS4W with > the mapserver build done for FWTools. FWTools is a "moving target" > compiled against the latest and greatest mapserver source at the time > it is released. So there is no way to ensure that the php mapscript > corresponds with the correct structures, functions and so forth from > the FWTools mapserver dlls. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > Milo van der Linden SomaFM From mlinden at ZEELANDNET.NL Wed Sep 12 15:09:23 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 13 Sep 2007 00:09:23 +0200 Subject: FWTools 1.3.6 using mapserver 5.0.0-beta4 In-Reply-To: <46E81924.70008@pobox.com> Message-ID: Thank you Frank! Would it be a good idea to set up a mapserver installer that is specifically for IIS? I would love to maintain that particular one and testdrive new versions for it. I will see if I can find an installer tool that can also script IIS settings at forehand. To be continued... Frank Warmerdam schreef: > mlinden at zeelandnet.nl wrote: >> Frank, >> >> Thank you for the response, I understand your concern and will keep >> it in >> mind. For now this is at least a working situation under IIS, which on >> itself is tricky enough allready. The enduser however is stricly a >> microsoft minded firm and Apache was no option so WAMP or ms4w was no >> option. >> >> Basically the situation that I now have is a FWtools that is a stripped >> ms4w installation without apache and mysql, but with the proj and gdal >> definitions from FWTools. > > Milo, > > I certainly imagine that a stripped MS4W should be usable under IIS. > And likely FWTools's mapserver should work under IIS. I'm not arguing > about > that. Just warning on the dangers of mixing mapscript dll's from MS4 > with > FWTools mapserver core. > > Of course, anything that works for you is fair game as long as it doesn't > impose a support burden on others. > > Best regards, > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Wed Sep 12 15:11:21 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 13 Sep 2007 00:11:21 +0200 Subject: Mapserver, php/mapscript and maplab conflicts In-Reply-To: Message-ID: Hello Romolo! You are absolutely right, staying informed is part of the job! Thank you for the input! Kind regards, Milo van der Linden Romolo Manfredini schreef: > Dear Milo, > knowing the status of the application you listed is rather easy, very > often you can find them in the specific project website, anyway I will > supply you the information about two projects I use frequently: > > > - p.mapper > rather stable, efficient (I use it in a lot of project) maintained > (see release history below) > June 20, 2007 p.mapper version 3.1 released > January 31, 2007 New language sets: > January 7, 2007 p.mapper 3.1 beta-1 available > > - postGIS > stable, maintained and keeped up to date with postgresql releases and > improvements > [2007/08/13] postgis-1.3.1.tar.gz > [2007/01/11] postgis-1.2.1.tar.gz > [2007/01/31] postgis-1.1.7.tar.gz > [2005/12/06] postgis-1.0.6.tar.gz > [2005/07/25] postgis-0.9.2.tar.gz > > It's not difficult to obtain similar informations about the other > projects you listed, just have a look to the websites and keep > yourself up to date, > if you have to advise customers, keeping yourself informed is part of > your job. > > Best regards, > Romolo Manfredini -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at BIZEASSET.COM.AU Wed Sep 12 19:27:14 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Thu, 13 Sep 2007 12:27:14 +1000 Subject: Win32 Compilation and Installation Message-ID: Hi All, Attempting to compile MapServer and then MapScript for C#. And have been trying to follow the 'Win32 Compilation and Installation' tutorial. The link to regex is not current, does anyone know if this is still necessary? Or have a more up to date instruction manual for building MapServer? The version I'm trying to compile is 4.10.2 Regards, Hayden Fisher Development and Support BizeAsset Pty Ltd support at bizeasset.com.au Mob: (04) 3838 4747 Ph: (07) 3369 2222 Fax: (07) 3369 8883 Toll Free: 1800 836 850 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at GMAIL.COM Wed Sep 12 19:44:08 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Wed, 12 Sep 2007 21:44:08 -0500 Subject: Win32 Compilation and Installation In-Reply-To: Message-ID: MS4W provides C# bindings for MapServer, and unless you are looking for something very specific, it is likely to cover most/all of your needs. Alternatively, I would suggest getting a copy of the latest MapServer buildkit . Note that this is only compatible with MSVC 2003, not 2005. It has everything pre- configured/setup if you can use 2003. I admit the Win32 Compilation doc has been neglected some since most of us started just using the buildkit as our base. If you must still soldier on, please add comments to the bottom of the doc with updates that need to be made and we will try to incorporate them in the next iteration of the doc (don't know when that would be). Howard On Sep 12, 2007, at 9:27 PM, Hayden Fisher wrote: > Hi All, > > > > Attempting to compile MapServer and then MapScript for C#. And have > been trying to follow the ?Win32 Compilation and Installation? > tutorial. > > > > The link to regex is not current, does anyone know if this is still > necessary? Or have a more up to date instruction manual for > building MapServer? > > > > The version I?m trying to compile is 4.10.2 > > > > Regards, > > Hayden Fisher > > Development and Support > > BizeAsset Pty Ltd > > support at bizeasset.com.au > > Mob: (04) 3838 4747 > > Ph: (07) 3369 2222 > > Fax: (07) 3369 8883 > > Toll Free: 1800 836 850 > > > > From support at BIZEASSET.COM.AU Wed Sep 12 19:58:26 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Thu, 13 Sep 2007 12:58:26 +1000 Subject: Win32 Compilation and Installation Message-ID: Hi Howard, I'm using MS Visual Studio .Net 2003 that should do the trick, yes? And will be .Net 1.1 compatible? And what if I eventually want to go to .Net 2.0? I'd need Visual Studio 2005 with what buildkit? Regards, Hayden Fisher Development and Support BizeAsset Pty Ltd support at bizeasset.com.au Mob: (04) 3838 4747 Ph: (07) 3369 2222 Fax: (07) 3369 8883 Toll Free: 1800 836 850 -----Original Message----- From: Howard Butler [mailto:hobu.inc at gmail.com] Sent: Thursday, 13 September 2007 12:44 PM To: Hayden Fisher Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: Win32 Compilation and Installation MS4W provides C# bindings for MapServer, and unless you are looking for something very specific, it is likely to cover most/all of your needs. Alternatively, I would suggest getting a copy of the latest MapServer buildkit . Note that this is only compatible with MSVC 2003, not 2005. It has everything pre- configured/setup if you can use 2003. I admit the Win32 Compilation doc has been neglected some since most of us started just using the buildkit as our base. If you must still soldier on, please add comments to the bottom of the doc with updates that need to be made and we will try to incorporate them in the next iteration of the doc (don't know when that would be). Howard On Sep 12, 2007, at 9:27 PM, Hayden Fisher wrote: > Hi All, > > > > Attempting to compile MapServer and then MapScript for C#. And have > been trying to follow the 'Win32 Compilation and Installation' > tutorial. > > > > The link to regex is not current, does anyone know if this is still > necessary? Or have a more up to date instruction manual for > building MapServer? > > > > The version I'm trying to compile is 4.10.2 > > > > Regards, > > Hayden Fisher > > Development and Support > > BizeAsset Pty Ltd > > support at bizeasset.com.au > > Mob: (04) 3838 4747 > > Ph: (07) 3369 2222 > > Fax: (07) 3369 8883 > > Toll Free: 1800 836 850 > > > > From rodrigohaas at GMAIL.COM Wed Sep 12 20:27:27 2007 From: rodrigohaas at GMAIL.COM (SUBSCRIBE MAPSERVER-USERS Rodrigo Haas) Date: Wed, 12 Sep 2007 22:27:27 -0500 Subject: Highlight query Message-ID: Hi all! I want make a zoomin to feature in query result. I perform a itemnquery and showed the highlighted result in the template map with ".qy" file, and table data in a datatable. But, how make a zoomin for each feature(rows in datatable) in the template with zoom,pan, etc? With shapeindex and mapext=shape only indexquerymap works fine, but not work with zoom and pan functions... How I can know the inline map extent of feature? I using MapServer 4.10.X in CGI mode and shape files. Thanks a lot! Rodrigo Haas From rodrigohaas at GMAIL.COM Wed Sep 12 20:37:15 2007 From: rodrigohaas at GMAIL.COM (SUBSCRIBE MAPSERVER-USERS Rodrigo Haas) Date: Wed, 12 Sep 2007 22:37:15 -0500 Subject: antialias lines Message-ID: Hellow Bailey! Try this: ############################################### IMAGETYPE PNG24 SYMBOL NAME 'cartoline' TYPE CARTOLINE LINECAP round LINEJOIN round LINEJOINMAXSIZE 3 END LAYER NAME "Contours" STATUS on TYPE LINE DATA "Contours" #SYMBOLSCALE 24000 #TRANSPARENCY alpha CLASS NAME "Contours" STYLE COLOR 0 0 0 SYMBOL "cartoline" ANTIALIAS TRUE #WIDTH 2 END END END ################################################ Good Luck! ;) Rodrigo Haas From julia.harrell at NCMAIL.NET Wed Sep 12 23:14:34 2007 From: julia.harrell at NCMAIL.NET (Julia Harrell) Date: Wed, 12 Sep 2007 23:14:34 -0700 Subject: using attributes in the VAT table of an ESRI GRID instead of Value In-Reply-To: Message-ID: Anyone ever find a way to use VAT fields? I'd sure hate to have convert my statewide GRID to a giant statewide polygon vector layer just to be able to get at the extended VAT attributes. It would undoubtedly crawl when it comes to display and query speed, even tiled up and indexed... Wondering if there is a way to convert the ESRI Binary GRID (integer, with a VAT) to an image and "repopulate" the pixel values to reflect what's in the desired VAT attribute field instead of the VALUE field, but I have not found a good example of the correct options/parameters to use with GDAL (or anything else) to accomplish this. Does anyone else out there know a trick to solve this that they can share? Thanks, Julia Monica Petri wrote: > > > How do I show an attribute within an ESRI grid. I do not want to use the > Value > [pixel]. > > -- View this message in context: http://www.nabble.com/using-attributes-in-the-VAT-table-of-an-ESRI-GRID-instead-of-Value-tf3938751.html#a12649235 Sent from the Mapserver - User mailing list archive at Nabble.com. From vishu_73ns at YAHOO.COM Wed Sep 12 23:17:55 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Thu, 13 Sep 2007 01:17:55 -0500 Subject: php script Message-ID: I have been trying to load php scripts, phpinfo() page displays properly however any attempt to load script, (demo cartoweb phpinfo()) gives following message "WARNING: can't load mapscript library" I am using mapserver 4.10.2 (installed with php) and php 5.1.2 php -m gives following output information about extentions [root at gowri cgi-bin]# php -m [PHP Modules] bz2 ctype curl date dbase dom gd gettext hash iconv libxml mysql openssl pcre PDO pdo_sqlite pgsql posix Reflection session SimpleXML SPL SQLite standard tokenizer xml xmlreader xmlwriter xsl zlib [Zend Modules] From vishu_73ns at YAHOO.COM Wed Sep 12 23:31:31 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Thu, 13 Sep 2007 01:31:31 -0500 Subject: Cartography : Beginner Message-ID: I have the basic understanding of Mapserver working (the demo is working with own data and mapfiles, various formats), but yet to experiment with cartography skills, Having wasted three days trying to install/run php_mapscript starting with 5.2.1, still not working I am looking for some guidance into cartography for beginners, Cartoweb3 or Chameleon or any other tutorial, how about java, any tutorials.......... Regards, Vishal From gregor at HOSTGIS.COM Wed Sep 12 23:36:22 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 12 Sep 2007 23:36:22 -0700 Subject: Cartography : Beginner In-Reply-To: Message-ID: > Having wasted three days trying to install/run php_mapscript starting with > 5.2.1, still not working Have you given a try to FWTools (Linux), HostGIS Linux, or MS4W (Windows)? Those can really take a lot of the pain out of getting started. -- Gregor Mosheh / Greg Allensworth 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 From szekerest at GMAIL.COM Thu Sep 13 02:10:36 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 13 Sep 2007 11:10:36 +0200 Subject: Win32 Compilation and Installation In-Reply-To: Message-ID: You can do the complilation using the buildkit and VS 2005 as well. We've set up a buildbot configuration for doing regular builds using various platforms and compilers and target architectures. You can inspect the desired output of the various build steps here http://buildbot.osgeo.org:8504/ You might have to manually edit mapserver/nmake.opt for adding the various dependencies according to your needs. For example the VS2005 Win32 build uses the following additions: MS_BASE = E:\buildbot\osgeo\slaves\szekerest-msvc80-mapserver\buildkit\mapserver SWIG = E:\buildbot\SWIG-1.3.31\swig.exe MSVC_VER = 1400 PROJ=-DUSE_PROJ -DUSE_PROJ_API_H PROJ_DIR=$(MS_BASE)\..\proj-4.4.9 GDAL=-DUSE_GDAL GDAL_DIR=$(MS_BASE)\..\gdal OGR=-DUSE_OGR GEOS=-DUSE_GEOS GEOS_DIR=$(MS_BASE)\..\geos-2.2.3 ICONV=-DUSE_ICONV ICONV_DIR=$(MS_BASE)\..\libiconv-1.9.1 WMS=-DUSE_WMS_SVR WMSCLIENT= -DUSE_WMS_LYR CURL_DIR=$(MS_BASE)\..\curl-7.15.1 WINSOCK_LIB ="C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib\WS2_32.Lib" WFSCLIENT= -DUSE_WFS_LYR WFS=-DUSE_WFS_SVR WCS=-DUSE_WCS_SVR PYTHON_HOME = "$(MS_BASE)\..\Python-2.4.4" DOT_NET = YES AGG=-DUSE_AGG AGG_DIR=$(MS_BASE)\..\agg-2.4 POSTGIS =-DUSE_POSTGIS POSTGIS_DIR =$(MS_BASE)\..\postgresql-8.2.3 Best regards, Tamas 2007/9/13, Hayden Fisher : > Hi Howard, > > I'm using MS Visual Studio .Net 2003 that should do the trick, yes? And > will be .Net 1.1 compatible? > > And what if I eventually want to go to .Net 2.0? I'd need Visual Studio > 2005 with what buildkit? > > Regards, > Hayden Fisher > Development and Support > BizeAsset Pty Ltd > support at bizeasset.com.au > Mob: (04) 3838 4747 > Ph: (07) 3369 2222 > Fax: (07) 3369 8883 > Toll Free: 1800 836 850 > > -----Original Message----- > From: Howard Butler [mailto:hobu.inc at gmail.com] > Sent: Thursday, 13 September 2007 12:44 PM > To: Hayden Fisher > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Win32 Compilation and Installation > > MS4W provides C# bindings for MapServer, and unless you are looking > for something very specific, it is likely to cover most/all of your > needs. > > Alternatively, I would suggest getting a copy of the latest MapServer > buildkit . Note that this is > only compatible with MSVC 2003, not 2005. It has everything pre- > configured/setup if you can use 2003. > > I admit the Win32 Compilation doc has been neglected some since most > of us started just using the buildkit as our base. If you must still > soldier on, please add comments to the bottom of the doc with updates > that need to be made and we will try to incorporate them in the next > iteration of the doc (don't know when that would be). > > Howard > > On Sep 12, 2007, at 9:27 PM, Hayden Fisher wrote: > > > Hi All, > > > > > > > > Attempting to compile MapServer and then MapScript for C#. And have > > been trying to follow the 'Win32 Compilation and Installation' > > tutorial. > > > > > > > > The link to regex is not current, does anyone know if this is still > > necessary? Or have a more up to date instruction manual for > > building MapServer? > > > > > > > > The version I'm trying to compile is 4.10.2 > > > > > > > > Regards, > > > > Hayden Fisher > > > > Development and Support > > > > BizeAsset Pty Ltd > > > > support at bizeasset.com.au > > > > Mob: (04) 3838 4747 > > > > Ph: (07) 3369 2222 > > > > Fax: (07) 3369 8883 > > > > Toll Free: 1800 836 850 > > > > > > > > > From stephane.riff at CERENE.FR Thu Sep 13 02:23:24 2007 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Thu, 13 Sep 2007 11:23:24 +0200 Subject: Labelangleitem question Message-ID: Hello, I want to invert the sign of the field I want to use in layer->labelangleitem. I don't want to it in the database because the information are sent by gps. I want to know if it's possible do it on the fly with mapscript and how (expression in the labelangleitem property ???) ? Thanks Steff From stephan.holl at INTEVATION.DE Thu Sep 13 02:17:40 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Thu, 13 Sep 2007 11:17:40 +0200 Subject: FILTER slow Message-ID: Hallo mapserver-users, I have a problem using the FILTER inside a shape-layer. It turns out that the filters are getting quite slow when using more than ~500 or-validations. The filter gets applied by mapscript based on an external-database query-result. Are there some tuning-tipps how to 'filter' (shape)-datasets with large results efficient? Currently the filter looks like this LAYER DATA "adr" FILTER ( [adr_id] = 6446 OR [adr_id] = 6366 OR [adr_id] = 6483 OR [adr_id] = 6534 OR [adr_id] = 6535 OR [adr_id] = 6481 OR [adr_id] = 6489 OR [adr_id] = 6490 OR [adr_id] = 6478 OR [adr_id] = 6587 OR [adr_id] = 6484 OR [adr_id] [many more follow] FILTERITEM "adr_id" METADATA "DESCRIPTION" "Abfrageebene fr abfrageergebnisse" "SKIP_LEGEND" "3" END NAME "blanko" SIZEUNITS PIXELS STATUS OFF TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS [CLASS ommitted] END Thank you for any pointers. Best regards Stephan From thomas.bonfort at GMAIL.COM Thu Sep 13 03:10:08 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 13 Sep 2007 12:10:08 +0200 Subject: Labelangleitem question In-Reply-To: <46E9018C.7000708@cerene.fr> Message-ID: you can use a custom query on your database DATA "the_geom from (SELECT gid, nom, the_geom, (-angle) AS inv_angle FROM troncon_route) as foo using unique gid" and then use ANGLE [inv_angle] in your label block tb On 9/13/07, St?phane RIFF wrote: > Hello, > > I want to invert the sign of the field I want to use in > layer->labelangleitem. > I don't want to it in the database because the information are sent by gps. > > I want to know if it's possible do it on the fly with mapscript and how > (expression in the labelangleitem property ???) ? > > Thanks > Steff > From jelmerbs at XS4ALL.NL Thu Sep 13 03:10:16 2007 From: jelmerbs at XS4ALL.NL (Jelmer Baas) Date: Thu, 13 Sep 2007 12:10:16 +0200 Subject: Question about Labels Message-ID: Hello everyone, It's been quite a while since I posted here, everything went pretty smooth so far. Now I have a small problem with labels. We have MapInfo .TAB files, which are converted from AutoCAD drawings (meaning everything is in one layer). When I open one of these files in MapInfo, I can see labels on some places. When I draw the map with MapServer, I see only the (poly)lines. So, I added an extra layer of type Annotation. This, by default, doesn't show me any layers. So I need to add LABELITEM, but I have no idea what layers need to be labeled. Also, this changes with every file that's being drawn. Does anyone know how to tell MapServer to draw labels "The MapInfo" way? My current layer definition: LAYER NAME topo MINSCALE 1 MAXSCALE 3000 STATUS ON Type LINE CONNECTIONTYPE OGR CONNECTION "e:\topo.tab" STYLEITEM "AUTO" Class End #CLASS End #LAYER LAYER NAME topo MINSCALE 1 MAXSCALE 3000 LABELMAXSCALE 50000 STATUS ON Type ANNOTATION CONNECTIONTYPE OGR CONNECTION "e:\topo.tab" CLASS LABEL COLOR 100 0 0 POSITION LR SIZE MEDIUM END #label END #CLASS End #LAYER Any help would be greatly appreciated! With kind regards, Jelmer Baas Speer IT B.V. From andreas.albarello at TERRITORIUMONLINE.COM Thu Sep 13 03:22:22 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 13 Sep 2007 12:22:22 +0200 Subject: FILTER slow In-Reply-To: <20070913111740.58038d04@thoe.hq.intevation.de> Message-ID: Stephan Holl wrote: > I have a problem using the FILTER inside a shape-layer. It turns out > that the filters are getting quite slow when using more than ~500 > or-validations. > > The filter gets applied by mapscript based on an > external-database query-result. Are there some tuning-tipps how to > 'filter' (shape)-datasets with large results efficient? > > Currently the filter looks like this > LAYER > DATA "adr" > FILTER ( [adr_id] = 6446 OR [adr_id] = 6366 OR [adr_id] = 6483 OR > [adr_id] = 6534 OR [adr_id] = 6535 OR [adr_id] = 6481 OR [adr_id] = > 6489 OR [adr_id] = 6490 OR [adr_id] = 6478 OR [adr_id] = 6587 OR > [adr_id] = 6484 OR [adr_id] > [many more follow] Stephan, I've never done any benchmarking of this stuff myself, so I really don't know if this is going to be of any advantage, but you might try to use this syntax which should yield to the exact same results but is much more concise and should therefore at least take less parsing effort by Mapserver: FILTER ([adr_id] IN '6446,6366,6483,...') This is actually some sort of undocumented query syntax, so don't tell anybody ;) I'd appreciate it if you'd report back whether this actually was of any help or not. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From stephan.holl at INTEVATION.DE Thu Sep 13 03:49:33 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Thu, 13 Sep 2007 12:49:33 +0200 Subject: FILTER slow In-Reply-To: <46E90F5E.2050708@territoriumonline.com> Message-ID: Hello Andreas, Andreas Albarello , [20070913 - 12:22:22] > Stephan Holl wrote: > > I have a problem using the FILTER inside a shape-layer. It turns out > > that the filters are getting quite slow when using more than ~500 > > or-validations. > > > > The filter gets applied by mapscript based on an > > external-database query-result. Are there some tuning-tipps how to > > 'filter' (shape)-datasets with large results efficient? > > > > Currently the filter looks like this > > LAYER > > DATA "adr" > > FILTER ( [adr_id] = 6446 OR [adr_id] = 6366 OR [adr_id] = > > 6483 OR [adr_id] = 6534 OR [adr_id] = 6535 OR [adr_id] = 6481 OR > > [adr_id] = 6489 OR [adr_id] = 6490 OR [adr_id] = 6478 OR [adr_id] = > > 6587 OR [adr_id] = 6484 OR [adr_id] > > [many more follow] > > Stephan, > > I've never done any benchmarking of this stuff myself, so I really > don't know if this is going to be of any advantage, but you might try > to use this syntax which should yield to the exact same results but > is much more concise and should therefore at least take less parsing > effort by Mapserver: > > FILTER ([adr_id] IN '6446,6366,6483,...') Thanks for the tip, but unfortunately it does not solve my problem. The filter does not get applied, it does not show up at all with your syntax above. > This is actually some sort of undocumented query syntax, so don't > tell anybody ;) > > I'd appreciate it if you'd report back whether this actually was of > any help or not. Sure, bute no success yet! I will play with the filter a little more though. Best regards Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From andreas.albarello at TERRITORIUMONLINE.COM Thu Sep 13 04:00:29 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 13 Sep 2007 13:00:29 +0200 Subject: FILTER slow In-Reply-To: <20070913124933.0ce6582f@thoe.hq.intevation.de> Message-ID: Stephan Holl wrote: >> >> FILTER ([adr_id] IN '6446,6366,6483,...') > > Thanks for the tip, but unfortunately it does not solve my problem. The > filter does not get applied, it does not show up at all with your > syntax above. That's weird, this should indeed work and was confirmed the other day by Lars-G?ran Edholm on this mailing list. What Mapserver version are working on? This is a shapefile layer, right? Are you sure you've got it right? Notice the quotes around the comma-separated values (no space between the values)! You could also try to do a string comparison which might be necessary if adr_id is not a purely numerical field: FILTER ('[adr_in]' IN '6446,6366,6483') In this case you just quote the field as well. HTH, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From andreas.albarello at TERRITORIUMONLINE.COM Thu Sep 13 04:57:35 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 13 Sep 2007 13:57:35 +0200 Subject: FILTER slow In-Reply-To: <20070913131600.3d33fee3@thoe.hq.intevation.de> Message-ID: Stephan Holl wrote: > Thanks for that, I had spaces between the entries... now it works, but > I cannot see any speed improvements... Perhaps I should try postgis and > greate Querys on-the-fly. > > Perhaps there are other suggestions which may lead to more performance? > Is it worth to index the shapefile in such cases (about 3000 entries)? So it isn't the parsing that takes all the time but the actual match of each shape's attribute value against each value contained in the FILTER. That makes sense and syntax tuning is therefore not an option in this case. I highly doubt though that quadtree-indexing the shapefile is going to help in this case. It's my understanding that shptree, if that's what you mean, generates a spatial index which is useless for attribute matching as in your case. I don't know if there's some other attribute based indexing (dbf indexing, that is). A spatial database however might be worth a try. You'd probably want to have an index on that column and you could just keep applying a FILTER, albeit with a different syntax, for PostGIS for instance FILTER "adr_id IN (6446, 6366, ...)" Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From dmorissette at MAPGEARS.COM Thu Sep 13 05:18:40 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 13 Sep 2007 08:18:40 -0400 Subject: Question about Labels In-Reply-To: <46E90C88.2090505@xs4all.nl> Message-ID: Jelmer Baas wrote: > > Does anyone know how to tell MapServer to draw labels "The MapInfo" way? > When using CONNECTIONTYPE OGR, there are special attributes called OGR:LabelText, OGR:LabelAngle and OGR:LabelSize that can be used as LABELITEM, ANGLE and SIZE in the label definition for your annotation layer. You can use that as an alternative to using STYLEITEM AUTO. I looked for this in the docs and could not find any ref to it, so it's possible that this feature was never properly documented. Daniel -- Daniel Morissette http://www.mapgears.com/ From stephan.holl at INTEVATION.DE Thu Sep 13 04:16:00 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Thu, 13 Sep 2007 13:16:00 +0200 Subject: FILTER slow In-Reply-To: <46E9184D.6020301@territoriumonline.com> Message-ID: Hello Andreas, Andreas Albarello , [20070913 - 13:00:29] > Stephan Holl wrote: > >> > >> FILTER ([adr_id] IN '6446,6366,6483,...') > > > > Thanks for the tip, but unfortunately it does not solve my problem. > > The filter does not get applied, it does not show up at all with > > your syntax above. > > That's weird, this should indeed work and was confirmed the other day > by Lars-G?ran Edholm on this mailing list. What Mapserver version are > working on? This is a shapefile layer, right? Are you sure you've got > it right? Notice the quotes around the comma-separated values (no > space between the values)! You could also try to do a string > comparison which might be necessary if adr_id is not a purely > numerical field: > > FILTER ('[adr_in]' IN '6446,6366,6483') Thanks for that, I had spaces between the entries... now it works, but I cannot see any speed improvements... Perhaps I should try postgis and greate Querys on-the-fly. Perhaps there are other suggestions which may lead to more performance? Is it worth to index the shapefile in such cases (about 3000 entries)? Best Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From bengt.nilsson at COMBITECH.SE Thu Sep 13 05:25:14 2007 From: bengt.nilsson at COMBITECH.SE (Bengt Nilsson) Date: Thu, 13 Sep 2007 07:25:14 -0500 Subject: Segmentation fault - mapserver - postgis Message-ID: Hi, I'm trying to run mapserver as a static fastcgi (WMS)application but gets Segmenttaion fault every second time I request a map from the server. After that, the fastcgi server is restarted and works for one request again, and so on.. My configuration is Apache 2.2.6, mod_fastcgi 2.4.2, mapserver 4.10.0, postgis 1.2.1, postgresql 8.1.4 For debug purposes I have stripped my mapfile to just contain a single layer. The postgresql serverlog for the first request is: LOG: 00000: statement: select substring(version() from 12 for (position('on' in version()) - 13)) LOCATION: log_after_parse, postgres.c:605 LOG: 00000: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey [1] = pg_attribute.attnum and pg_class.relname = 'hamnar' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null LOCATION: log_after_parse, postgres.c:605 LOG: 00000: statement: BEGIN LOCATION: log_after_parse, postgres.c:605 LOG: 00000: statement: DECLARE mycursor BINARY CURSOR FOR SELECT "hamn"::text,asbinary(force_collection(force_2d (the_geom)),'NDR'),gid::text from hamnar WHERE the_geom && setSRID('BOX3D (12.3070307010819 55.6344639852787,13.7573413069622 56.2846738509944)'::BOX3D, find_srid('','hamnar','the_geom') ) LOCATION: log_after_parse, postgres.c:605 LOG: 00000: statement: FETCH ALL in mycursor LOCATION: log_after_parse, postgres.c:605 LOG: 00000: statement: CLOSE mycursor LOCATION: log_after_parse, postgres.c:605 ------------ and for the second, failing, request LOG: 00000: statement: select substring(version() from 12 for (position('on' in version()) - 13)) LOCATION: log_after_parse, postgres.c:605 LOG: 00000: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey [1] = pg_attribute.attnum and pg_class.relname = 'hamnar' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null LOCATION: log_after_parse, postgres.c:605 LOG: 00000: statement: BEGIN LOCATION: log_after_parse, postgres.c:605 WARNING: 25001: there is already a transaction in progress LOCATION: BeginTransactionBlock, xact.c:2711 LOG: 08P01: unexpected EOF on client connection LOCATION: SocketBackend, postgres.c:295 The Apache error log, for the failing request, says: [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: server "/srv/www/fcgi-bin/sjb-wms2" stderr: msConnPoolRequest (Hamnar,user=postgres password=xxxxxx dbname=yyyy host=localhost) -> got 0x81c4568 [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: server "/srv/www/fcgi-bin/sjb-wms2" stderr: msPOSTGISLayerFreeItemInfo called [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: server "/srv/www/fcgi-bin/sjb-wms2" stderr: msPOSTGISLayerInitItemInfo called [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: server "/srv/www/fcgi-bin/sjb-wms2" stderr: msPOSTGISLayerWhichShapes called [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: server "/srv/www/fcgi-bin/sjb-wms2" stderr: msPOSTGISLayerRetrievePGVersion(): query = select substring(version() from 12 for (position('on' in version()) - 13)) [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: server "/srv/www/fcgi-bin/sjb-wms2" stderr: msPOSTGISLayerRetrievePGVersion: Version String: 8.1.4 [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: incomplete headers (0 bytes) received from server "/srv/www/fcgi-bin/sjb-wms2" [Thu Sep 13 10:06:47 2007] [warn] FastCGI: server "/srv/www/fcgi-bin/sjb- wms2" (pid 7817) terminated due to uncaught signal '11' (Segmentation fault) [Thu Sep 13 10:06:47 2007] [warn] FastCGI: server "/srv/www/fcgi-bin/sjb- wms2" restarted (pid 7922) [Thu Sep 13 10:06:47 2007] [error] [client 10.3.226.74] FastCGI: server "/srv/www/fcgi-bin/sjb-wms2" stderr: msPOSTGISLayerRetrievePGVersion(POSTGISLayerOpen called datastatement: the_geom from hamnar ~ The mapfile for the actual layer is like this LAYER NAME Hamnar METADATA wms_title "Hamnar" ##required wms_srs "EPSG:2400 EPSG:4326 EPSG:9804" wfs_title "Hamnar" ##required END DUMP TRUE TYPE POINT STATUS ON DEBUG ON CONNECTIONTYPE postgis CONNECTION "user=postgres password=xxxxxx dbname=yyyyy host=localhost" DATA 'the_geom from hamnar' PROCESSING "CLOSE_CONNECTION=DEFER" PROJECTION "init=epsg:4326" ##recommended END MINSCALE 0 # Set by merge script LABELITEM "hamn" CLASS NAME Hamnar_CLS STYLE SYMBOL 'circle' COLOR 136 152 139 # Set by merge script, S52 CHGRD (Gray) SIZE 8 END STYLE SYMBOL 'circle' COLOR 238 90 108 # Set by merge script, S52 CHRED (Red) SIZE 5 END LABEL TYPE truetype FONT 'arial' COLOR 7 7 7 # Set by merge script, S52 CHBLK (Black) SIZE 10 POSITION ul END END END I would appreciate if somebody could give me a hint of what's causing the error. /Regards Bengt From flavio at TYDAC.CH Thu Sep 13 05:42:04 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 13 Sep 2007 14:42:04 +0200 Subject: Question about Labels In-Reply-To: <46E90C88.2090505@xs4all.nl> Message-ID: Hi Jelmer Example, if those are MapInfo Text Features (see LABELITEM and LABELANGLEITEM): LAYER NAME "Streets fro Labeling" TYPE ANNOTATION MINSCALE 0 MAXSCALE 300 SYMBOLSCALE 2000 STATUS ON CONNECTIONTYPE OGR CONNECTION "..\data\streets.TAB" LABELITEM "OGR:LabelText" LABELANGLEITEM "OGR:LabelAngle" CLASS NAME "Street Labels" COLOR -1 -1 -1 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT arial MINSIZE 1 SIZE 2 COLOR 0 0 0 END END END Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Jelmer Baas To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 13 Sep 2007 12:10:16 +0200 Subject: [UMN_MAPSERVER-USERS] Question about Labels > Hello everyone, > > It's been quite a while since I posted here, everything went pretty > smooth so far. > > Now I have a small problem with labels. We have MapInfo .TAB files, > which are converted from AutoCAD drawings (meaning everything is in > one > layer). > When I open one of these files in MapInfo, I can see labels on some > places. When I draw the map with MapServer, I see only the > (poly)lines. > > So, I added an extra layer of type Annotation. This, by default, > doesn't > show me any layers. So I need to add LABELITEM, but I have no idea > what > layers need to be labeled. Also, this changes with every file that's > being drawn. > > Does anyone know how to tell MapServer to draw labels "The MapInfo" > way? > > > My current layer definition: > > > LAYER > NAME topo > MINSCALE 1 > MAXSCALE 3000 > STATUS ON > Type LINE > CONNECTIONTYPE OGR > CONNECTION "e:\topo.tab" > STYLEITEM "AUTO" > Class > End #CLASS > End #LAYER > LAYER > NAME topo > MINSCALE 1 > MAXSCALE 3000 > LABELMAXSCALE 50000 > STATUS ON > Type ANNOTATION > CONNECTIONTYPE OGR > CONNECTION "e:\topo.tab" > CLASS > LABEL > COLOR 100 0 0 > POSITION LR > SIZE MEDIUM > END #label > END #CLASS > End #LAYER > > Any help would be greatly appreciated! > > With kind regards, > Jelmer Baas > Speer IT B.V. From warmerdam at POBOX.COM Thu Sep 13 05:47:54 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Sep 2007 08:47:54 -0400 Subject: Segmentation fault - mapserver - postgis In-Reply-To: Message-ID: Bengt Nilsson wrote: > Hi, > > I'm trying to run mapserver as a static fastcgi (WMS)application but gets > Segmenttaion fault every second time I request a map from the server. After > that, the fastcgi server is restarted and works for one request again, and so > on.. > > My configuration is Apache 2.2.6, mod_fastcgi 2.4.2, mapserver 4.10.0, > postgis 1.2.1, postgresql 8.1.4 Bengt, I would be willing to follow up on this issue privately as I suspect an issue in my fastcgi implementation within MapServer. It would be helpful if you could file a bug report and attach a mapfile, and dump of a minimal table sufficient to reproduce the problem. Please assign the problem directly to me (userid "warmerdam"). I would also appreciate it if you could test the problem with the current MapServer RC though that isn't strictly necessary. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From jelmerbs at XS4ALL.NL Thu Sep 13 05:54:04 2007 From: jelmerbs at XS4ALL.NL (Jelmer Baas) Date: Thu, 13 Sep 2007 14:54:04 +0200 Subject: Question about Labels In-Reply-To: Message-ID: Flavio, Thanks for the example! As I wrote to Daniel (I replied to him, instead of the list, sorry): This works, sometimes. I know get this nice error: msDrawMap(): Image handling error. Failed to draw layer named 'topo'. msOGRGetValues(): OGR error. Invalid field index!?! For *some* layers. Others do seem to work... Any ideas? -- Jelmer > Example, if those are MapInfo Text Features (see LABELITEM and > LABELANGLEITEM): > > LAYER > NAME "Streets fro Labeling" > TYPE ANNOTATION > MINSCALE 0 > MAXSCALE 300 > SYMBOLSCALE 2000 > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "..\data\streets.TAB" > LABELITEM "OGR:LabelText" > LABELANGLEITEM "OGR:LabelAngle" > CLASS > NAME "Street Labels" > COLOR -1 -1 -1 > LABEL > ANTIALIAS TRUE > TYPE TRUETYPE > FONT arial > MINSIZE 1 > SIZE 2 > COLOR 0 0 0 > END > END > END > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: Jelmer Baas > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Thu, 13 Sep 2007 12:10:16 +0200 > Subject: [UMN_MAPSERVER-USERS] Question about Labels > >> Hello everyone, >> >> It's been quite a while since I posted here, everything went pretty >> smooth so far. >> >> Now I have a small problem with labels. We have MapInfo .TAB files, >> which are converted from AutoCAD drawings (meaning everything is in >> one >> layer). >> When I open one of these files in MapInfo, I can see labels on some >> places. When I draw the map with MapServer, I see only the >> (poly)lines. >> >> So, I added an extra layer of type Annotation. This, by default, >> doesn't >> show me any layers. So I need to add LABELITEM, but I have no idea >> what >> layers need to be labeled. Also, this changes with every file that's >> being drawn. >> >> Does anyone know how to tell MapServer to draw labels "The MapInfo" >> way? >> >> >> My current layer definition: >> >> >> LAYER >> NAME topo >> MINSCALE 1 >> MAXSCALE 3000 >> STATUS ON >> Type LINE >> CONNECTIONTYPE OGR >> CONNECTION "e:\topo.tab" >> STYLEITEM "AUTO" >> Class >> End #CLASS >> End #LAYER >> LAYER >> NAME topo >> MINSCALE 1 >> MAXSCALE 3000 >> LABELMAXSCALE 50000 >> STATUS ON >> Type ANNOTATION >> CONNECTIONTYPE OGR >> CONNECTION "e:\topo.tab" >> CLASS >> LABEL >> COLOR 100 0 0 >> POSITION LR >> SIZE MEDIUM >> END #label >> END #CLASS >> End #LAYER >> >> Any help would be greatly appreciated! >> >> With kind regards, >> Jelmer Baas >> Speer IT B.V. > > > > From dmorissette at MAPGEARS.COM Thu Sep 13 06:04:06 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 13 Sep 2007 09:04:06 -0400 Subject: Question about Labels In-Reply-To: <46E92EDC.9020109@xs4all.nl> Message-ID: Jelmer Baas wrote: > > Thanks for your quick response. I tried to use OGR:LabelText, and it > seems to work -- sometimes. For *some* layers I get this following, > quite interesting, error: > > msDrawMap(): Image handling error. Failed to draw layer named 'topo'. > msOGRGetValues(): OGR error. Invalid field index!?! > Jelmer, I checked in the code, and it seems that you'd get that error if MapServer tries to read one of the OGR:Label* attributes on a feature that does not have a label definition, or in the case of TAB files, on a MapInfo object that is not a TEXT object. I am realizing just now that this makes it impossible to use OGR:Label* on a .TAB file that has mixed object types. I think it would be possible to make MapServer handle this more gracefully, i.e. returning some default values (text="", angle=0 and size=0) in cases where the object is not of the right type. I created a ticket for this an a future enhancement (http://trac.osgeo.org/mapserver/ticket/2311). In the meantime you'll have to make sure the files you use for annotation contain only objects of type TEXT. Daniel -- Daniel Morissette http://www.mapgears.com/ From jelmerbs at XS4ALL.NL Thu Sep 13 06:16:37 2007 From: jelmerbs at XS4ALL.NL (Jelmer Baas) Date: Thu, 13 Sep 2007 15:16:37 +0200 Subject: Question about Labels In-Reply-To: <46E93546.9020905@mapgears.com> Message-ID: Daniel Morissette wrote: > Jelmer, > > I checked in the code, and it seems that you'd get that error if > MapServer tries to read one of the OGR:Label* attributes on a feature > that does not have a label definition, or in the case of TAB files, on a > MapInfo object that is not a TEXT object. > > I am realizing just now that this makes it impossible to use OGR:Label* > on a .TAB file that has mixed object types. I think it would be possible > to make MapServer handle this more gracefully, i.e. returning some > default values (text="", angle=0 and size=0) in cases where the object > is not of the right type. Hmm, so this means I'll have to detect whether or not a .TAB file has a labels or not? I'm not sure if this would be per item, or per .TAB file / layer? Also, I don't think this detection can be done in MapServer, right? Maybe in MapBasic... Would you happen to have any ideas about that, too? Thanks for the help! -- Jelmer From warmerdam at POBOX.COM Thu Sep 13 06:25:27 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Sep 2007 09:25:27 -0400 Subject: using attributes in the VAT table of an ESRI GRID instead of Value In-Reply-To: <12649235.post@talk.nabble.com> Message-ID: Julia Harrell wrote: > Anyone ever find a way to use VAT fields? > > I'd sure hate to have convert my statewide GRID to a giant statewide polygon > vector layer just to be able to get at the extended VAT attributes. It would > undoubtedly crawl when it comes to display and query speed, even tiled up > and indexed... > > Wondering if there is a way to convert the ESRI Binary GRID (integer, with a > VAT) to an image and "repopulate" the pixel values to reflect what's in the > desired VAT attribute field instead of the VALUE field, but I have not found > a good example of the correct options/parameters to use with GDAL (or > anything else) to accomplish this. Julia, I recently added support for accessing VATs through GDAL from Arc/Info binary grid coverages. It was part of a project with FAO where we used mapscript to override the behavior of the WMS GetFeatureInfo in MapServer to report values looked up from the VAT instead of reporting the pixel values directly. So, some of the machinery exists. In particular: o The AIGRID driver in GDAL/OGR trunk (soon to be 1.5) can read the VAT from the info directory. o The GDAL Python/C#/Java/Ruby/Perl scripting interface now includes methods to access the VAT (called a raster attribute table in GDAL) and lookup values. But MapServer does not have any built-in knowledge of the raster attribute tables. There is also no current GDAL utility to reclassify (repopulate) a raster by passing it through the attribute table. If anyone is interested, I'm confident FAO would not mind my publishing the Python script we used to wrap WMS to implement the custom GetFeatureInfo using the VAT/RAT. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From stephane.riff at CERENE.FR Thu Sep 13 07:31:00 2007 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Thu, 13 Sep 2007 16:31:00 +0200 Subject: Labelangleitem question In-Reply-To: Message-ID: First, Thanks for answer. I found another way to do this that is not explain in the documentation. We can set the labelangleitem with mapscript to : $layer->set("labelangleitem","(angle*-1)"); This works for me. So maybe it can be part of the documentation ? Does the subquery method is still using the indexes of the table (I don't think so) ? Thanks Steff thomas bonfort wrote: >you can use a custom query on your database > >DATA "the_geom from > (SELECT gid, nom, the_geom, (-angle) AS inv_angle FROM troncon_route) > as foo using unique gid" > >and then use >ANGLE [inv_angle] in your label block > >tb > >On 9/13/07, St?phane RIFF wrote: > > >>Hello, >> >>I want to invert the sign of the field I want to use in >>layer->labelangleitem. >>I don't want to it in the database because the information are sent by gps. >> >>I want to know if it's possible do it on the fly with mapscript and how >>(expression in the labelangleitem property ???) ? >> >>Thanks >>Steff >> >> >> > > > From hartpence_gis at CO.JASPER.IA.US Thu Sep 13 07:36:29 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Thu, 13 Sep 2007 09:36:29 -0500 Subject: Odd query results on Point layer Message-ID: Hello, I have a point layer which is actually a database with X & Y fields. When I perform use query mode and select points, the results I get don't match the point I am selecting. Could someone help me understand what I am doing wrong? Lawrence http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CSeptic.map&zoomsize=2&layers=ortho+Septic+Parcels+Lots+ROW+Survey+Section+Sub+ParcelPt+Water+Shields+Highways+Roads+Watershed+County+Towns&mode=browse&slayer=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem=&shapeindex=&savequery= Here is the point layer in my MAP file: LAYER CONNECTION " ODBC:@Septic tblSewersyAllHistoricInfo wkbPoint " CONNECTIONTYPE OGR DATA "Septic" #METADATA # "wms_srs" "4326" # "wms_title" "Septic" #END NAME "Septic" DUMP TRUE TEMPLATE 'C:\MS4W\Apache\htdocs\Septic\Septic_query.html' HEADER 'C:\MS4W\Apache\htdocs\Septic\Septic_head.html' TRANSPARENCY 100 SIZEUNITS PIXELS STATUS ON TOLERANCE 7 TOLERANCEUNITS PIXELS TYPE POINT UNITS FEET LABELITEM 'septicpermitnumber' CLASS STYLE COLOR 170 0 170 MAXSIZE 100 MINSIZE 1 SIZE 6 SYMBOL "square" END LABEL TYPE TRUETYPE SIZE 10 FONT Arial COLOR 170 0 150 OUTLINECOLOR 255 255 255 POSITION UC #ANGLE AUTO OFFSET 0 5 MINDISTANCE 200 END #LABEL END END From dmorissette at MAPGEARS.COM Thu Sep 13 07:41:17 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 13 Sep 2007 10:41:17 -0400 Subject: Question about Labels In-Reply-To: <46E93835.4020006@xs4all.nl> Message-ID: Jelmer Baas wrote: > > Hmm, so this means I'll have to detect whether or not a .TAB file has a > labels or not? I'm not sure if this would be per item, or per .TAB file > / layer? > Not just that. You need to detect whether a TAB file has *only* labels in it. Until ticket 2311 is fixed, any object that is not of type TEXT will trigger the error that you got. > Also, I don't think this detection can be done in MapServer, right? > Maybe in MapBasic... Would you happen to have any ideas about that, too? > Well, there is no simple flag to turn on in MapServer if that's what you're looking for. I know that the information is available in the header of the .MAP files of TAB datasets, but it's not easily accessible with any tool. Maybe in MapBasic, I don't know. The MITAB library (http://mitab.maptools.org/) has access to that information in the TABMAPHeaderBlock C++ class, but you'd need to write custom C++ code to get it. Well the output of MITAB's "tabdump -a file.tab" dumps the values of these members so you could also use "grep" on that (look for m_numPointObjects, m_numLineObjects, m_numRegionObjects and m_numTextObjects). A simpler option could be to convert the files to MIF and do an automated search using a text editor or some text processing tool... but even that's not that simple. The best of course is to know your data: in that case you'd know which files contain labels and which ones don't. We'll forgive you for not knowing your data if you tell us you're a programmer and not a geographer. ;-) Daniel -- Daniel Morissette http://www.mapgears.com/ From warmerdam at POBOX.COM Thu Sep 13 08:12:19 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Sep 2007 11:12:19 -0400 Subject: Odd query results on Point layer In-Reply-To: Message-ID: Lawrence Hartpence wrote: > Hello, > > I have a point layer which is actually a database with X & Y fields. When I > perform use query mode and select points, the results I get don't match the > point I am selecting. Could someone help me understand what I am doing wrong? > > Lawrence > > http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CSeptic.map&zoomsize=2&layers=ortho+Septic+Parcels+Lots+ROW+Survey+Section+Sub+ParcelPt+Water+Shields+Highways+Roads+Watershed+County+Towns&mode=browse&slayer=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem=&shapeindex=&savequery= > > Here is the point layer in my MAP file: > > LAYER > CONNECTION " > > ODBC:@Septic > tblSewersyAllHistoricInfo > > wkbPoint > > " Lawrence, I'm afraid this is an FAQ though possible not actually answered in the FAQ. The problem is that MapServer depends on being able to pull query results by feature id, but the feature ids provided by the ODBC provider are not consistent and vary depending on the current spatial and attribute filters in place. The solution is to change your VRT definition to identify an integer field in the source features as a unique and consistent feature id. Assuming you have a column in your table called "septic_id" that is integer and unique for all rows, you could change your definition to something like: CONNECTION " ODBC:@Septic tblSewersyAllHistoricInfo wkbPoint septic_id " If this helps, and you are grateful, perhaps you could spend a bit of time digging around in the mapserver web site finding a good place to add this sort of information. If you provide a good location and particular text, you can email me privately and I'll add. I often have trouble finding the right place to put hints such that they will be encountered by users with a problem. Presumably you will have a better perspective on the matter. :-) Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From David.Fawcett at STATE.MN.US Thu Sep 13 08:17:51 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 13 Sep 2007 10:17:51 -0500 Subject: FILTER slow In-Reply-To: A<20070913131600.3d33fee3@thoe.hq.intevation.de> Message-ID: Stephan, I think that any time that you make that many comparisons in a filter or expression, it is going to be relatively expensive. PostGIS, with indexes may optimize it a some. I am curious how dynamic your data is. A common optimization concept is to pre-process and pre-classify your data as much as possible, so you need to do as little processing at the time of the request. Since you are hard-coding the address ID's into the filter for your map file, I am guessing that your data isn't too dynamic. Would it be possible for you to add a column to your shapefile to store a 1 or a 0 to indicate whether the feature should be included into your layer. Then, pre-classify your data to populate this column based on the address ID's. Then, your filter could be a simple regex /1/ or /0/. Should run very quickly. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephan Holl Sent: Thursday, September 13, 2007 6:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] FILTER slow Hello Andreas, Andreas Albarello , [20070913 - 13:00:29] > Stephan Holl wrote: > >> > >> FILTER ([adr_id] IN '6446,6366,6483,...') > > > > Thanks for the tip, but unfortunately it does not solve my problem. > > The filter does not get applied, it does not show up at all with > > your syntax above. > > That's weird, this should indeed work and was confirmed the other day > by Lars-G?ran Edholm on this mailing list. What Mapserver version are > working on? This is a shapefile layer, right? Are you sure you've got > it right? Notice the quotes around the comma-separated values (no > space between the values)! You could also try to do a string > comparison which might be necessary if adr_id is not a purely > numerical field: > > FILTER ('[adr_in]' IN '6446,6366,6483') Thanks for that, I had spaces between the entries... now it works, but I cannot see any speed improvements... Perhaps I should try postgis and greate Querys on-the-fly. Perhaps there are other suggestions which may lead to more performance? Is it worth to index the shapefile in such cases (about 3000 entries)? Best Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From Bailey at TEXASSABAL.COM Thu Sep 13 09:05:09 2007 From: Bailey at TEXASSABAL.COM (Bailey) Date: Thu, 13 Sep 2007 11:05:09 -0500 Subject: antialias lines In-Reply-To: Message-ID: The lines look a lot better thin, with the your changes below. Thanks. I still have not figured out how to antialias lines with a larger width or size, but will not need to use it immediatedly anyway, since I'm now satisfied with the look of my map. Bailey Landress -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS Rodrigo Haas Sent: Wednesday, September 12, 2007 10:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] antialias lines Hellow Bailey! Try this: ############################################### IMAGETYPE PNG24 SYMBOL NAME 'cartoline' TYPE CARTOLINE LINECAP round LINEJOIN round LINEJOINMAXSIZE 3 END LAYER NAME "Contours" STATUS on TYPE LINE DATA "Contours" #SYMBOLSCALE 24000 #TRANSPARENCY alpha CLASS NAME "Contours" STYLE COLOR 0 0 0 SYMBOL "cartoline" ANTIALIAS TRUE #WIDTH 2 END END END ################################################ Good Luck! ;) Rodrigo Haas From Bailey at TEXASSABAL.COM Thu Sep 13 09:14:43 2007 From: Bailey at TEXASSABAL.COM (Bailey) Date: Thu, 13 Sep 2007 11:14:43 -0500 Subject: antialias lines In-Reply-To: <46E8083E.5157.008F.0@dnr.state.mn.us> Message-ID: I made your change from "Width 2" to "Size 2", but I still have the same problem. Upon another user's recommendation I made the contour lines thin, which improved their look tremendously, but still wonder how to antialias thicker lines. Do you know if there is a test MAPFILE & .shp file with wavy lines, with which I could test my system? Thanks, Bailey -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Wednesday, September 12, 2007 3:40 PM To: Bailey Landress Subject: Re: [UMN_MAPSERVER-USERS] antialias lines Try SIZE 2 instead of WIDTH 2. I don't think the cartoline code respects width. Steve >>> On 9/12/2007 at 5:04 AM, in message , Bailey Landress wrote: > Trying to fix jagged lines. See anything wrong with the Mapfile below? > When I change IMAGEMODE to RGBA the background of my map turns black. Also > if I take out SYMBOL "cartoline" from the Style tag under Layer, I do not > see any change in regard to antialiasing. Any help would be greatly > appreciated. Thanks. > > MapServer version 4.10.2 > > In MAP: > > IMAGETYPE png24 > > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > SYMBOL > NAME 'cartoline' > TYPE cartoline > LINECAP round > LINEJOIN round > LINEJOINMAXSIZE 3 > END > > > > LAYER > NAME "Contours" > STATUS on > TYPE LINE > DATA "Contours" > SYMBOLSCALE 24000 > TRANSPARENCY alpha > CLASS > STYLE > COLOR 000 000 000 > SYMBOL "cartoline" > ANTIALIAS TRUE > WIDTH 2 > END > END > END > > > Bailey From rodrigomlg at GMAIL.COM Thu Sep 13 09:43:19 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 13 Sep 2007 17:43:19 +0100 Subject: antialias lines In-Reply-To: Message-ID: Hi Bailey. To give width to a cartoline symbol you need to use the SIZE property of STYLE element instead of WIDTH. IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END SYMBOL NAME 'cartoline' TYPE cartoline LINECAP round LINEJOIN round LINEJOINMAXSIZE 3 END LAYER NAME "Contours" STATUS on TYPE LINE DATA "Contours" SYMBOLSCALE 24000 TRANSPARENCY alpha CLASS STYLE COLOR 000 000 000 SYMBOL "cartoline" ANTIALIAS TRUE SIZE 3 END END END Rodrigo. On 9/12/07, Bailey Landress wrote: > > Trying to fix jagged lines. See anything wrong with the Mapfile below? > When I change IMAGEMODE to RGBA the background of my map turns > black. Also > if I take out SYMBOL "cartoline" from the Style tag under Layer, I do > not > see any change in regard to antialiasing. Any help would be greatly > appreciated. Thanks. > > MapServer version 4.10.2 > > In MAP: > > IMAGETYPE png24 > > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > SYMBOL > NAME 'cartoline' > TYPE cartoline > LINECAP round > LINEJOIN round > LINEJOINMAXSIZE 3 > END > > > > LAYER > NAME "Contours" > STATUS on > TYPE LINE > DATA "Contours" > SYMBOLSCALE 24000 > TRANSPARENCY alpha > CLASS > STYLE > COLOR 000 000 000 > SYMBOL "cartoline" > ANTIALIAS TRUE > WIDTH 2 > END > END > END > > > Bailey > -------------- next part -------------- An HTML attachment was scrubbed... URL: From correosig at GMAIL.COM Thu Sep 13 09:52:32 2007 From: correosig at GMAIL.COM (Ruben Pardo) Date: Thu, 13 Sep 2007 18:52:32 +0200 Subject: FastCGI , ArcSDE, mapserver testing performance Message-ID: Hi everybody, I installed mapserver, with arcsde, fastcgi, without compilation problems (i think that is correctly working), but i have not seen better performance in my test. I'm testing with jmeter (around 300 request) with fastcgi enabled and disabled (commenting code in httpd.conf), and the performance are similar. I have no logs in what am i doing incorrectly? This is my configuration: My linux distro is : Linux version 2.6.15-1.2054_FC5smp (bhcompile at hs20-bc1-3.build.redhat.com) (gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)) the output for ./mapserv -v is : MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=SDE INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG a ps -axf output with apache and mapserver running is :::: 19785 ? Ss 0:00 /usr/local/apache/bin/httpd -k start 31651 ? S 0:00 \_ /usr/local/apache/bin/fcgi- -k start 31652 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start 31653 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start 31654 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start 31655 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start 31656 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start 31660 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start 31663 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start 31664 ? S 0:00 \_ /usr/local/apache/bin/httpd -k start the httpd.conf snippet code is LoadModule fastcgi_module /usr/local/apache/modules/mod_fastcgi.so (and having mod_fastcgi.so in this place) AddHandler fastcgi-script fcgi FastCgiConfig -appConnTimeout 200 -idle-timeout 60 -init-start-delay 1 -minProcesses 4 -maxProcesses 20 -maxClassProcesses 20 thanks very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Sep 13 09:56:07 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 13 Sep 2007 09:56:07 -0700 Subject: FastCGI , ArcSDE, mapserver testing performance In-Reply-To: <736d33ec0709130952m5254491k10217d907c1653e2@mail.gmail.com> Message-ID: The last time I used Mapserver with FastCGI, I was informed that there's nothing in Mapserver that really benefits from FastCGI, and that support was really just there for compatibility in case you're already using FastCGI. -- Gregor Mosheh / Greg Allensworth 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 From matt at CGFBROKERAGE.COM Thu Sep 13 10:02:18 2007 From: matt at CGFBROKERAGE.COM (Matt S.) Date: Thu, 13 Sep 2007 12:02:18 -0500 Subject: Hiding zoom option Message-ID: Hey, hoping someone can help me figure out how to do this what i want is for the user to select an area on the map and have it automatically zoom in 2x...i have a drop down box with that option and when they select the map it zooms in i just don't want the drop down box to show...any suggestions? Matt From correosig at GMAIL.COM Thu Sep 13 10:03:00 2007 From: correosig at GMAIL.COM (Ruben Pardo) Date: Thu, 13 Sep 2007 19:03:00 +0200 Subject: FastCGI , ArcSDE, mapserver testing performance In-Reply-To: <46E96BA7.2000403@hostgis.com> Message-ID: uhmm, thank very much, i see some tests that encorouge the use of fastcgi + mapserver + sde , for example , http://www.google.es/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fcommunity%2Fconferences%2FMUM3%2Fpresent%2Fsession10%2Fmsvsarcims%2Fdownload&ei=H2zpRvvaLIWcxAGBjsnPBQ&usg=AFQjCNEyr-9v7X3rWR1OCBaqOsZNKSZ20w&sig2=LH3kWGSPeMXACXsO6m4Nqg but i really don't know if recently versions of mapserver doesn't need fastcgi for increase performance. 2007/9/13, Gregor Mosheh : > > The last time I used Mapserver with FastCGI, I was informed that there's > nothing in Mapserver that really benefits from FastCGI, and that support > was really just there for compatibility in case you're already using > FastCGI. > > -- > Gregor Mosheh / Greg Allensworth > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Sep 13 10:18:32 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 13 Sep 2007 10:18:32 -0700 Subject: Hiding zoom option In-Reply-To: Message-ID: Matt S. wrote: > i have a drop down box with that option and when > they select the map it zooms in i just don't want the drop down box to > show...any suggestions? So the map already does what you want, you just want the dropdown to not show? I see two easy options in the HTML: a) Change the select to a hidden field: b) Enclose the selector in a hidden div:
That's assuming that I understood the question, of course. -- Gregor Mosheh / Greg Allensworth 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 From thomas.bonfort at GMAIL.COM Thu Sep 13 10:22:01 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 13 Sep 2007 19:22:01 +0200 Subject: antialias lines In-Reply-To: <10cf58b30709130943t63abcae4x8d881430ac7e3a45@mail.gmail.com> Message-ID: another solution is to wait a few days for 5.0 to be released, which supports antialiasing natively using the agg rendering backend. cartoline symbols are likely to be deprecated in a future release by the way, as all of their functionality (and more) is supported by AGG. tb From woodbri at SWOODBRIDGE.COM Thu Sep 13 10:27:48 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 13 Sep 2007 13:27:48 -0400 Subject: antialias lines In-Reply-To: Message-ID: thomas bonfort wrote: > another solution is to wait a few days for 5.0 to be released, which > supports antialiasing natively using the agg rendering backend. > > cartoline symbols are likely to be deprecated in a future release by > the way, as all of their functionality (and more) is supported by AGG. > > tb And AGG is much faster rendering than cartoline. -Steve W From warmerdam at POBOX.COM Thu Sep 13 10:38:15 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Sep 2007 13:38:15 -0400 Subject: FastCGI , ArcSDE, mapserver testing performance In-Reply-To: <736d33ec0709131002u49b145cdq5b2f0e1ae7924c20@mail.gmail.com> Message-ID: Ruben Pardo wrote: > uhmm, thank very much, i see some tests that encorouge the use of fastcgi + > mapserver + sde , for example , > > http://www.google.es/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fcommunity%2Fconferences%2FMUM3%2Fpresent%2Fsession10%2Fmsvsarcims%2Fdownload&ei=H2zpRvvaLIWcxAGBjsnPBQ&usg=AFQjCNEyr-9v7X3rWR1OCBaqOsZNKSZ20w&sig2=LH3kWGSPeMXACXsO6m4Nqg > > > but i really don't know if recently versions of mapserver doesn't need > fastcgi for increase performance. Folks, It is still my opinion that FastCGI can be very helpful for situations where there are very high connection costs to a database. The most obvious examples of this are (I believe) Oracle Spatial and especially SDE. By contrast, disk files, and low connection cost databases like postgres and mysql do not benefit significantly. But I would also advise people to avoid it unless performance is killing them and they believe it is due to high connection costs as FastCGI is pretty darn tricky to setup and may be flakey/buggy. Best regards, > 2007/9/13, Gregor Mosheh < gregor at hostgis.com >: > > The last time I used Mapserver with FastCGI, I was informed that > there's > nothing in Mapserver that really benefits from FastCGI, and that support > was really just there for compatibility in case you're already using > FastCGI. > > -- > Gregor Mosheh / Greg Allensworth > 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 > > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Thu Sep 13 10:40:10 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Sep 2007 13:40:10 -0400 Subject: FastCGI , ArcSDE, mapserver testing performance In-Reply-To: <736d33ec0709130952m5254491k10217d907c1653e2@mail.gmail.com> Message-ID: Ruben Pardo wrote: > Hi everybody, > > I installed mapserver, with arcsde, fastcgi, without compilation > problems (i think that is correctly working), but i have not seen better > performance in my test. > I'm testing with jmeter (around 300 request) with fastcgi enabled and > disabled (commenting code in httpd.conf), and the performance are similar. > I have no logs in > what am i doing incorrectly? Ruben, Are you setting the CLOSE_CONNECTION=DEFER on your SDE layers? Is the performance good, bad or terrible? If you run with debugging enabled for the layer you should hopefully see messages about the connection being reused from the pool if things are working properly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From jvanulde at NRCAN.GC.CA Thu Sep 13 12:40:04 2007 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Thu, 13 Sep 2007 15:40:04 -0400 Subject: Odd query results on Point layer In-Reply-To: A Message-ID: Actually we are having the same problem here. What version are you using? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lawrence Hartpence Sent: September 13, 2007 07:36 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Odd query results on Point layer Hello, I have a point layer which is actually a database with X & Y fields. When I perform use query mode and select points, the results I get don't match the point I am selecting. Could someone help me understand what I am doing wrong? Lawrence http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcg i-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CSeptic.map& zoomsize=2&layers=ortho+Septic+Parcels+Lots+ROW+Survey+Section+Sub+Parce lPt+Water+Shields+Highways+Roads+Watershed+County+Towns&mode=browse&slay er=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.5 1&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem=&shapeindex= &savequery= Here is the point layer in my MAP file: LAYER CONNECTION " ODBC:@Septic tblSewersyAllHistoricInfo wkbPoint " CONNECTIONTYPE OGR DATA "Septic" #METADATA # "wms_srs" "4326" # "wms_title" "Septic" #END NAME "Septic" DUMP TRUE TEMPLATE 'C:\MS4W\Apache\htdocs\Septic\Septic_query.html' HEADER 'C:\MS4W\Apache\htdocs\Septic\Septic_head.html' TRANSPARENCY 100 SIZEUNITS PIXELS STATUS ON TOLERANCE 7 TOLERANCEUNITS PIXELS TYPE POINT UNITS FEET LABELITEM 'septicpermitnumber' CLASS STYLE COLOR 170 0 170 MAXSIZE 100 MINSIZE 1 SIZE 6 SYMBOL "square" END LABEL TYPE TRUETYPE SIZE 10 FONT Arial COLOR 170 0 150 OUTLINECOLOR 255 255 255 POSITION UC #ANGLE AUTO OFFSET 0 5 MINDISTANCE 200 END #LABEL END END From giuseppe.derossi at EMAIL.IT Thu Sep 13 13:57:09 2007 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Thu, 13 Sep 2007 22:57:09 +0200 Subject: scale problem Message-ID: Hi I've pointed that when I put the scale to 1000 (or 1/1000), in the map 1 mm should be egual to 1 meter, well, if I print the map and I try to measure it by using a real meter line I see that the map is stretched. I don't know if it is only my experence. Please, try to print a Map after setting the scale to a normalized value as for example 1/1000, now on your paper try to measure a distance by using a line: the number of n millimeters should correspond to n meters, but the line will measure a different number of millimeters. Is that your experience too ? is there anybody who can explain me this item, and is there solution in order to have a phisical millimeter on the paper when I set the scale to 1/1000 ? Another issue: how can I get the meter (graphical) line under the main map to have normalized values as factor of 10 ie 10,10... 100 meters etc ? The target consists on using the map as a valid measurement tool. thaks to everybody -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Cerchi un?auto usata, vuoi vendere il camper o il cellulare? Prova Email.it Annunci, pochi click per pubblicare e trovare ci? che vuoi! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6893&d=20070913 From andreas.albarello at TERRITORIUMONLINE.COM Thu Sep 13 14:35:44 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 13 Sep 2007 23:35:44 +0200 Subject: [SPAM: low][UMN_MAPSERVER-USERS] scale problem In-Reply-To: Message-ID: Giuseppe De Rossi wrote: > I don't know if it is only my experence. Please, try to print a Map after > setting the scale to a normalized value as for example 1/1000, now on your > paper try to measure a distance by using a line: the number of n millimeters > should correspond to n meters, but the line will measure a different number > of millimeters. Giuseppe, this issue might be due to the map's resolution (set in the map file) and the image's resolution not matching. Be aware that Mapserver doesn't write any resolution information to the produced image, and printer drivers usually assume an image is at 96 dpi if nothing else is given. So, if your map is rendered at 72 dpi by Mapserver (which I believe is the default) and gets perhaps printed at 96, you'll get some discrepancy. I'd therefore suggest you try to set your map's resolution to 96 dpi or alternatively print your image at the same resolution set in the map file. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From friendvn2000 at YAHOO.COM Thu Sep 13 17:02:25 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Thu, 13 Sep 2007 19:02:25 -0500 Subject: queryByAttributes @ MAXSCALE (PHPMapscript) Message-ID: Hi all, I have a layer that I don't want show at large scale, so I set MAXSCALE parameter to it... Now I must use queryByAttributes to this layer. To search all the shapes I must set Map full extent. So the query order doesn't perform. Any one have solution ? Thanks a lot! From malabapa at CI.HARRISONBURG.VA.US Thu Sep 13 17:45:58 2007 From: malabapa at CI.HARRISONBURG.VA.US (Paul A. Malabad) Date: Thu, 13 Sep 2007 20:45:58 -0400 Subject: unsubscribe Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From gagan.bansal at RELIANCEADA.COM Thu Sep 13 23:31:03 2007 From: gagan.bansal at RELIANCEADA.COM (Gagan Bansal) Date: Fri, 14 Sep 2007 01:31:03 -0500 Subject: setfilter expression issue Message-ID: Hi I am using MapServer 4 Windows - version 2.2.5 with php I am unable to set the expression for the setfilter method. $oLayer->setFilter("\"BLDGNAME='shop'\""); Is it correct format? Thanks for any help. Gagan From bengt.nilsson at COMBITECH.SE Fri Sep 14 01:26:31 2007 From: bengt.nilsson at COMBITECH.SE (Nilsson Bengt) Date: Fri, 14 Sep 2007 10:26:31 +0200 Subject: Segmentation fault - mapserver - postgis In-Reply-To: A<46E9317A.4000504@pobox.com> Message-ID: Hi, I'm not sure that it's a fastcgi problem. As you can see from the postgresql log, postgresql reports a warning: 'WARNING: 25001: there is already a transaction in progress'. The cause of that, I guess, is that mapserver, in mappostgis.c, sends (another) 'BEGIN'. During the first call it also sent a BEGIN. In mappostgis.c there is a check on the outcome of the BEGIN (if(!result || PQresultStatus (result) != PGRES_COMMAND_OK) { ) and I guess that it won't be OK because of the warning. Digging around in the postgresql.conf file gave me an idea of changing the '#client_min_messages = notice' to 'client_min_messages = error'. As I understand that means that postgresql won't report warnings back to the client, mappostgis, and thus the test won't fail. I haven't got any 'Segmentation faults' from the application when running it as a static server since my change so I guess I'm on the right track. I wonder why mapserver sends repeating BEGINs and no ENDs. I can't find any code for sending an END. Normally, no fastcgi with persistant connections, it won't matter since I guess that a closed connection also means 'END'. /Regards Bengt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: den 13 september 2007 14:48 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Segmentation fault - mapserver - postgis Bengt Nilsson wrote: > Hi, > > I'm trying to run mapserver as a static fastcgi (WMS)application but > gets Segmenttaion fault every second time I request a map from the > server. After that, the fastcgi server is restarted and works for one > request again, and so on.. > > My configuration is Apache 2.2.6, mod_fastcgi 2.4.2, mapserver 4.10.0, > postgis 1.2.1, postgresql 8.1.4 Bengt, I would be willing to follow up on this issue privately as I suspect an issue in my fastcgi implementation within MapServer. It would be helpful if you could file a bug report and attach a mapfile, and dump of a minimal table sufficient to reproduce the problem. Please assign the problem directly to me (userid "warmerdam"). I would also appreciate it if you could test the problem with the current MapServer RC though that isn't strictly necessary. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ale.pas at TISCALI.IT Fri Sep 14 01:34:17 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 14 Sep 2007 10:34:17 +0200 Subject: KMLMapServer project beta release Message-ID: Hello, I released the first beta of a small package the helps serving mapserver data as KML/KMZ folders and/or network links. It is written in php_mapscript and use PHP5 with simplexml functions. Licence is GPL but commercial support/licencing is available on demand. The goal of this project is to add KML output capabilities to any running MapServer installation. It will run out-of-the-box with zero or minimal configuration. Basically you just install this package somewhere under you web server root and it will work without any configuration. Configuration, if needed, is done through metadata in the MapServer?s mapfile, so you don?t have any other configuration files to worry about. There is also a simple caching system since some requests could be quite CPU intensive. By now, the project page and download is here: http://www.itopen.it/soluzioni/kml-map-server/ Testers, bug hunters and help are welcome! -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From aiandolo at GRUPPOAS.IT Fri Sep 14 03:31:14 2007 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Fri, 14 Sep 2007 12:31:14 +0200 Subject: MapInfo layer "shifting" Message-ID: I have a mapfile with some Oracle10Xe layers (no projection at all) and everything works fine. My problem is when I add 1 MapInfo layer that seems to be like "shifted" (north and west). I'd like to "move" it so that it exactly overlays the others "oracle-based" layers. Is it possibile? Do I have to define a projection for that MapInfo layer? Thanks in advance, Antonio No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.16/1005 - Release Date: 13/09/2007 11.45 From stephan.holl at INTEVATION.DE Fri Sep 14 04:22:04 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Fri, 14 Sep 2007 13:22:04 +0200 Subject: GetFeatureInfo from cascaded WMS? Message-ID: Dear MapServers, is it possible to receive GetFeatureInfos through a MapServer-WMS which acts as a WMS-client (cascaded?) The current MS 4.4.8 does not seem to support it. Does the current or even the upcoming MS 5 support this? Thanks in advance. Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From Tom.Kralidis at EC.GC.CA Fri Sep 14 04:47:31 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 14 Sep 2007 07:47:31 -0400 Subject: GetFeatureInfo from cascaded WMS? In-Reply-To: A<20070914132204.328818be@thoe.hq.intevation.de> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephan Holl > Sent: 14 September, 2007 7:22 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] GetFeatureInfo from cascaded WMS? > > Dear MapServers, > > is it possible to receive GetFeatureInfos through a > MapServer-WMS which acts as a WMS-client (cascaded?) The > current MS 4.4.8 does not seem to support it. > > Does the current or even the upcoming MS 5 support this? Not currently, although I've heard requests for this recently, as well as cascading GetLegendGraphic requests. Can you file an enhancement at http://trac.osgeo.org/mapserver/ ? I can take an initial look. Thanks ..Tom From stephan.holl at INTEVATION.DE Fri Sep 14 05:05:49 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Fri, 14 Sep 2007 14:05:49 +0200 Subject: GetFeatureInfo from cascaded WMS? In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059EA3@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Hello Tom, "Kralidis,Tom [Burlington]" , [20070914 - 07:47:31] > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephan Holl > > Sent: 14 September, 2007 7:22 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] GetFeatureInfo from cascaded WMS? > > > > Dear MapServers, > > > > is it possible to receive GetFeatureInfos through a > > MapServer-WMS which acts as a WMS-client (cascaded?) The > > current MS 4.4.8 does not seem to support it. > > > > Does the current or even the upcoming MS 5 support this? > > Not currently, although I've heard requests for this recently, as well > as cascading GetLegendGraphic requests. > > Can you file an enhancement at http://trac.osgeo.org/mapserver/ ? I > can take an initial look. I have filed it in tickeht 2315. http://trac.osgeo.org/mapserver/ticket/2315 Thanks for looking into it. Best regards Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From warmerdam at POBOX.COM Fri Sep 14 05:41:12 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 14 Sep 2007 08:41:12 -0400 Subject: Segmentation fault - mapserver - postgis In-Reply-To: Message-ID: Nilsson Bengt wrote: > Hi, > > I'm not sure that it's a fastcgi problem. > > As you can see from the postgresql log, postgresql reports a > warning: 'WARNING: 25001: there is already a transaction in progress'. > > The cause of that, I guess, is that mapserver, in mappostgis.c, sends > (another) 'BEGIN'. During the first call it also sent a BEGIN. In > mappostgis.c > there is a check on the outcome of the BEGIN (if(!result || > PQresultStatus > (result) != PGRES_COMMAND_OK) { ) and I guess that it won't be OK > because > of the warning. > > Digging around in the postgresql.conf file gave me an idea of changing > the '#client_min_messages = notice' to 'client_min_messages = error'. As > I > understand that means that postgresql won't report warnings back to the > client, mappostgis, and thus the test won't fail. > > I haven't got any 'Segmentation faults' from the application when > running it as a static server since my change so I guess I'm on the > right track. > > I wonder why mapserver sends repeating BEGINs and no ENDs. I > can't find any code for sending an END. Normally, no fastcgi with > persistant > connections, it won't matter since I guess that a closed connection also > > means 'END'. Bengt, Good analysis! This should certainly be filed as a bug report and I'd appreciate being added in the cc: list. Likely it should be primarily assigned to whoever owns the postgis component. I classify this as loosely a fastcgi problem since it is a problem that would only come out in fastcgi use (or perhaps long running mapscript applications). I *did* use fastcgi with postgis a few years ago so either things have regressed or there is some specific aspect of your configuration that tickles the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at MAPGEARS.COM Fri Sep 14 06:29:51 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 14 Sep 2007 09:29:51 -0400 Subject: setfilter expression issue In-Reply-To: Message-ID: Gagan Bansal wrote: > Hi > I am using MapServer 4 Windows - version 2.2.5 with php > I am unable to set the expression for the setfilter method. > > $oLayer->setFilter("\"BLDGNAME='shop'\""); > > Is it correct format? > You have two options: 1- The preferred (most efficient): $oLayer->set('filteritem', 'BLDGNAME'); $oLayer->setFilter('shop'); 2- Using logical expression (just as in a mapfile, the whole expression has to be delimited by round brackets and the attribute name by square brackets): $oLayer->setFilter("('[BLDGNAME]'='shop')"); Daniel -- Daniel Morissette http://www.mapgears.com/ From richard.greenwood at GMAIL.COM Fri Sep 14 06:41:23 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 14 Sep 2007 07:41:23 -0600 Subject: jBox Message-ID: Dankelman, G.H. wrote: > Hello Rich, > > We using jbox for many years with great succes in Mapserver > > Now Y download ms4w (mapserver) version 4.10.2. and de measure functies > do not display measure results in de status.status. > > Do You now how we can solve this problem. > > Thanks, > > > > Gerrit Dankelman > > Gis ingenieur Gerrit, It is usually best to post questions to the mapserver list so that others make participate also. I have copied this email to the list. There is nothing in mapserver 4.10 that would prevent jBox from working as it did in earlier versions. And I just did a quick test to verify that. Writing to the status line is not usually reliable because the browser or another application may also be writing to it, and overwrite your information. A better method is to put your distance data in a div using innerHTML. For example
 
e = document.getElementById("distance"); e.innerHTML = dist; Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From wesp at GDV.COM Fri Sep 14 07:13:02 2007 From: wesp at GDV.COM (Oliver Wesp) Date: Fri, 14 Sep 2007 16:13:02 +0200 Subject: JAVA Mapscript, WMS Layer Exceptions Message-ID: Dear List, I'm running an application with java mapscript on tomcat 5.0.28. My mapfile contains wms layers dynamically set by the client. So I don't have control over the server that is used. The problem is everytime a server returns a xml exception tomcat returns an internal server error (error 500) on map.draw() containing the xml exception from the remote server. The exception is directly returned to the client. Now I was looking for a possibility to catch errors by checking the result of the wms request prior to map.draw() and disabeling the wms layer in case of a failure. I thought OWSRequest could maybe do the trick by sending the request to my map via OWSRequest checking the content type and disabeling my wms layer in case of a xml exception. Unfortunately (some would say not surprisingly) map.OWSDispatch(req) calls for map.draw() resulting in the same error 500. I don't have the chance to do any further processing. Is this behaviour intended? Schould'nt map.OWSRequest return MS_FAILURE? Any ideas to come around this and catch these exceptions? Any help is appreciated. best regards, Oliver -- Dipl.-Geogr. Oliver Wesp GDV Gesellschaft f?r geografische Datenverarbeitung mbH Binger Str. 49-51 55218 Ingelheim am Rhein Germany Fon 049(0)6132-7148-18 Fax 049(0)6132-7148-28 www.gdv.com Sitz der Gesellschaft: Ingelheim Amtsgericht Mainz HRB 23123 Gerichtsstand Mainz Gesch?ftsf?hrer: Thomas Riehl, Dirk H?bener From umberto.nicoletti at GMAIL.COM Fri Sep 14 08:11:51 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 14 Sep 2007 17:11:51 +0200 Subject: JAVA Mapscript, WMS Layer Exceptions In-Reply-To: <46EA96EE.4070902@gdv.com> Message-ID: What about submitting first the request via HttpClient and only if that does not fail add the WMS layer to the map? HttpClient is at: http://jakarta.apache.org/httpcomponents/httpclient-3.x/ Umberto On 9/14/07, Oliver Wesp wrote: > Dear List, > > I'm running an application with java mapscript on tomcat 5.0.28. My > mapfile contains wms layers dynamically set by the client. So I don't > have control over the server that is used. The problem is everytime a > server returns a xml exception tomcat returns an internal server error > (error 500) on map.draw() containing the xml exception from the remote > server. The exception is directly returned to the client. > > Now I was looking for a possibility to catch errors by checking the > result of the wms request prior to map.draw() and disabeling the wms > layer in case of a failure. > I thought OWSRequest could maybe do the trick by sending the request to > my map via OWSRequest checking the content type and disabeling my wms > layer in case of a xml exception. Unfortunately (some would say not > surprisingly) map.OWSDispatch(req) calls for map.draw() resulting in the > same error 500. I don't have the chance to do any further processing. Is > this behaviour intended? Schould'nt map.OWSRequest return MS_FAILURE? > > Any ideas to come around this and catch these exceptions? > Any help is appreciated. > > best regards, > Oliver > > -- > Dipl.-Geogr. Oliver Wesp > GDV Gesellschaft f?r geografische Datenverarbeitung mbH > Binger Str. 49-51 > 55218 Ingelheim am Rhein > Germany > Fon 049(0)6132-7148-18 > Fax 049(0)6132-7148-28 > www.gdv.com > Sitz der Gesellschaft: Ingelheim > Amtsgericht Mainz HRB 23123 > Gerichtsstand Mainz > Gesch?ftsf?hrer: Thomas Riehl, Dirk H?bener > From rodrigohaas at GMAIL.COM Fri Sep 14 10:41:09 2007 From: rodrigohaas at GMAIL.COM (Rodrigo Haas) Date: Fri, 14 Sep 2007 14:41:09 -0300 Subject: Zoom to feature Message-ID: Hi all! How make zoom to feature with pan and zoom tools? Thanks, Rodrigo Haas -------------- next part -------------- An HTML attachment was scrubbed... URL: From wef1 at CEC.WUSTL.EDU Fri Sep 14 10:40:02 2007 From: wef1 at CEC.WUSTL.EDU (Edward Fialkowski) Date: Fri, 14 Sep 2007 12:40:02 -0500 Subject: possible to add extra xml tag in WFS from postgis database? Message-ID: Hi List, I have mapserver serving a WFS from a postgis database and was wondering if it woudl be possible to add some extra tags with values from the database. For example, here is one feature output: -150.282283,61.121625 -150.156914,61.173753 -150.238278,61.121625 -150.273558,61.123167 -150.282283,61.126103 - 150.243647,61.132514 -150.223019,61.168200 -150.197936,61.173608 -150.161342 ,61.173753 -150.156914,61.167431 -150.175039,61.147975 -150.195642,61.136814- 150.238278,61.121625 2.90162230000e-001 MSS DNR 2.90159043604e-001 2.78830290124e-003 and I would just love to add a xxx for 1 to this output. The xxx is a number in the 'value' column of the same database mapserver is accessing and would be different for each feature. Any ideas would be greatly appreciated. Thanks! -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: From Josh.Hevenor at DPRA.COM Fri Sep 14 10:55:51 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Fri, 14 Sep 2007 12:55:51 -0500 Subject: SDE 9.2 required dll's Message-ID: I just installed MapServer on a fresh machine and installed only the ArcSDE SDK with no other Arc products on the machine including SDE. When I ran my previous demo map file through shp2img I received noticed that the following DLL's were not found. * sde91.dll * sg91.dll * pe91.dll I copied the dll's into c:\ArcGIS\ArcSDE\bin\ from a machine running SDE 9.1 and the messages went away. Although there were error messages the image was rendered and from what I could tell it was no different then the rendering on my other machine. I'm not sure if this is a bug or an error in my installation method but I thought I would pass it along, Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Phone: 905-333-4544 ext. 19 Fax: 905-333-0455 Cell: 905-320-7525 Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3247 bytes Desc: image001.jpg URL: From chodgson at REFRACTIONS.NET Fri Sep 14 11:40:25 2007 From: chodgson at REFRACTIONS.NET (Chris Hodgson) Date: Fri, 14 Sep 2007 11:40:25 -0700 Subject: Map-tile edge rendering issue Message-ID: I stumbled across this problem recently recently and found it somewhat intriguing. My setup is an Openlayers client talking directly to mapserver in tiled WMS mode. My map data is a polygon coverage, being rendered as a single-pixel wide line. I noticed in several places, where the edge of a polygon was nearly parallel to and crossed the edge of the map tile, it is possible for a piece of the line to be missing. Ie. the tile on one side rendered the first 1/3 of the line, the tile on the other side rendered the last 1/3 of the line, but the 1/3 of the line in the middle went un-drawn by either tile. I see that someone else has already documented something closely related to this issue: http://crschmidt.net/blog/archives/154/mapserver-rendering-bug/ And that it has already been solved in tilecache by adding a buffer around the meta-tiles during rendering - but I don't think that solution will help with the single-pixel-wide line. Meta-tiling and/or increasing the size of the tiles would reduce the likelihood of this happening, but I don't think they could prevent it. Rendering oversize tiles/meta-tiles and cropping them wouldn't have any effect, unless you were using anti-aliasing, in which case the problem might be reduced to the line getting more faint as it crossed the edge, but still I don't think that the line would be properly rendered. Without looking at the code, I suspect the heart of the problem is two-fold, (1) the clipper is rounding to the nearest pixel (possibly differently for each tile) and (2) the line rasterizer cannot and will not draw exactly the same pixels for lines that are clipped as it would for drawing the whole line (especially if they are clipped differently in each tile). I suppose this might be considered a minor issue because of how rarely one would expect to have their lines be nearly parallel to and cross the tile boundaries, but I've actually seen that it can happen on just about any line that crosses a tile boundary at an acute angle. It seems to me that the only solution is to not clip lines on the edge of the image, and instead keep the entire line to the next point (but not the entire linestring or polygon). This obviously has an impact (probably minor) on performance, so perhaps it should be an option to turn it on/off. Perhaps I'm completely off-base here, and maybe no-one cares how good non-anti-aliased, single-pixel-wide lines look. But the solution seems simple enough that it might be worth implementing. Chris From crschmidt at METACARTA.COM Fri Sep 14 12:40:49 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Fri, 14 Sep 2007 15:40:49 -0400 Subject: Map-tile edge rendering issue In-Reply-To: <46EAD599.9060604@refractions.net> Message-ID: On Fri, Sep 14, 2007 at 11:40:25AM -0700, Chris Hodgson wrote: > I see that someone else has already documented something closely related > to this issue: > > http://crschmidt.net/blog/archives/154/mapserver-rendering-bug/ > > And that it has already been solved in tilecache by adding a buffer > around the meta-tiles during rendering - but I don't think that solution > will help with the single-pixel-wide line. Meta-tiling and/or increasing > the size of the tiles would reduce the likelihood of this happening, but > I don't think they could prevent it. It would prevent it, because the problem only presents itself at tile edges -- and the data from MapServer no longer *has* any visible tile edges in a meta-tiled TileCache instance. To see similar behavior to TileCache metatiling, set the 'gutter' option on your WMS layer to '15' or something similar (see http://openlayers.org/dev/examples/gutter.html) and I bet you'd see the problem disappear. > Rendering oversize tiles/meta-tiles > and cropping them wouldn't have any effect, unless you were using > anti-aliasing, in which case the problem might be reduced to the line > getting more faint as it crossed the edge, but still I don't think that > the line would be properly rendered. If you're not convinced, try the gutter option. If that doesn't fix it, you'd be right -- but I bet it will. > I suppose this might be considered a minor issue because of how rarely > one would expect to have their lines be nearly parallel to and cross the > tile boundaries, but I've actually seen that it can happen on just about > any line that crosses a tile boundary at an acute angle. I certainly don't consider this bug to be minor issue, but I wrote code to fix the problem, so I would assume that's obvious ;) Regards, -- Christopher Schmidt MetaCarta From Steve.Lime at DNR.STATE.MN.US Fri Sep 14 13:17:11 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 14 Sep 2007 15:17:11 -0500 Subject: Map-tile edge rendering issue In-Reply-To: <46EAD599.9060604@refractions.net> Message-ID: The bubbled look in Chris' blog was actually a GD rendering bug that was fixed in one of the newer 2.0.3x releases. Can't remember which. Anyway, MapServer itself doesn't clip features at the edge of the image. Instead it applies a buffer to the clipping rectangle based on the largest symbol being used, so partial features are still visible as the line heads off the edge of the map. I don't think clipping is the cause of the artifacts you are seeing. What I'm not sure about and will have to check the code is whether that same buffered extent is used as the selection extent so you capture features just off screen that could possibly be seen if rendered with a large enough symbol. The code in question is in mapdraw.c. Do you have some samples and sample data? If you file a bug I'd be happy to take a look. Steve >>> On 9/14/2007 at 1:40 PM, in message <46EAD599.9060604 at refractions.net>, Chris Hodgson wrote: > I stumbled across this problem recently recently and found it somewhat > intriguing. > > My setup is an Openlayers client talking directly to mapserver in tiled > WMS mode. My map data is a polygon coverage, being rendered as a > single-pixel wide line. I noticed in several places, where the edge of a > polygon was nearly parallel to and crossed the edge of the map tile, it > is possible for a piece of the line to be missing. Ie. the tile on one > side rendered the first 1/3 of the line, the tile on the other side > rendered the last 1/3 of the line, but the 1/3 of the line in the middle > went un-drawn by either tile. > > I see that someone else has already documented something closely related > to this issue: > > http://crschmidt.net/blog/archives/154/mapserver-rendering-bug/ > > And that it has already been solved in tilecache by adding a buffer > around the meta-tiles during rendering - but I don't think that solution > will help with the single-pixel-wide line. Meta-tiling and/or increasing > the size of the tiles would reduce the likelihood of this happening, but > I don't think they could prevent it. Rendering oversize tiles/meta-tiles > and cropping them wouldn't have any effect, unless you were using > anti-aliasing, in which case the problem might be reduced to the line > getting more faint as it crossed the edge, but still I don't think that > the line would be properly rendered. > > Without looking at the code, I suspect the heart of the problem is > two-fold, (1) the clipper is rounding to the nearest pixel (possibly > differently for each tile) and (2) the line rasterizer cannot and will > not draw exactly the same pixels for lines that are clipped as it would > for drawing the whole line (especially if they are clipped differently > in each tile). > > I suppose this might be considered a minor issue because of how rarely > one would expect to have their lines be nearly parallel to and cross the > tile boundaries, but I've actually seen that it can happen on just about > any line that crosses a tile boundary at an acute angle. > > It seems to me that the only solution is to not clip lines on the edge > of the image, and instead keep the entire line to the next point (but > not the entire linestring or polygon). This obviously has an impact > (probably minor) on performance, so perhaps it should be an option to > turn it on/off. Perhaps I'm completely off-base here, and maybe no-one > cares how good non-anti-aliased, single-pixel-wide lines look. But the > solution seems simple enough that it might be worth implementing. > > Chris From chodgson at REFRACTIONS.NET Fri Sep 14 13:46:01 2007 From: chodgson at REFRACTIONS.NET (Chris Hodgson) Date: Fri, 14 Sep 2007 13:46:01 -0700 Subject: Map-tile edge rendering issue In-Reply-To: <20070914194049.GC28269@metacarta.com> Message-ID: Christopher Schmidt wrote: > It would prevent it, because the problem only presents itself at tile > edges -- and the data from MapServer no longer *has* any visible tile > edges in a meta-tiled TileCache instance. To see similar behavior to > TileCache metatiling, set the 'gutter' option on your WMS layer to '15' > or something similar (see http://openlayers.org/dev/examples/gutter.html) > and I bet you'd see the problem disappear. In your example, I can still see the problem even with the gutter turned on. It is almost gone, but there is a still a small defect in the rendering at the edge. It is masked by the anti-aliasing and thickness of your lines. In my case, with no anti-aliasing and single-pixel lines, it is far more visible ... or rather, completely invisible when it shouldn't be. My understanding of how lines are rasterized still says to me that it is impossible to get pixel-perfect seemlessness unless the renderer on either side of the tile boundary is rendering the exact same line. If you make the "gutter" big enough, it will help to make this the case, but if your lines are too long the gutter solution still won't work. > If you're not convinced, try the gutter option. If that doesn't fix it, > you'd be right -- but I bet it will. Hmm, I tried it, I'm using mapserver 4.8.4, and it didn't help at all. I even tried making it really big, to the point that I really did expect it to help, and it still didn't so I'm not convinced either way yet. You can have a look at the problem here, with the gutter set to 100: http://draum.refractions.net/gisi/test.html Notice the missing border between the Metchosin and Malahat polygons, if you zoom in far enough it will draw it. Looking forward to your feedback. Chris From crschmidt at METACARTA.COM Fri Sep 14 13:54:23 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Fri, 14 Sep 2007 16:54:23 -0400 Subject: Map-tile edge rendering issue In-Reply-To: <46EAF309.1040400@refractions.net> Message-ID: On Fri, Sep 14, 2007 at 01:46:01PM -0700, Chris Hodgson wrote: > Hmm, I tried it, I'm using mapserver 4.8.4, and it didn't help at all. I > even tried making it really big, to the point that I really did expect > it to help, and it still didn't so I'm not convinced either way yet. You > can have a look at the problem here, with the gutter set to 100: > > http://draum.refractions.net/gisi/test.html > > Notice the missing border between the Metchosin and Malahat polygons, if > you zoom in far enough it will draw it. Okay. No problem. I'm just wrong :) Sorry for being misleading. Regards, -- Christopher Schmidt MetaCarta From lged_morris at HOTMAIL.COM Fri Sep 14 15:05:51 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Sat, 15 Sep 2007 00:05:51 +0200 Subject: Jbox and digitize polygon Message-ID: Hi! Does anyone have an modified Jbox with possibilitis to digitize polygons? Lars-G?ran Edholm _________________________________________________________________ Vad blir det till middag? http://arla.msn.se/Partner/Msn/index____18291.aspx From gagan.bansal at RELIANCEADA.COM Fri Sep 14 22:19:19 2007 From: gagan.bansal at RELIANCEADA.COM (Gagan Bansal) Date: Sat, 15 Sep 2007 00:19:19 -0500 Subject: setfilter expression issue Message-ID: Thanks Daniel with these options it is woking now. thanks again Gagan From gagan.bansal at RELIANCEADA.COM Sat Sep 15 02:51:57 2007 From: gagan.bansal at RELIANCEADA.COM (Gagan Bansal) Date: Sat, 15 Sep 2007 04:51:57 -0500 Subject: oracle spatial connection Message-ID: i am trying to dispaly the oracle spatial 10g v2 data in mapserver but my application display the blank page, not able to get where is the mistake following has been done: # -load shape file in oracle using shp2sdojava - created spatial index on 'geom' # swapping dll as described in the readme file of the mapserver #Setting environment variables - ORACLE_HOME : C:\oracle\product\10.2.0\db_1 - ORACLE_SID : orcl - TNS_ADMIN : C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN #here is the map file for oracle spatial data connection MAP NAME DEMO STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -1001942.225269 2155071.744446 -998438.476117 2158497.456450 UNITS METERS SHAPEPATH "../data1" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt TRANSPARENT FALSE # Start of web interface definition WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/bigmaps_oracle.log" MS_ERRORFILE "/tmp/bigmaps_oracle_error.log" METADATA END END # Start of reference map PROJECTION "init=epsg:32643" END # Start of layer definitions LAYER GROUP "Polygon" NAME playground CONECTIONTYPE oraclespatial CONNECTION "scott/bigmaps at orcl" DATA "GEOM FROM PLAYGROUND_UTM USING UNIQUE OBJECTID USING SRID 32643" METADATA "DESCRIPTION" "playground" "RESULT_FIELDS" "OBJECTID" "GROUP" "Polygon" "LAYER" "playground" END TYPE POLYGON STATUS ON CLASS NAME "playground" COLOR 200 255 0 OUTLINECOLOR 120 120 120 END TOLERANCE 5 END # Layer END # Map File log file also not being creaed in the specified folder? Thanks of any help Gagan From Jukka.Rahkonen at MMMTIKE.FI Sat Sep 15 03:59:19 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Sat, 15 Sep 2007 13:59:19 +0300 Subject: oracle spatial connection Message-ID: Hi, I would check first if the extents of the map file and data returned from Oracle match. Oracle used to have only its own SRID system (nothing to do with epsg codes) before 10g version. Make a simple SQL request directly with SQL*Plus for one feature only and check if the coordinates you get really fall inside your map extents. -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Gagan Bansal Sent: Sat 15.9.2007 12:51 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] oracle spatial connection i am trying to dispaly the oracle spatial 10g v2 data in mapserver but my application display the blank page, not able to get where is the mistake following has been done: # -load shape file in oracle using shp2sdojava - created spatial index on 'geom' # swapping dll as described in the readme file of the mapserver #Setting environment variables - ORACLE_HOME : C:\oracle\product\10.2.0\db_1 - ORACLE_SID : orcl - TNS_ADMIN : C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN #here is the map file for oracle spatial data connection MAP NAME DEMO STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -1001942.225269 2155071.744446 -998438.476117 2158497.456450 UNITS METERS SHAPEPATH "../data1" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt TRANSPARENT FALSE # Start of web interface definition WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/bigmaps_oracle.log" MS_ERRORFILE "/tmp/bigmaps_oracle_error.log" METADATA END END # Start of reference map PROJECTION "init=epsg:32643" END # Start of layer definitions LAYER GROUP "Polygon" NAME playground CONECTIONTYPE oraclespatial CONNECTION "scott/bigmaps at orcl" DATA "GEOM FROM PLAYGROUND_UTM USING UNIQUE OBJECTID USING SRID 32643" METADATA "DESCRIPTION" "playground" "RESULT_FIELDS" "OBJECTID" "GROUP" "Polygon" "LAYER" "playground" END TYPE POLYGON STATUS ON CLASS NAME "playground" COLOR 200 255 0 OUTLINECOLOR 120 120 120 END TOLERANCE 5 END # Layer END # Map File log file also not being creaed in the specified folder? Thanks of any help Gagan From coolfrenz85 at YAHOO.COM Sat Sep 15 10:36:52 2007 From: coolfrenz85 at YAHOO.COM (cool frenz) Date: Sat, 15 Sep 2007 10:36:52 -0700 Subject: Giving Link on image Message-ID: Hi, I am creating a map of village, using php mapscript and mysql db, wherein i am showing the farms as points. Now i want to display some images and other information related to those farms, when a user clicks on corresponding farm (Effectively providing a link, so that a popup can open showing required information). Is it possible to do so ? If yes, please let me know how to do this ! Thanks and Regards, Piyush --------------------------------- Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Sat Sep 15 06:34:29 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Sat, 15 Sep 2007 10:34:29 -0300 Subject: oracle spatial connection In-Reply-To: Message-ID: Hi all, This error can be relate with Oracle Spatial directly. After you imported your data in database did you execute the SDO_MIGRATE.TO_CURRENT function? This step is important to fix some objects in database. As Jukka wrote, you need to check the projection did you define, can you try to draw a map without any projection defined?. Best regards. --------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer Rahkonen Jukka wrote: > Hi, > > I would check first if the extents of the map file and data returned from Oracle match. Oracle used to have only its own SRID system (nothing to do with epsg codes) before 10g version. Make a simple SQL request directly with SQL*Plus for one feature > only and check if the coordinates you get really fall inside your map extents. > > -Jukka Rahkonen- > > -----Original Message----- > From: UMN MapServer Users List on behalf of Gagan Bansal > Sent: Sat 15.9.2007 12:51 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] oracle spatial connection > > i am trying to dispaly the oracle spatial 10g v2 data in mapserver but my > application display the blank page, not able to get where is the mistake > > following has been done: > > # -load shape file in oracle using shp2sdojava > - created spatial index on 'geom' > > # swapping dll as described in the readme file of the mapserver > #Setting environment variables > - ORACLE_HOME : C:\oracle\product\10.2.0\db_1 > - ORACLE_SID : orcl > - TNS_ADMIN : C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN > > #here is the map file for oracle spatial data connection > > MAP > NAME DEMO > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -1001942.225269 2155071.744446 -998438.476117 2158497.456450 > UNITS METERS > SHAPEPATH "../data1" > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > TRANSPARENT FALSE > > # Start of web interface definition > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > LOG "/tmp/bigmaps_oracle.log" > MS_ERRORFILE "/tmp/bigmaps_oracle_error.log" > METADATA > END > END > > # Start of reference map > PROJECTION > "init=epsg:32643" > END > > # Start of layer definitions > LAYER > GROUP "Polygon" > NAME playground > CONECTIONTYPE oraclespatial > CONNECTION "scott/bigmaps at orcl" > DATA "GEOM FROM PLAYGROUND_UTM USING UNIQUE OBJECTID USING SRID > 32643" > METADATA > "DESCRIPTION" "playground" > "RESULT_FIELDS" "OBJECTID" > "GROUP" "Polygon" > "LAYER" "playground" > END > TYPE POLYGON > STATUS ON > > CLASS > NAME "playground" > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > TOLERANCE 5 > > END # Layer > > END # Map File > > log file also not being creaed in the specified folder? > > Thanks of any help > > Gagan > > From laura.poggio at GMAIL.COM Sun Sep 16 01:31:22 2007 From: laura.poggio at GMAIL.COM (Laura Poggio) Date: Sun, 16 Sep 2007 10:31:22 +0200 Subject: Portable mapserver ms4w Message-ID: Dear list, I have a web application based on mapserver and p.mapper. I need to distribute it on cd-rom (or usb support), but the distributed version has to be fully dynamically working, i.e. map panning and zooming, queries, pop-up windows and all. I am working in Windows XP enviroment. I think I need then a portable version of Apache, PHP, MySQL (as I am using it as database) and of course mapserver. I found different portable AMP environments ( http://pampa.phpsoft.it/#features or http://www.uni-d.net/index.php?s=proj&id=3#1.1.0), but nothing with already mapserver. Is it already existing a "portable version" of ms4w? Is it necessary to modify some of the existing AMP packages? and in case are the instructions existing somewhere? I would like to avoid to have to compile mapserver from scratch, but maybe is it possible to use part of the ms4w package and to "mix" it with the existing AMP package ... Thank you very much in advance for any suggestions. Laura -------------- next part -------------- An HTML attachment was scrubbed... URL: From docterrobert at MSN.COM Sun Sep 16 19:20:57 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Sun, 16 Sep 2007 21:20:57 -0500 Subject: Mapscript Zoom Level Help Message-ID: Hello, I have an HTML form (for now for testing purposes) called Larrandy.php that passes some user-defined parameters to another .php file called index3.php. Everything works as planned except the zoom level. What I'm attempting to do is: where it says Zoompoint on the form, I'll enter in the level it should be zoomed in or out (e.g. 1, 2, 3, -1, etc.), and then it should either zoom in or out according to the integer entered in the form. I've looked at the API of course. Under the mapObj Class I see zoompoint, zoomrectangle, and zoomscale. I've selected zoompoint, being as I just simply want to take the center point of the generated image and zoom in or out while focused on that point. The pointObj is defined toward the top of index3.php. I have a current rectObj extent set also. I will be receiving an extent in Latitude and Longitude projection. That projection will have to get converted to a UTM projection. Otherwise, the image that I want to display on the US map won't show. I achieved this via a world file which uses UTM projection. Keep in mind that before I attempted to add the zooming capability, everything worked and still does (except the zoom of course). I enter in different values on the form, but the generated pic never changes. What exactly am I doing wrong here? My .php file with the form - Larrandy.php Mapserver "University of Illinois"

Give me ma SPECS, FOOL!!@!@



Width: Height:


Zoompoint:


Lower Left Corner:

Latitude #1: Longitue #1:


Upper Right Corner:

Latitude #2: Longitue #2:


Lat/Long need to be decimal degrees.

Example:
40.071888 -88.244698
40.094110 -88.217468

My .php file that executes all the map rendering - index3.php setXY($centerX, $centerY); echo $centerpoint->x.", ".$centerpoint->y."
"; $zoompoint = $_GET['zoompoint']; echo $zoompoint."
"; $x1 = $_GET['x1']; $y1 = $_GET['y1']; $x2 = $_GET['x2']; $y2 = $_GET['y2']; //parameters will be decimal degrees. example: -88.244698 40.071888 -88.217468 40.094110 //$x1 = -88.244698; //These are the hard-coded "parameters" //$y1 = 40.071888; //$x2 = -87.527468; //$y2 = 40.094110; echo "Before Conversion to UTM: ".$x1." ".$y1." ".$x2." ".$y2."
"; //The lat/long conversion to UTM process /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Create a new Rect Obj to be the new, converted EXTENT $ddextent = ms_newRectObj(); //Set the extent with the "parameters" $ddextent->setextent($x1, $y1, $x2, $y2); //Create 2 new Proj Objects to be used for the conversion (latitude/longitude and Universal Transverse Mercator) $latlongProj = ms_newProjectionObj("+proj=latlong +ellps=GRS80 +datum=NAD83"); $utmProj = ms_newProjectionObj("+proj=utm +ellps=GRS80 +datum=NAD83 +zone=16 +units=m +north +no_defs"); //Convert the lat/long to UTM $ddextent->project($latlongProj, $utmProj); //Set converted lat/long x,y's to new UTM x,y's $x1 = $ddextent->minx; $y1 = $ddextent->miny; $x2 = $ddextent->maxx; $y2 = $ddextent->maxy; //$y1=$y1+32; THESE +-32's are to possibly compensate for something odd going on with the y's. //$y2=$y2-32; echo "After Conversion to UTM: minX=$x1, minY=$y1, maxX=$x2, maxY=$y2
"; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //The mapfile path and map file itself $map_path = "/var/www/mapserver/basic/"; $map_file = "index3.map"; $map = ms_newMapObj($map_path.$map_file); //The size of the window set by mapserver $map->setSize($mapwidth, $mapheight); $map->zoompoint($zoompoint, $centerpoint, $mapwidth, $mapheight, $ddextent); //The name of the map $map->set(name, "GENERIC"); //The type of image produced (Will need to be changed for later) $map->selectOutputFormat("PNG"); //The color of the background $map->imagecolor->setRGB(140, 140, 140); //Sets the output format type $map->outputformat->setOption(name, "png"); $map->outputformat->setOption(driver, "GD/PNG"); $map->outputformat->setOption(mimetype, "image/png"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_PC256); $map->outputformat->setOption(extension, "png"); /* FOR LATER WHEN DISTINGUISHING WHETHER LARRY OR RANDY REQUESTS THIS $map->outputformat->setOption(name, "gif"); $map->outputformat->setOption(driver, "GD/GIF"); $map->outputformat->setOption(mimetype, "image/gif"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_RGB); $map->outputformat->setOption(extension, "gif"); */ $map->set(shapepath, "/var/www/mapserver/basic/data/statesp020/"); $map->setProjection("+proj=utm +ellps=GRS80 +datum=NAD83 +zone=16 +units=m +north +no_defs"); //$map->setExtent(393897.50, 4437029.50, 465644.50, 4438945.50); //sets the EXTENT. -.5 is there due to some subtraction going on with the world file $map->setExtent($x1-.5, $y1-.5, $x2-.5, $y2-.5); $map->set(units, MS_METERS); $map->set(debug, MS_ON); //Web Object which specifies the image path and the image url for the image Maperver generates $map->web->set(imagepath, "/var/www/mapserver/basic/images/"); $map->web->set(imageurl, "/mapserver/basic/images/"); //The United States layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $us = ms_newLayerObj($map); $us->set(name, "US state polygons"); $us->set(type, MS_LAYER_POLYGON); $us->set(status, MS_DEFAULT); $us->set(data, "statesp020"); $us->setProjection("+proj=latlong +ellps=GRS80 +datum=NAD83"); //The United States layer class $usclass = ms_newClassObj($us); //The United States layer class style $usstyle = ms_newStyleObj($usclass); $usstyle->color->setRGB(240, 230, 140); $usstyle->set(symbol, 0); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //The United States Boundaries Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $usbounds = ms_newLayerObj($map); $usbounds->set(name, "US state boundaries"); $usbounds->set(type, MS_LAYER_LINE); $usbounds->set(status, MS_DEFAULT); $usbounds->set(data, "statesp020"); $usbounds->setProjection("+proj=latlong +ellps=GRS80 +datum=NAD83"); //The US Boundaries layer class $usboundsclass = ms_newClassObj($usbounds); //The US Boundaries layer class style $usboundsstyle = ms_newStyleObj($usboundsclass); $usboundsstyle->color->setRGB(50, 50, 50); $usboundsstyle->set(size, 3); $usboundsstyle->set(symbol, 0); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //University Map Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $university = ms_newLayerObj($map); $university->set(name, "University of Illinois"); $university->set(type, MS_LAYER_RASTER); $university->set(status, MS_DEFAULT); $university->set(data, "colorUofIllinois.gif"); $university->setProjection("+proj=utm +ellps=GRS80 +datum=NAD83 +zone=16 +units=m +north +no_defs"); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Draws the image $image=$map->draw(); //Produces a url to reference the image by $image_url=$image->saveWebImage(); echo $image_url; ?> Mapserver "University of Illinois"

University of Illinois

Go Back My map file - index3.map MAP END I wanted the .php file to handle all the mapping commands for learning purposes, that's why it's empty. Thanks in advance! - Chris _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelson.little at TENIX.COM Sun Sep 16 23:42:24 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Mon, 17 Sep 2007 16:42:24 +1000 Subject: Which Projection to use? Message-ID: Hi all, I have shape files which are in x,y coordinate form (units of meters) and didn't think I needed any projection information because I was dealing with such a small area, thus never defined any PROJECTION info in my map file. Now I am getting the following error: [MapServer Error]: _msProcessAutoProjection(): WMS/WFS AUTO PROJECTION must be in the format 'AUTO:proj_id,units_id,lon0,lat0' (got ''). I gather from the error message that I need to define at least a map level projection entry, but I am not sure what I should use? Any help much appreciated Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From gagan.bansal at RELIANCEADA.COM Mon Sep 17 00:20:40 2007 From: gagan.bansal at RELIANCEADA.COM (gagan123) Date: Mon, 17 Sep 2007 00:20:40 -0700 Subject: oracle spatial connection In-Reply-To: <46EBDF65.9020900@univali.br> Message-ID: Hi Fernando and Jukka Thanks for your response. its working now, map extents were wrong. thanks again and other two error i could find - CONNECTIONTYPE (I WROTE CONECTIONTYPE), - USING key word before SRID is not required. regarding the projection i checked the SRID in oracle and epsg in mapserver are same up to 50000, that means both are following the same standards. Thanks again there is another thing i am not able to create the log file for mapserver for the same map file. regards Gagan -- View this message in context: http://www.nabble.com/oracle-spatial-connection-tf4447252.html#a12730697 Sent from the Mapserver - User mailing list archive at Nabble.com. From geppe at GMX.NET Mon Sep 17 01:37:47 2007 From: geppe at GMX.NET (Steffen Gebhardt) Date: Mon, 17 Sep 2007 10:37:47 +0200 Subject: WMS problem Message-ID: Hi, I want to setup my map as WMS service. Whenever I try to get the capabilities using: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/md/md.map&SERVICE=WMS&VERSION=1.1.1&request=getCapabilites the browser opens the save file (mapserv.exe) dialogue. What am i doing wrong? Thanks for helping. Steffen On map (WEB) level I defined: METADATA "wms_title" "mywms" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/md/md.map&" "wms_srs" "EPSG:32648" # "wms_name" "mywms" "wms_server_version" "1.1.1" "wms_format" "image/gif" END I added a layer defined as: LAYER NAME "districts" CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgresadmin dbname=mapbender host=localhost port=5432" DATA "the_geom from districts" STATUS ON TYPE POLYGON PROJECTION "init=EPSG:32648" END METADATA wms_title "districts" #wms_sld_url "http://localhost/sld/style.sld" #wms_sld_body "http://localhost/sld/style.sld" END CLASS NAME "dd" #SYMBOL districts END END -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail From Jukka.Rahkonen at MMMTIKE.FI Mon Sep 17 01:52:42 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 17 Sep 2007 11:52:42 +0300 Subject: WMS problem In-Reply-To: A<20070917083747.131800@gmx.net> Message-ID: Hi, There is nothing wrong. Your browser just don't understand the MIME format that WMS is returning to you. If you save the file (mapserv.exe) on disk as mapserv.xml or whatever you can open it and see how it looks like. WMS clients do this automatically. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Steffen Gebhardt > L?hetetty: 17. syyskuuta 2007 11:38 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: [UMN_MAPSERVER-USERS] WMS problem > > Hi, > > I want to setup my map as WMS service. Whenever I try to get > the capabilities using: > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/m > d/md.map&SERVICE=WMS&VERSION=1.1.1&request=getCapabilites > > the browser opens the save file (mapserv.exe) dialogue. What > am i doing wrong? > > Thanks for helping. > Steffen > > On map (WEB) level I defined: > > METADATA > "wms_title" "mywms" > "wms_onlineresource" > "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/ > md/md.map&" > "wms_srs" "EPSG:32648" > # "wms_name" "mywms" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > END > > I added a layer defined as: > LAYER > NAME "districts" > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=postgresadmin > dbname=mapbender host=localhost port=5432" > DATA "the_geom from districts" > STATUS ON > TYPE POLYGON > PROJECTION > "init=EPSG:32648" > END > > METADATA > wms_title "districts" > #wms_sld_url "http://localhost/sld/style.sld" > #wms_sld_body "http://localhost/sld/style.sld" > END > > CLASS > NAME "dd" > #SYMBOL districts > END > > END > > -- > GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. > Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail > From jelmerbs at XS4ALL.NL Mon Sep 17 03:03:11 2007 From: jelmerbs at XS4ALL.NL (Jelmer Baas) Date: Mon, 17 Sep 2007 12:03:11 +0200 Subject: Question about Labels In-Reply-To: <46E93546.9020905@mapgears.com> Message-ID: Daniel Morissette wrote: > Jelmer Baas wrote: >> >> Thanks for your quick response. I tried to use OGR:LabelText, and it >> seems to work -- sometimes. For *some* layers I get this following, >> quite interesting, error: >> >> msDrawMap(): Image handling error. Failed to draw layer named 'topo'. >> msOGRGetValues(): OGR error. Invalid field index!?! >> > > I checked in the code, and it seems that you'd get that error if > MapServer tries to read one of the OGR:Label* attributes on a feature > that does not have a label definition, or in the case of TAB files, on a > MapInfo object that is not a TEXT object. > > I am realizing just now that this makes it impossible to use OGR:Label* > on a .TAB file that has mixed object types. I think it would be possible > to make MapServer handle this more gracefully, i.e. returning some > default values (text="", angle=0 and size=0) in cases where the object > is not of the right type. Daniel, I'm a bit embarrassed, but I just found out that most items I want to show are not labels, but simply text objects. I've figured out that I need to set the layer type to point (which is a bit dirty, since I need to define each layer twice -- once as line and once as point. Are there no other solutions?). However, this produces a... hmmm... screwed up image. I hosted it at: http://www.coconline.nl/mapserv.gif - wrong http://www.coconline.nl/mapserv.png - good As you can see, it only occurs when I use GIF as an output format. I was using MapServer 4.8.3, just tried 5.0.0 beta4, same effect. The bad thing is that I use a little trick to provide the things you see as an overlay. As in, I have the normal map and on top of that I present measurements and the so called "as built" and "topo" drawings... I need GIF for this since that bloody IE thing can't handle transparent PNG properly. Any suggestions? I assume this is a bug in one of the libraries MapServer uses, and I'd be happy to assist tracking it down. If you want more information, might I suggest you contact me directly on this email address? -- Jelmer From giuseppe.derossi at EMAIL.IT Mon Sep 17 07:06:19 2007 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Mon, 17 Sep 2007 16:06:19 +0200 Subject: scale problem Message-ID: Hi (sorry if this is a repost for you) I've pointed that when I put the scale to 1000 (or 1/1000), in the map 1 mm should be egual to 1 meter, well, if I print the map and I try to measure it by using a real meter line I see that the map is stretched. I don't know if it is only my experence. Please, try to print a Map after setting the scale to a normalized value as for example 1/1000, now on your paper try to measure a distance by using a line: the number of n millimeters should correspond to n meters, but the line will measure a different number of millimeters. Is that your experience too ? is there anybody who can explain me this item, and is there solution in order to have a phisical millimeter on the paper when I set the scale to 1/1000 ? Another issue: how can I get the meter (graphical) line under the main map to have normalized values as factor of 10 ie 10,10... 100 meters etc ? The target consists on using the map as a valid measurement tool. thaks to everybody -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Email.it Direct Email Marketing, la soluzione vincente per far conoscere il tuo business. Chiedi un preventivo senza impegno Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7009&d=20070917 From David.Fawcett at STATE.MN.US Mon Sep 17 07:06:37 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 17 Sep 2007 09:06:37 -0500 Subject: Which Projection to use? In-Reply-To: A<200709170642.l8H6gO6X003034@sprint3.tenix.com> Message-ID: If all of your data is in the same projection, you don't need to define projections in your map file. One exception is that if you are serving the data up as a WMS or WFS, you will need to define MAP and LAYER level projections. You will likely also need to add metadata at the LAYER and MAP? level that includes information about the projection. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of LITTLE Nelson Sent: Monday, September 17, 2007 1:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Which Projection to use? Hi all, I have shape files which are in x,y coordinate form (units of meters) and didn't think I needed any projection information because I was dealing with such a small area, thus never defined any PROJECTION info in my map file. Now I am getting the following error: [MapServer Error]: _msProcessAutoProjection(): WMS/WFS AUTO PROJECTION must be in the format 'AUTO:proj_id,units_id,lon0,lat0' (got ''). I gather from the error message that I need to define at least a map level projection entry, but I am not sure what I should use? Any help much appreciated Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From chodgson at REFRACTIONS.NET Mon Sep 17 09:28:27 2007 From: chodgson at REFRACTIONS.NET (Chris Hodgson) Date: Mon, 17 Sep 2007 09:28:27 -0700 Subject: Map-tile edge rendering issue In-Reply-To: <20070914205423.GC4739@metacarta.com> Message-ID: > Okay. No problem. I'm just wrong :) Sorry for being misleading. This wasn't the response I expected... :( Was your gutter fix included in version 4.8.4? Does it have a maximum acceptable value? (maybe it is ignoring my 100?) I really did expect it to work for at least this one specific case if I set the gutter big enough... Can you think of any reason why it wouldn't have worked? I'm just don't want to rule out the gutter solution entirely until I'm sure I have actually tried it. Chris From docterrobert at MSN.COM Mon Sep 17 11:28:09 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Mon, 17 Sep 2007 13:28:09 -0500 Subject: Mapscript Zoom Level Help Solved, but new question Message-ID: Ok. I figured out my last question. Apparently, I needed to have a zoomscale instead of a zoompoint. What I also discovered is that zoomscale needed to be set right before I said map->draw. If I copied and pasted $map->zoomscale($zoomscale, $centerpoint, $mapwidth, $mapheight, $utmextent); to where I originally had it (right under where I say $map->setSize()), then the zoomscale won't work. But, if I move it to where I said earlier, it works. Where I originally had the line was after I had $zoomscale, $centerpoint, $mapwidth, $mapheight, and $utmextent declared and set to something - so why that is I don't know. If someone knows that would be great help. I'm just curious that's all. Also, what's the point of map->zoompoint()? From my understanding of the Mapscript API, you could pick a point on the image according to 0, 0 (being the x, y coordinates from the upper left corner), give it the image width and height and the current extent along with an integer representing zoom level and BAM - there you go. But, nothing happened when I kept giving a different value of zoom level (1, -1, 2, -10, etc.). If I comment out the zoompoint too, it doesn't change a thing. I assume I misinterpreted something? My 2 files of importance: Larrandy.php Mapserver "University of Illinois"

Give me ma SPECS, FOOL!!@!@



Width: Height:


Zoompoint:   Ex. - 1, 2, 3, 4, -1, -2, etc.


Zoomscale:   Ex. - 4000, 8000, 16,000, etc.


Lower Left Corner:

Latitude #1: Longitue #1:


Upper Right Corner:

Latitude #2: Longitue #2:


Lat/Long need to be decimal degrees.

Example:
40.071888 -88.244698
40.094110 -88.217468

index3.php setXY($centerX, $centerY); echo "The center X coordinate is: ".$centerpoint->x.", The center Y coordinate is: ".$centerpoint->y."
"; //The zoompoint and zoomscale parameters //$zoompoint = $_GET['zoompoint']; //echo "The Zoom Point is: ".$zoompoint."
"; $zoomscale = $_GET['zoomscale']; echo "The Zoom Scale is: ".$zoomscale."
"; //Coordinates passed will be in decimal degrees. example: -88.244698 40.071888 -88.217468 40.094110 $x1 = $_GET['x1']; $y1 = $_GET['y1']; $x2 = $_GET['x2']; $y2 = $_GET['y2']; echo "Before Conversion to UTM: ".$x1." ".$y1." ".$x2." ".$y2."
"; //The lat/long conversion to UTM process /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Create a new Rect Obj to be the new, converted EXTENT $ddextent = ms_newRectObj(); //Set the extent with the "parameters" $ddextent->setextent($x1, $y1, $x2, $y2); //Create 2 new Proj Objects to be used for the conversion (latitude/longitude and Universal Transverse Mercator) $latlongProj = ms_newProjectionObj("+proj=latlong +ellps=GRS80 +datum=NAD83"); $utmProj = ms_newProjectionObj("+proj=utm +ellps=GRS80 +datum=NAD83 +zone=16 +units=m +north +no_defs"); //Convert the lat/long to UTM $ddextent->project($latlongProj, $utmProj); $utmextent = $ddextent; //Set converted lat/long x,y's to new UTM x,y's $x1 = $utmextent->minx; $y1 = $utmextent->miny; $x2 = $utmextent->maxx; $y2 = $utmextent->maxy; //$y1=$y1+32; THESE +-32's are to possibly compensate for something odd going on with the y's. //$y2=$y2-32; echo "After Conversion to UTM: minX=$x1, minY=$y1, maxX=$x2, maxY=$y2
"; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //The mapfile path and map file itself $map_path = "/var/www/mapserver/basic/"; $map_file = "index3.map"; $map = ms_newMapObj($map_path.$map_file); //The size of the window set by mapserver $map->setSize($mapwidth, $mapheight); //The name of the map $map->set(name, "GENERIC"); //The type of image produced (Will need to be changed for later) $map->selectOutputFormat("PNG"); //The color of the background $map->imagecolor->setRGB(140, 140, 140); //Sets the output format type $map->outputformat->setOption(name, "png"); $map->outputformat->setOption(driver, "GD/PNG"); $map->outputformat->setOption(mimetype, "image/png"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_PC256); $map->outputformat->setOption(extension, "png"); /* FOR LATER WHEN DISTINGUISHING WHETHER LARRY OR RANDY REQUESTS THIS $map->outputformat->setOption(name, "gif"); $map->outputformat->setOption(driver, "GD/GIF"); $map->outputformat->setOption(mimetype, "image/gif"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_RGB); $map->outputformat->setOption(extension, "gif"); */ $map->set(shapepath, "/var/www/mapserver/basic/data/statesp020/"); $map->setProjection("+proj=utm +ellps=GRS80 +datum=NAD83 +zone=16 +units=m +north +no_defs"); //$map->setExtent(393897.50, 4437029.50, 465644.50, 4438945.50); //sets the EXTENT. -.5 is there due to some subtraction going on with the world file $map->setExtent($x1-.5, $y1-.5, $x2-.5, $y2-.5); $map->set(units, MS_METERS); $map->set(debug, MS_ON); //Web Object which specifies the image path and the image url for the image Maperver generates $map->web->set(imagepath, "/var/www/mapserver/basic/images/"); $map->web->set(imageurl, "/mapserver/basic/images/"); //The United States layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $us = ms_newLayerObj($map); $us->set(name, "US state polygons"); $us->set(type, MS_LAYER_POLYGON); $us->set(status, MS_DEFAULT); $us->set(data, "statesp020"); $us->setProjection("+proj=latlong +ellps=GRS80 +datum=NAD83"); //The United States layer class $usclass = ms_newClassObj($us); //The United States layer class style $usstyle = ms_newStyleObj($usclass); $usstyle->color->setRGB(240, 230, 140); $usstyle->set(symbol, 0); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //The United States Boundaries Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $usbounds = ms_newLayerObj($map); $usbounds->set(name, "US state boundaries"); $usbounds->set(type, MS_LAYER_LINE); $usbounds->set(status, MS_DEFAULT); $usbounds->set(data, "statesp020"); $usbounds->setProjection("+proj=latlong +ellps=GRS80 +datum=NAD83"); //The US Boundaries layer class $usboundsclass = ms_newClassObj($usbounds); //The US Boundaries layer class style $usboundsstyle = ms_newStyleObj($usboundsclass); $usboundsstyle->color->setRGB(50, 50, 50); $usboundsstyle->set(size, 3); $usboundsstyle->set(symbol, 0); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //University Map Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $university = ms_newLayerObj($map); $university->set(name, "University of Illinois"); $university->set(type, MS_LAYER_RASTER); $university->set(status, MS_DEFAULT); $university->set(data, "colorUofIllinois.gif"); $university->setProjection("+proj=utm +ellps=GRS80 +datum=NAD83 +zone=16 +units=m +north +no_defs"); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //$map->zoompoint($zoompoint, $centerpoint, $mapwidth, $mapheight, $utmextent); $map->zoomscale($zoomscale, $centerpoint, $mapwidth, $mapheight, $utmextent); //Draws the image $image=$map->draw(); //Produces a url to reference the image by $image_url=$image->saveWebImage(); echo $image_url."
"; ?> Mapserver "University of Illinois"

University of Illinois

Go Back - Chris _________________________________________________________________ More photos; more messages; more whatever ? Get MORE with Windows Live? Hotmail?. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Mon Sep 17 13:23:56 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 17 Sep 2007 16:23:56 -0400 Subject: MapServer 5.0.0 released! Message-ID: The MapServer team is proud to announce the release of MapServer 5.0! Perhaps the most important new feature in this release is support for map rendering using the Anti-grain Geometry (AGG) graphics library (www.antigrain.com). AGG brings high quality 2-D rendering capabilities to MapServer that will allow users to create maps with vastly improved cartographic quality. Equally important is that using AGG results in a minimal reduction in performance. All symbology supported by the default GD (www.libgd.org) graphics library are also supported using AGG. We are excited about the future possibilities of bringing high-end cartography to on-demand web mapping. This new version also includes dozens of small bug fixes, enhancements and performance improvements. Among the new features are: style and label attribute attribute binding; lookup table-based raster color correction; dynamic charting (pie and bar); explicit label prioritizing; enhanced debugging and logging; dynamic allocation for layers, classes, styles and symbols; improved memory management and garbage collection for MapScript; numerous improvements to OGC specification support, and lots more. A list of RFCs related to this release is included at the end of this message. The source code release is available at the usual location on the MapServer site: http://mapserver.gis.umn.edu/download/current This page also contains links to binary distributions that will hopefully be updated with 5.0 binaries shortly. Users of 4.10 and older should review the 5.0 migration guide which documents the changes that must be made to your application when upgrading from MapServer 4.10 to 5.0: http://mapserver.gis.umn.edu/download/current/MIGRATION_GUIDE.TXT/ Finally, here is a summary of MapServer 5.0 feature/enhancement with the related RFCs. For more details on a specific item, please refer to the corresponding RFC document at http://mapserver.gis.umn.edu/development/rfc New features: ------------ - MS RFC 19: Added Style and Label attribute binding - MS RFC 21: Raster Color Correction via color lookup table - MS RFC 27: Added label priority - MS RFC 29: Added dynamic charting (pie and bar charts) - MS RFC 31: New mechanism to load/set objects via URL using mapfile syntax - MS RFC 32: Added support for map rendering using the AGG library for better output quality Long time issues resolved: ------------------------- - MS RFC 17: Use dynamic allocation for symbols, layers, classes and styles (got rid of the static limit on the number of instances of each in a map) - MS RFC 24: Improved memory management and garbage collection for MapScript - MS RFC 26: Terminology cleanup (layer transparency renamed to opacity, scale becomes scaledenom, symbol style becomes symbol pattern) - MS RFC 28: Enhanced the debug/logging mechanism to facilitate troubleshooting and tuning applications. Added support for multiple debug levels and more control on output location. From gregor at HOSTGIS.COM Mon Sep 17 13:33:25 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 17 Sep 2007 14:33:25 -0600 Subject: MapServer 5.0.0 released! In-Reply-To: <46EEE25C.2060701@mapgears.com> Message-ID: So, where's the release party? :) Thanks a million, Steve, Daniel, and the zillions of others. Mapserver makes low-cost cartography possible. -- Gregor Mosheh / Greg Allensworth 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 From dmorissette at MAPGEARS.COM Mon Sep 17 13:37:55 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 17 Sep 2007 16:37:55 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: <46EEE495.90409@hostgis.com> Message-ID: Gregor Mosheh wrote: > So, where's the release party? :) > Victoria, BC, next week! :) Daniel -- Daniel Morissette http://www.mapgears.com/ From Tim.Nolte at IPCSWIRELESSINC.COM Mon Sep 17 14:17:33 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 17 Sep 2007 17:17:33 -0400 Subject: MapServer 5.0.0 released! Message-ID: Firstly, thanks for all of the excellent work on MapServer! The availability of a quality package to the community is something not to be taken lightly. One question I have about this final release is in direct response to your statement, "Equally important is that using AGG results in a minimal reduction in performance.". I guess I'm really wondering how you are quantifying that? My hope is that this final release of 5.0.0 has additional performance updates for using AGG. I've struggled with some performance issues on our current MapServer and finally had to move back to using GD because of the performance difference. I had a layer that rendered in about 14 secs via AGG but then only 3 secs via GD. This really ended up being the deal breaker for using AGG. I'll be looking over the 5.0 migration guide to see if there are some tips there that will help with performance. I'd love to be able to go back to using AGG as I prefer the quality of the maps. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at LANWORTH.COM Mon Sep 17 14:37:20 2007 From: nbest at LANWORTH.COM (Neil Best) Date: Mon, 17 Sep 2007 16:37:20 -0500 Subject: GRASS rasters and legends Message-ID: I was doing very well with rendering GRASS integer rasters until I tried to set up some CLASSes for creating a legend. Without a classification Mapserver was pulling the colors from the GRASS color table quite nicely, but as soon as I set up the CLASSes and got a suitable legend my map images were hosed with nonsense colors. I expected to be able to say EXPRESSION "1" for GRASS CAT=1. I got some semblance of the underlying data to appear by specifying PROCESSING "SCALE=AUTO", but no other tweaks of EXPRESSIONS or using [red], [green], and [blue] instead of [pixel] or adjusting PROCESSING "SCALE= . . ." to reflect vaues indicated by gdalinfo or r.info (not the same) got me any closer. Specifically I am working with the 2006 Cropland Data Layer (CDL) from USDA NASS imported to GRASS with r.in.gdal. I am running FWTools-1.3.6. For now it seems like I'll have to have two LAYERs, one for the map and one for the legend. Can anyone offer any insight on this? What would it take to get Mapserver/GDAL to read GRASS categories and labels (assuming it doesn't already and I'm simply ignorant)? We might be interested in sponsoring such work under the right circumstances -- anyone else? Thanks. See you at FOSS4G2007. Neil Neil Best Project Analyst Lanworth, Inc. (formerly Forest One, Inc.) 300 Park Blvd, Suite 425 Itasca, IL 60143 tel 630 250 7598 fax 630 672 7500 www.Lanworth.com From hobu.inc at GMAIL.COM Mon Sep 17 15:32:18 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Mon, 17 Sep 2007 17:32:18 -0500 Subject: MapServer 5.0.0 released! In-Reply-To: <46EEE25C.2060701@mapgears.com> Message-ID: I would also like to add a link to the HISTORY document, which shows in more detail how impressive and how much work this release was. It is also the place to find out quickly if your pet issue or bug was fixed this release. Great work guys! See you next week to drink some beers. Howard On Sep 17, 2007, at 3:23 PM, Daniel Morissette wrote: > The MapServer team is proud to announce the release of MapServer 5.0! > > Perhaps the most important new feature in this release is support > for map rendering using the Anti-grain Geometry (AGG) graphics > library (www.antigrain.com). AGG brings high quality 2-D rendering > capabilities to MapServer that will allow users to create maps with > vastly improved cartographic quality. Equally important is that > using AGG results in a minimal reduction in performance. All > symbology supported by the default GD (www.libgd.org) graphics > library are also supported using AGG. We are excited about the > future possibilities of bringing high-end cartography to on-demand > web mapping. > > This new version also includes dozens of small bug fixes, > enhancements and performance improvements. Among the new features > are: style and label attribute attribute binding; lookup table- > based raster color correction; dynamic charting (pie and bar); > explicit label prioritizing; enhanced debugging and logging; > dynamic allocation for layers, classes, styles and symbols; > improved memory management and garbage collection for MapScript; > numerous improvements to OGC specification support, and lots more. > A list of RFCs related to this release is included at the end of > this message. > > The source code release is available at the usual location on the > MapServer site: > > http://mapserver.gis.umn.edu/download/current > > This page also contains links to binary distributions that will > hopefully be updated with 5.0 binaries shortly. > > Users of 4.10 and older should review the 5.0 migration guide which > documents the changes that must be made to your application when > upgrading from MapServer 4.10 to 5.0: > > http://mapserver.gis.umn.edu/download/current/MIGRATION_GUIDE.TXT/ > > Finally, here is a summary of MapServer 5.0 feature/enhancement > with the related RFCs. For more details on a specific item, please > refer to the corresponding RFC document at http:// > mapserver.gis.umn.edu/development/rfc > > New features: > ------------ > > - MS RFC 19: Added Style and Label attribute binding > > - MS RFC 21: Raster Color Correction via color lookup table > > - MS RFC 27: Added label priority > > - MS RFC 29: Added dynamic charting (pie and bar charts) > > - MS RFC 31: New mechanism to load/set objects via URL using > mapfile syntax > > - MS RFC 32: Added support for map rendering using the AGG library for > better output quality > > > Long time issues resolved: > ------------------------- > > - MS RFC 17: Use dynamic allocation for symbols, layers, classes > and styles > (got rid of the static limit on the number of instances of each > in a map) > > - MS RFC 24: Improved memory management and garbage collection for > MapScript > > - MS RFC 26: Terminology cleanup (layer transparency renamed to > opacity, > scale becomes scaledenom, symbol style becomes symbol pattern) > > - MS RFC 28: Enhanced the debug/logging mechanism to facilitate > troubleshooting and tuning applications. Added support for multiple > debug levels and more control on output location. From punk.kish at GMAIL.COM Mon Sep 17 16:37:56 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Mon, 17 Sep 2007 18:37:56 -0500 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: My compliments to the chefs... drink 5.0.0 meters of beer. I will miss you all, but will make sure to tipple a few in your honor in Paris, a pale imitation of Victoria BC. On 9/17/07, Howard Butler wrote: > I would also like to add a link to the HISTORY document, which shows > in more detail how impressive and how much work this release was. It > is also the place to find out quickly if your pet issue or bug was > fixed this release. > > HISTORY.TXT> > > Great work guys! See you next week to drink some beers. > > > Howard > > On Sep 17, 2007, at 3:23 PM, Daniel Morissette wrote: > > > The MapServer team is proud to announce the release of MapServer 5.0! > > > > Perhaps the most important new feature in this release is support > > for map rendering using the Anti-grain Geometry (AGG) graphics > > library (www.antigrain.com). AGG brings high quality 2-D rendering > > capabilities to MapServer that will allow users to create maps with > > vastly improved cartographic quality. Equally important is that > > using AGG results in a minimal reduction in performance. All > > symbology supported by the default GD (www.libgd.org) graphics > > library are also supported using AGG. We are excited about the > > future possibilities of bringing high-end cartography to on-demand > > web mapping. > > > > This new version also includes dozens of small bug fixes, > > enhancements and performance improvements. Among the new features > > are: style and label attribute attribute binding; lookup table- > > based raster color correction; dynamic charting (pie and bar); > > explicit label prioritizing; enhanced debugging and logging; > > dynamic allocation for layers, classes, styles and symbols; > > improved memory management and garbage collection for MapScript; > > numerous improvements to OGC specification support, and lots more. > > A list of RFCs related to this release is included at the end of > > this message. > > > > The source code release is available at the usual location on the > > MapServer site: > > > > http://mapserver.gis.umn.edu/download/current > > > > This page also contains links to binary distributions that will > > hopefully be updated with 5.0 binaries shortly. > > > > Users of 4.10 and older should review the 5.0 migration guide which > > documents the changes that must be made to your application when > > upgrading from MapServer 4.10 to 5.0: > > > > http://mapserver.gis.umn.edu/download/current/MIGRATION_GUIDE.TXT/ > > > > Finally, here is a summary of MapServer 5.0 feature/enhancement > > with the related RFCs. For more details on a specific item, please > > refer to the corresponding RFC document at http:// > > mapserver.gis.umn.edu/development/rfc > > > > New features: > > ------------ > > > > - MS RFC 19: Added Style and Label attribute binding > > > > - MS RFC 21: Raster Color Correction via color lookup table > > > > - MS RFC 27: Added label priority > > > > - MS RFC 29: Added dynamic charting (pie and bar charts) > > > > - MS RFC 31: New mechanism to load/set objects via URL using > > mapfile syntax > > > > - MS RFC 32: Added support for map rendering using the AGG library for > > better output quality > > > > > > Long time issues resolved: > > ------------------------- > > > > - MS RFC 17: Use dynamic allocation for symbols, layers, classes > > and styles > > (got rid of the static limit on the number of instances of each > > in a map) > > > > - MS RFC 24: Improved memory management and garbage collection for > > MapScript > > > > - MS RFC 26: Terminology cleanup (layer transparency renamed to > > opacity, > > scale becomes scaledenom, symbol style becomes symbol pattern) > > > > - MS RFC 28: Enhanced the debug/logging mechanism to facilitate > > troubleshooting and tuning applications. Added support for multiple > > debug levels and more control on output location. > -- 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/ Summer 2007 S&T Policy Fellow, The National Academies http://www.nas.edu/ From Tom.Kralidis at EC.GC.CA Mon Sep 17 16:50:13 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 17 Sep 2007 19:50:13 -0400 Subject: MapServer 5.0.0 released! Message-ID: Great work all. I won't be at foss4g this year, but will live vicariously through everyone this time around. ..Tom On 9/17/07, Howard Butler wrote: > I would also like to add a link to the HISTORY document, which shows > in more detail how impressive and how much work this release was. It > is also the place to find out quickly if your pet issue or bug was > fixed this release. > > HISTORY.TXT> > > Great work guys! See you next week to drink some beers. > > > Howard > > On Sep 17, 2007, at 3:23 PM, Daniel Morissette wrote: > > > The MapServer team is proud to announce the release of MapServer 5.0! > > > > Perhaps the most important new feature in this release is support > > for map rendering using the Anti-grain Geometry (AGG) graphics > > library (www.antigrain.com). AGG brings high quality 2-D rendering > > capabilities to MapServer that will allow users to create maps with > > vastly improved cartographic quality. Equally important is that > > using AGG results in a minimal reduction in performance. All > > symbology supported by the default GD (www.libgd.org) graphics > > library are also supported using AGG. We are excited about the > > future possibilities of bringing high-end cartography to on-demand > > web mapping. > > > > This new version also includes dozens of small bug fixes, > > enhancements and performance improvements. Among the new features > > are: style and label attribute attribute binding; lookup table- > > based raster color correction; dynamic charting (pie and bar); > > explicit label prioritizing; enhanced debugging and logging; > > dynamic allocation for layers, classes, styles and symbols; > > improved memory management and garbage collection for MapScript; > > numerous improvements to OGC specification support, and lots more. > > A list of RFCs related to this release is included at the end of > > this message. > > > > The source code release is available at the usual location on the > > MapServer site: > > > > http://mapserver.gis.umn.edu/download/current > > > > This page also contains links to binary distributions that will > > hopefully be updated with 5.0 binaries shortly. > > > > Users of 4.10 and older should review the 5.0 migration guide which > > documents the changes that must be made to your application when > > upgrading from MapServer 4.10 to 5.0: > > > > http://mapserver.gis.umn.edu/download/current/MIGRATION_GUIDE.TXT/ > > > > Finally, here is a summary of MapServer 5.0 feature/enhancement > > with the related RFCs. For more details on a specific item, please > > refer to the corresponding RFC document at http:// > > mapserver.gis.umn.edu/development/rfc > > > > New features: > > ------------ > > > > - MS RFC 19: Added Style and Label attribute binding > > > > - MS RFC 21: Raster Color Correction via color lookup table > > > > - MS RFC 27: Added label priority > > > > - MS RFC 29: Added dynamic charting (pie and bar charts) > > > > - MS RFC 31: New mechanism to load/set objects via URL using > > mapfile syntax > > > > - MS RFC 32: Added support for map rendering using the AGG library for > > better output quality > > > > > > Long time issues resolved: > > ------------------------- > > > > - MS RFC 17: Use dynamic allocation for symbols, layers, classes > > and styles > > (got rid of the static limit on the number of instances of each > > in a map) > > > > - MS RFC 24: Improved memory management and garbage collection for > > MapScript > > > > - MS RFC 26: Terminology cleanup (layer transparency renamed to > > opacity, > > scale becomes scaledenom, symbol style becomes symbol pattern) > > > > - MS RFC 28: Enhanced the debug/logging mechanism to facilitate > > troubleshooting and tuning applications. Added support for multiple > > debug levels and more control on output location. > From nelson.little at TENIX.COM Mon Sep 17 20:27:29 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Tue, 18 Sep 2007 13:27:29 +1000 Subject: Which Projection to use? Message-ID: David, Thanks for your reply. What PROJECTION info do I specify and what values do I give that data? I see in the mapfile reference page the examples either reference a projection from the epsg file (which one would I use?) or supply the values for proj, ellps, datum. I don't want my x-y data to be projected any differently to how it is presented in the map files. Cheers, Nelson -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Monday, 17 September 2007 11:37 PM To: LITTLE Nelson; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Which Projection to use? If all of your data is in the same projection, you don't need to define projections in your map file. One exception is that if you are serving the data up as a WMS or WFS, you will need to define MAP and LAYER level projections. You will likely also need to add metadata at the LAYER and MAP? level that includes information about the projection. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of LITTLE Nelson Sent: Monday, September 17, 2007 1:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Which Projection to use? Hi all, I have shape files which are in x,y coordinate form (units of meters) and didn't think I needed any projection information because I was dealing with such a small area, thus never defined any PROJECTION info in my map file. Now I am getting the following error: [MapServer Error]: _msProcessAutoProjection(): WMS/WFS AUTO PROJECTION must be in the format 'AUTO:proj_id,units_id,lon0,lat0' (got ''). I gather from the error message that I need to define at least a map level projection entry, but I am not sure what I should use? Any help much appreciated Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From gregor at HOSTGIS.COM Mon Sep 17 23:03:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 18 Sep 2007 00:03:18 -0600 Subject: 5.0+AGG Compile under Slackware Message-ID: Any ideas? This happens while linking shp2img in 5.0 with AGG support. AGG is 2.5 OS is Slackware 11.0 `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' referenced in section `.rodata' of ./libmapserver.a(agg_font_freetype.o): defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of ./libmapserver.a(agg_font_freetype.o) collect2: ld returned 1 exit status make: *** [shp2img] Error 1 -- Gregor Mosheh / Greg Allensworth 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 From gregor at HOSTGIS.COM Tue Sep 18 01:03:19 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 18 Sep 2007 02:03:19 -0600 Subject: 5.0+AGG Compile under Slackware In-Reply-To: Message-ID: Never mind; my bad. I had neglected, being on 64-bit, to set the standad flags I set for all builds: export CPPFLAGS="-D_FILE_OFFSET_BITS=64" export CXXFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" export CFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" -- Gregor Mosheh / Greg Allensworth 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 From gregor at HOSTGIS.COM Tue Sep 18 01:29:49 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 18 Sep 2007 02:29:49 -0600 Subject: 5.0+AGG compile on SLackware Message-ID: My mistake (again) thinking that I had solved it. Silly me; I pasted in the wrong set of instructions and of course it built just fine without the AGG support. To reiterate: Slackware 11.0 or 64-bit (aka Slamd64) These environment variables: export CPPFLAGS="-D_FILE_OFFSET_BITS=64" export CXXFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" export CFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" AGG 2.5 built from source according to instructions in http://trac.osgeo.org/mapserver/ticket/2215 Mapserver 5.0.0 downloaded just now Mapserver's configure is: ./configure --with-threads --with-geos --with-proj \ --with-pdf=/usr --with-gd=/usr --with-ogr --with-gdal \ --without-tiff --with-postgis --with-ming --with-mygis \ --with-wms --with-wmsclient \ --with-wfs --with-wfsclient --with-wcs --with-sos \ --with-agg=/tmp/agg-2.5 --with-freetype It gets as far as the first linking, which is shp2img, then: `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' referenced in section `.rodata' of /tmp/agg-2.5/src/libaggfontfreetype.a(agg_font_freetype.o): defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of /tmp/agg-2.5/src/libaggfontfreetype.a(agg_font_freetype.o) collect2: ld returned 1 exit status make: *** [shp2img] Error 1 What in heck is this "discarded section" stuff? -- Gregor Mosheh / Greg Allensworth 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 From guillaume.sueur at NEOGEO-ONLINE.NET Tue Sep 18 01:33:59 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Tue, 18 Sep 2007 10:33:59 +0200 Subject: 5.0+AGG performance In-Reply-To: <46EF8C7D.2040603@hostgis.com> Message-ID: Hi, First af all, I'd like to congratulate all the people doing this great job on Mapserver. The 5 version rocks ! I've just done some tests with AGG rendering, and I'm a little bit desappointed, but it may be because of my unexperience with agg. 1. files are big -> from 21 to 80 ko where the raw PNG was 6.9 ko 2. There are artefacts on the map (some pixels are drawn in some irrelevant places) Did you experience the same behaviour ? Thanks Guillaume -------------- next part -------------- A non-text attachment was scrubbed... Name: guillaume.sueur.vcf Type: text/x-vcard Size: 310 bytes Desc: not available URL: From andreas.albarello at TERRITORIUMONLINE.COM Tue Sep 18 03:54:47 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Tue, 18 Sep 2007 12:54:47 +0200 Subject: 5.0+AGG performance In-Reply-To: <46EF8D77.3020404@neogeo-online.net> Message-ID: Guillaume Sueur wrote: > I've just done some tests with AGG rendering, and I'm a little bit > desappointed, but it may be because of my unexperience with agg. > 1. files are big -> from 21 to 80 ko where the raw PNG was 6.9 ko Guillaume, unfortunately, the better the image is going to look, the bigger it will be, that's pretty obvious. AGG looks so great because of the superb antialiasing. The drawback of antialiasing is that it affects filesize due to the additional colors and shadings it uses. You could try to play with the quantization settings as explained here: http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics By reducing the number of colors in the image, you should be able to get smaller files. > 2. There are artefacts on the map (some pixels are drawn in some > irrelevant places) I personally didn't notice anything like that in my maps, but if yours do indeed show noticeable artifacts I'd suggest filing a bug report with a testcase. This should help the devs reproducing and fixing the issue. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi Str. 12 I 39100 Bolzano/Bozen Phone: +39 0471 068611 Fax: +39 0471 068619 email: andreas.albarello at territoriumonline.com web: http://www.territoriumonline.com -------------------------------------------------------------------- From pal.kristensen at STATKART.NO Tue Sep 18 04:22:31 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 18 Sep 2007 04:22:31 -0700 Subject: Interpolate image Message-ID: Hi! I have recently installed ms4w 2.2.6 beta which include MS 5.0 RC2. The reason for this was to test the new AGG rendering engine when using Mapserver as a WMS server, with only high resolution (RGB) rasters as the data source. Most WMS servers around (both free and commercial) uses nearest neighbor interpolation on the resulting image that is transfered to the client. In situations where the source data is only hires rasters or imagery (as in my case), the quality of the output would be much better if you could apply an bilinear interpolation to the produced image (see the attached images for an example). Because in most cases the pixels in the source data and the pixels on the screen do not match up, even if I have produces pyramids on the source data (using gdal gdaladdo with the average option sett). The only WMS servers that has the ability to interpolate the resulting image with bilinear interpolation (that I have discovered) is the ESRI ArcIMS ArcMap image service and the ESRI ArcGIS Server. I kind of hoped that the new AGG rendering back-end would give an option to set the interpolation method used in the output, but I see no difference when using AGG instead of GD. (IMAGEMODE is 24bit (RGB) PNG in both cases). Am I missing something here, or do not AGG increase the image quality if the resulting image if the data source is only rasters? Does anyone have any experience concerning this issue, and maybe could give me some advice? ArcGIS Server http://www.nabble.com/file/p12754990/ArcGIS_Server.png Mapserver 5.0 rc2 with AGG rendering http://www.nabble.com/file/p12754990/MapServer_5rc2_AGG.png Regards, P?l Kristensen Norwegian Mapping and Cadastre Authority -- View this message in context: http://www.nabble.com/Interpolate-image-tf4473610.html#a12754990 Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at MAPGEARS.COM Tue Sep 18 04:46:34 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 18 Sep 2007 07:46:34 -0400 Subject: 5.0+AGG Compile under Slackware In-Reply-To: <46EF8647.7020306@hostgis.com> Message-ID: Gregor Mosheh wrote: > Never mind; my bad. I had neglected, being on 64-bit, to set the standad > flags I set for all builds: > > export CPPFLAGS="-D_FILE_OFFSET_BITS=64" > export CXXFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" > export CFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" > First time I hear of this. Does this need to be added to AGG or to MapServer's Makefiles? Wondering if anything needs to be fixed in MapServer's build or if that's an AGG problem that we may want to document in our build docs. Daniel -- Daniel Morissette http://www.mapgears.com/ From thomas.bonfort at GMAIL.COM Tue Sep 18 04:56:01 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 18 Sep 2007 13:56:01 +0200 Subject: 5.0+AGG Compile under Slackware In-Reply-To: <46EFBA9A.7010906@mapgears.com> Message-ID: I seem to remember a discussion a while ago stating that agg had to be build with position independant code on 64 bit platforms. could you try that out (and also add -fPIC to CPPFLAGS)? tb On 9/18/07, Daniel Morissette wrote: > Gregor Mosheh wrote: > > Never mind; my bad. I had neglected, being on 64-bit, to set the standad > > flags I set for all builds: > > > > export CPPFLAGS="-D_FILE_OFFSET_BITS=64" > > export CXXFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" > > export CFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" > > > > First time I hear of this. Does this need to be added to AGG or to > MapServer's Makefiles? Wondering if anything needs to be fixed in > MapServer's build or if that's an AGG problem that we may want to > document in our build docs. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > From guillaume.sueur at NEOGEO-ONLINE.NET Tue Sep 18 04:37:22 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Tue, 18 Sep 2007 13:37:22 +0200 Subject: Interpolate image In-Reply-To: <12754990.post@talk.nabble.com> Message-ID: I think AGG optimization only applies on vector data. Am I wrong ? Guillaume P?l Kristensen a ?crit : > Hi! > > I have recently installed ms4w 2.2.6 beta which include MS 5.0 RC2. The > reason for this was to test the new AGG rendering engine when using > Mapserver as a WMS server, with only high resolution (RGB) rasters as the > data source. Most WMS servers around (both free and commercial) uses nearest > neighbor interpolation on the resulting image that is transfered to the > client. In situations where the source data is only hires rasters or imagery > (as in my case), the quality of the output would be much better if you could > apply an bilinear interpolation to the produced image (see the attached > images for an example). Because in most cases the pixels in the source data > and the pixels on the screen do not match up, even if I have produces > pyramids on the source data (using gdal gdaladdo with the average option > sett). The only WMS servers that has the ability to interpolate the > resulting image with bilinear interpolation (that I have discovered) is the > ESRI ArcIMS ArcMap image service and the ESRI ArcGIS Server. > > I kind of hoped that the new AGG rendering back-end would give an option to > set the interpolation method used in the output, but I see no difference > when using AGG instead of GD. (IMAGEMODE is 24bit (RGB) PNG in both cases). > Am I missing something here, or do not AGG increase the image quality if the > resulting image if the data source is only rasters? Does anyone have any > experience concerning this issue, and maybe could give me some advice? > > ArcGIS Server > http://www.nabble.com/file/p12754990/ArcGIS_Server.png > > > Mapserver 5.0 rc2 with AGG rendering > http://www.nabble.com/file/p12754990/MapServer_5rc2_AGG.png > > Regards, > P?l Kristensen > Norwegian Mapping and Cadastre Authority -------------- next part -------------- A non-text attachment was scrubbed... Name: guillaume.sueur.vcf Type: text/x-vcard Size: 310 bytes Desc: not available URL: From thomas.bonfort at GMAIL.COM Tue Sep 18 05:12:05 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 18 Sep 2007 14:12:05 +0200 Subject: Interpolate image In-Reply-To: <46EFB872.10503@neogeo-online.net> Message-ID: yes, AGG only renders vector formats, raster processing hasn't changed. have you had a look at http://mapserver.gis.umn.edu/development/rfc/ms-rfc-4/ PROCESSING "RESAMPLE=NEAREST" PROCESSING "RESAMPLE=AVERAGE" PROCESSING "RESAMPLE=BILINEAR" PROCESSING "RESAMPLE=BICUBIC" tb On 9/18/07, Guillaume Sueur wrote: > I think AGG optimization only applies on vector data. Am I wrong ? > > Guillaume > > P?l Kristensen a ?crit : > > Hi! > > > > I have recently installed ms4w 2.2.6 beta which include MS 5.0 RC2. The > > reason for this was to test the new AGG rendering engine when using > > Mapserver as a WMS server, with only high resolution (RGB) rasters as the > > data source. Most WMS servers around (both free and commercial) uses nearest > > neighbor interpolation on the resulting image that is transfered to the > > client. In situations where the source data is only hires rasters or imagery > > (as in my case), the quality of the output would be much better if you could > > apply an bilinear interpolation to the produced image (see the attached > > images for an example). Because in most cases the pixels in the source data > > and the pixels on the screen do not match up, even if I have produces > > pyramids on the source data (using gdal gdaladdo with the average option > > sett). The only WMS servers that has the ability to interpolate the > > resulting image with bilinear interpolation (that I have discovered) is the > > ESRI ArcIMS ArcMap image service and the ESRI ArcGIS Server. > > > > I kind of hoped that the new AGG rendering back-end would give an option to > > set the interpolation method used in the output, but I see no difference > > when using AGG instead of GD. (IMAGEMODE is 24bit (RGB) PNG in both cases). > > Am I missing something here, or do not AGG increase the image quality if the > > resulting image if the data source is only rasters? Does anyone have any > > experience concerning this issue, and maybe could give me some advice? > > > > ArcGIS Server > > http://www.nabble.com/file/p12754990/ArcGIS_Server.png > > > > > > Mapserver 5.0 rc2 with AGG rendering > > http://www.nabble.com/file/p12754990/MapServer_5rc2_AGG.png > > > > Regards, > > P?l Kristensen > > Norwegian Mapping and Cadastre Authority > > > > From dmorissette at MAPGEARS.COM Tue Sep 18 05:15:07 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 18 Sep 2007 08:15:07 -0400 Subject: Interpolate image In-Reply-To: <46EFB872.10503@neogeo-online.net> Message-ID: I think Guillaume is correct that AGG's main advantages are on the vector side and unless I'm mistaken you won't see much difference with rasters. Thomas or others who worked on AGG support can correct me if I'm wrong. Back to P?l's question, if I understood correctly, you're looking for a way to do bilinear resampling. This has been supported since MapServer 4.8, see RFC-4 for the details: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-4 Note that bilinear resampling was not working for AGG output in 5.0.0-rc2 and this was fixed in the 5.0.0 release (that's one of the two fixes that were made after RC2.) ... you'll have to wait for a new MS4W with the release version of MapServer 5.0.0 to test this with AGG, but you can already test it with GD with RC2. I heard that Jeff was working on a new MS4W release yesterday, so it should be available very soon. Daniel Guillaume Sueur wrote: > I think AGG optimization only applies on vector data. Am I wrong ? > > Guillaume > > P?l Kristensen a ?crit : >> Hi! >> >> I have recently installed ms4w 2.2.6 beta which include MS 5.0 RC2. The >> reason for this was to test the new AGG rendering engine when using >> Mapserver as a WMS server, with only high resolution (RGB) rasters as the >> data source. Most WMS servers around (both free and commercial) uses >> nearest >> neighbor interpolation on the resulting image that is transfered to the >> client. In situations where the source data is only hires rasters or >> imagery >> (as in my case), the quality of the output would be much better if you >> could >> apply an bilinear interpolation to the produced image (see the attached >> images for an example). Because in most cases the pixels in the source >> data >> and the pixels on the screen do not match up, even if I have produces >> pyramids on the source data (using gdal gdaladdo with the average option >> sett). The only WMS servers that has the ability to interpolate the >> resulting image with bilinear interpolation (that I have discovered) >> is the >> ESRI ArcIMS ArcMap image service and the ESRI ArcGIS Server. >> >> I kind of hoped that the new AGG rendering back-end would give an >> option to >> set the interpolation method used in the output, but I see no difference >> when using AGG instead of GD. (IMAGEMODE is 24bit (RGB) PNG in both >> cases). >> Am I missing something here, or do not AGG increase the image quality >> if the >> resulting image if the data source is only rasters? Does anyone have any >> experience concerning this issue, and maybe could give me some advice? >> >> ArcGIS Server >> http://www.nabble.com/file/p12754990/ArcGIS_Server.png >> >> Mapserver 5.0 rc2 with AGG rendering >> http://www.nabble.com/file/p12754990/MapServer_5rc2_AGG.png >> Regards, >> P?l Kristensen >> Norwegian Mapping and Cadastre Authority > > -- Daniel Morissette http://www.mapgears.com/ From pal.kristensen at STATKART.NO Tue Sep 18 05:15:14 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 18 Sep 2007 05:15:14 -0700 Subject: Interpolate image In-Reply-To: <12754990.post@talk.nabble.com> Message-ID: Hi! After reading history.txt of MS 5.0 Final I found out that this issue actually was a bug (ticket 2303) that was solved from RC2 to final release. I was also not aware of the PROCESSING "RESAMPLE=BILINEAR" statement that applies to a raster layer. This statement does exactly what I tried to accomplish, so thanks for the help. Regards, P?l P?l Kristensen wrote: > > Hi! > > I have recently installed ms4w 2.2.6 beta which include MS 5.0 RC2. The > reason for this was to test the new AGG rendering engine when using > Mapserver as a WMS server, with only high resolution (RGB) rasters as the > data source. Most WMS servers around (both free and commercial) uses > nearest neighbor interpolation on the resulting image that is transfered > to the client. In situations where the source data is only hires rasters > or imagery (as in my case), the quality of the output would be much better > if you could apply an bilinear interpolation to the produced image (see > the attached images for an example). Because in most cases the pixels in > the source data and the pixels on the screen do not match up, even if I > have produces pyramids on the source data (using gdal gdaladdo with the > average option sett). The only WMS servers that has the ability to > interpolate the resulting image with bilinear interpolation (that I have > discovered) is the ESRI ArcIMS ArcMap image service and the ESRI ArcGIS > Server. > > I kind of hoped that the new AGG rendering back-end would give an option > to set the interpolation method used in the output, but I see no > difference when using AGG instead of GD. (IMAGEMODE is 24bit (RGB) PNG in > both cases). Am I missing something here, or do not AGG increase the image > quality if the resulting image if the data source is only rasters? Does > anyone have any experience concerning this issue, and maybe could give me > some advice? > > ArcGIS Server > http://www.nabble.com/file/p12754990/ArcGIS_Server.png > > > Mapserver 5.0 rc2 with AGG rendering > http://www.nabble.com/file/p12754990/MapServer_5rc2_AGG.png > > Regards, > P?l Kristensen > Norwegian Mapping and Cadastre Authority > -- View this message in context: http://www.nabble.com/Interpolate-image-tf4473610.html#a12755747 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Tue Sep 18 06:08:20 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 18 Sep 2007 09:08:20 -0400 Subject: 5.0+AGG Compile under Slackware In-Reply-To: <46EFBA9A.7010906@mapgears.com> Message-ID: Daniel Morissette wrote: > Gregor Mosheh wrote: >> Never mind; my bad. I had neglected, being on 64-bit, to set the >> standad flags I set for all builds: >> >> export CPPFLAGS="-D_FILE_OFFSET_BITS=64" >> export CXXFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" >> export CFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" >> > > First time I hear of this. Does this need to be added to AGG or to > MapServer's Makefiles? Wondering if anything needs to be fixed in > MapServer's build or if that's an AGG problem that we may want to > document in our build docs. Daniel, If you use the static makefiles that come with AGG, then you need to add this. I think it is listed in the trac ticket on building AGG. It is not an issue for MapServer which automatically discovers if it needs to add -fPIC in configure. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Tim.Nolte at IPCSWIRELESSINC.COM Tue Sep 18 05:55:41 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Tue, 18 Sep 2007 08:55:41 -0400 Subject: MapServer 5, AGG Antialiasing... Message-ID: Is there any way to turn of the antialiasing for a single layer? I actually have 5 layers that have a lot of detail, and a lot that gets antialiased, that I really don't need to be antialiased. I'd really like the rest of it to be antialiased however. Any way to selectively turn off the antialiasing for a layer when using AGG? Thanks. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From LIN at GISPRO.DK Tue Sep 18 06:02:33 2007 From: LIN at GISPRO.DK (Lars I. Nielsen (GisPro)) Date: Tue, 18 Sep 2007 15:02:33 +0200 Subject: OGR: WMS server with empty MapInfo tables errs Message-ID: Hi, I've just set up Mapserver 4.10 as a WMS server, serving sets of MapInfo vector tables (i.e. TAB format). It throws an OGR exception if either of the used tables have no records. If all tables have data, even if it's deleted, it works fine. Is this a known problem with OGR ? Is there a way to avoid this problem ? Best regards / Med venlig hilsen Lars I. Nielsen GisPro From David.Fawcett at STATE.MN.US Tue Sep 18 06:15:29 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 18 Sep 2007 08:15:29 -0500 Subject: Which Projection to use? In-Reply-To: <200709180327.l8I3RTI5020882@sprint3.tenix.com> Message-ID: Nelson, I assume that you are trying to use MapServer as a WMS or WFS server. If you haven't seen this HowTo, check it out: http://mapserver.gis.umn.edu/docs/howto/wms_server It gives you an example map file and tells you what metadata is required. Part of serving a WMS/WFS is that people who want to use your data service need to know what projection it is in. To do this, they send a GetCapabilities request and are returned a document that describes your service. Projection information is needed for the GetCapabilities. The first step is to determine/understand what spatial reference system (projection) your data is in. Once you know that, you can add projection blocks to your map file. For your situation, it sounds like the input projection for your data is the same as the output projection of your map. In other words, you are keeping it in the same projection. In this case, you just need to put the same projection blocks at in the MAP object and the LAYER object of your map file. If your data was in UTM Zone15, NAD83, you could use a block like this: PROJECTION "init=epsg:26915" END David. -----Original Message----- From: LITTLE Nelson [mailto:nelson.little at tenix.com] Sent: Monday, September 17, 2007 10:27 PM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Which Projection to use? David, Thanks for your reply. What PROJECTION info do I specify and what values do I give that data? I see in the mapfile reference page the examples either reference a projection from the epsg file (which one would I use?) or supply the values for proj, ellps, datum. I don't want my x-y data to be projected any differently to how it is presented in the map files. Cheers, Nelson -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Monday, 17 September 2007 11:37 PM To: LITTLE Nelson; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Which Projection to use? If all of your data is in the same projection, you don't need to define projections in your map file. One exception is that if you are serving the data up as a WMS or WFS, you will need to define MAP and LAYER level projections. You will likely also need to add metadata at the LAYER and MAP? level that includes information about the projection. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of LITTLE Nelson Sent: Monday, September 17, 2007 1:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Which Projection to use? Hi all, I have shape files which are in x,y coordinate form (units of meters) and didn't think I needed any projection information because I was dealing with such a small area, thus never defined any PROJECTION info in my map file. Now I am getting the following error: [MapServer Error]: _msProcessAutoProjection(): WMS/WFS AUTO PROJECTION must be in the format 'AUTO:proj_id,units_id,lon0,lat0' (got ''). I gather from the error message that I need to define at least a map level projection entry, but I am not sure what I should use? Any help much appreciated Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From warmerdam at POBOX.COM Tue Sep 18 06:49:10 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 18 Sep 2007 09:49:10 -0400 Subject: OGR: WMS server with empty MapInfo tables errs In-Reply-To: <0f8201c7f9f4$304dccd0$c801a8c0@odin> Message-ID: Lars I. Nielsen (GisPro) wrote: > Hi, > > I've just set up Mapserver 4.10 as a WMS server, serving sets of MapInfo > vector tables (i.e. TAB format). > > It throws an OGR exception if either of the used tables have no records. If > all tables have data, even if it's deleted, it works fine. > > Is this a known problem with OGR ? > Is there a way to avoid this problem ? Lars, This is a surprise to me. I think it would be best to file a bug against GDAL/OGR with details and a demonstration dataset. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From tim.nolte at IPCSWIRELESSINC.COM Tue Sep 18 07:12:14 2007 From: tim.nolte at IPCSWIRELESSINC.COM (Timothy J Nolte) Date: Tue, 18 Sep 2007 09:12:14 -0500 Subject: MapServer 5, AGG Antialiasing... Message-ID: Is there any way to turn of the antialiasing for a single layer? I actually have 5 layers that have a lot of detail, and a lot that gets antialiased, that I really don't need to be antialiased. I'd really like the rest of it to be antialiased however. Any way to selectively turn off the antialiasing for a layer when using AGG? Thanks. - Tim From dmorissette at MAPGEARS.COM Tue Sep 18 07:20:59 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 18 Sep 2007 10:20:59 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: <1532456BD081F146A176FB6929E6B0D1456ED3@KTWMAIL.ilpcs.com> Message-ID: Nolte, Tim wrote: > [...] One question I have about this final release is in > direct response to your statement, "Equally important is that using AGG > results in a minimal reduction in performance.". I guess I'm really > wondering how you are quantifying that? That's based on feedback we got from most people who tested the new AGG rendering. In most cases the impact was minimal and I think we even heard of some cases where performance was better. However I think there may have been a few exceptions, and your case is clearly one. I didn't work directly on the AGG rendering myself so I cannot comment on what could result in this performance hit. I'll let those who know that part better comment on that. BTW, if you could share a small test case (data + mapfile) that demonstrates the difference then that would increase your chances of getting help. Daniel -- Daniel Morissette http://www.mapgears.com/ From Tim.Nolte at IPCSWIRELESSINC.COM Tue Sep 18 07:42:13 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Tue, 18 Sep 2007 10:42:13 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: A<46EFDECB.7040508@mapgears.com> Message-ID: I hope that you didn't take my comment as though I was questioning the validity of the comment. I was really just curious because of my performance issues. I'll throw together a test case, who should I send it to, just the list? I posted (actually double posted because I'm blind..grr..not really) a second note about being able to turn of antialiasing for a layer. It really the 5 layers I'm seeing such a drastic performance difference with. These layers are not very nice polygons, they are pretty detailed with a lot of curves. I'm no expert by any means so there is probably more I can do to speed up these layers. I have already broke them up into separate smaller shapefiles as well as index them. Thanks. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Morissette Sent: Tuesday, September 18, 2007 10:21 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! Nolte, Tim wrote: > [...] One question I have about this final release is in > direct response to your statement, "Equally important is that using AGG > results in a minimal reduction in performance.". I guess I'm really > wondering how you are quantifying that? That's based on feedback we got from most people who tested the new AGG rendering. In most cases the impact was minimal and I think we even heard of some cases where performance was better. However I think there may have been a few exceptions, and your case is clearly one. I didn't work directly on the AGG rendering myself so I cannot comment on what could result in this performance hit. I'll let those who know that part better comment on that. BTW, if you could share a small test case (data + mapfile) that demonstrates the difference then that would increase your chances of getting help. Daniel -- Daniel Morissette http://www.mapgears.com/ From andreas.albarello at TERRITORIUMONLINE.COM Tue Sep 18 08:10:55 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Tue, 18 Sep 2007 17:10:55 +0200 Subject: MapServer 5, AGG Antialiasing... In-Reply-To: Message-ID: Timothy J Nolte wrote: > Any way to selectively turn off the antialiasing > for a layer when using AGG? Thanks. Not that I'm aware of. It's my understanding that AGG works only that way, i.e. subpixel-rendering = always antialiased. I can see however how being able to individually select some layers to be drawn the old way (GD) would be a nice addition. I guess that's asking too much, though. Anyhow, I'm not so sure that simply getting rid of GD's RGB rendering in a future relase as suggested in the migration guide is a good idea, seeing that some users, especially those facing performance issues, might want to keep drawing non-antialiased maps. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi Str. 12 I 39100 Bolzano/Bozen Phone: +39 0471 068611 Fax: +39 0471 068619 email: andreas.albarello at territoriumonline.com web: http://www.territoriumonline.com -------------------------------------------------------------------- From gregor at HOSTGIS.COM Tue Sep 18 08:22:05 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 18 Sep 2007 09:22:05 -0600 Subject: 5.0+AGG Compile under Slackware In-Reply-To: <46EFCDC4.7070000@pobox.com> Message-ID: > If you use the static makefiles that come with AGG, then you need to add > this. I think it is listed in the trac ticket on building AGG. Actually, the ticket I saw at http://trac.osgeo.org/mapserver/ticket/2215 doesn't mention PIC. I did use PIC while building AGG, and am still getting that "defined in discarded section" `problem. I can send the entire log of both builds, if it would be more helpful than annoying. :) -- Gregor Mosheh / Greg Allensworth 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 From thomas.bonfort at GMAIL.COM Tue Sep 18 08:23:10 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 18 Sep 2007 17:23:10 +0200 Subject: MapServer 5.0.0 released! In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A36E74@KTWMAIL.ilpcs.com> Message-ID: On 9/18/07, Nolte, Tim wrote: > I hope that you didn't take my comment as though I was questioning the > validity of the comment. I was really just curious because of my > performance issues. I'll throw together a test case, who should I send > it to, just the list? you open a bug report and attach the archive to it... or you can send the archive directly to me cheers, tb From thomas.bonfort at GMAIL.COM Tue Sep 18 09:30:42 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 18 Sep 2007 18:30:42 +0200 Subject: MapServer 5.0.0 released! In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A36E74@KTWMAIL.ilpcs.com> Message-ID: Tim, Attached is a patch you can apply to mapagg.cpp - if you can't apply it I'll mail you the whole file. it basically switches to aliased rendering if you use SYMBOL TYPE SIMPLE ANTIALIASED FALSE NAME 'aliased' END it'll work *only* on line and polygon layers, if you specify a STYLE NAME 'aliased' COLOR r g b END nothing other is supported (line widths, or polygon outlines) I'd be interested to hear about timings if you can try it tb -------------- next part -------------- A non-text attachment was scrubbed... Name: fastlinesandpolygons.patch Type: text/x-diff Size: 4741 bytes Desc: not available URL: From thomas.bonfort at GMAIL.COM Tue Sep 18 09:32:58 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 18 Sep 2007 18:32:58 +0200 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: oops typo... and of course it'll work much better if your symbol uses ANTIALIAS FALSE instead of ANTIALIASED FALSE ;) On 9/18/07, thomas bonfort wrote: > Tim, > > Attached is a patch you can apply to mapagg.cpp - if you can't apply > it I'll mail you the whole file. > > it basically switches to aliased rendering if you use > SYMBOL > TYPE SIMPLE > ANTIALIASED FALSE > NAME 'aliased' > END > > it'll work *only* on line and polygon layers, if you specify a > STYLE > NAME 'aliased' > COLOR r g b > END > > nothing other is supported (line widths, or polygon outlines) > > I'd be interested to hear about timings if you can try it > > tb > > From Tim.Nolte at IPCSWIRELESSINC.COM Tue Sep 18 10:34:18 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Tue, 18 Sep 2007 13:34:18 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: Thomas, I'll give this a try, and see what I get. Thanks. I'll let you how it works. Just so I get this straight I add "ANTIALIAS FALSE" to my layer after the patch and that layer won't be antialiased, correct? ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Tuesday, September 18, 2007 12:31 PM To: Nolte, Tim Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! Tim, Attached is a patch you can apply to mapagg.cpp - if you can't apply it I'll mail you the whole file. it basically switches to aliased rendering if you use SYMBOL TYPE SIMPLE ANTIALIASED FALSE NAME 'aliased' END it'll work *only* on line and polygon layers, if you specify a STYLE NAME 'aliased' COLOR r g b END nothing other is supported (line widths, or polygon outlines) I'd be interested to hear about timings if you can try it tb From thomas.bonfort at GMAIL.COM Tue Sep 18 10:45:38 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 18 Sep 2007 19:45:38 +0200 Subject: MapServer 5.0.0 released! In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A36ED0@KTWMAIL.ilpcs.com> Message-ID: On 9/18/07, Nolte, Tim wrote: > Thomas, > > I'll give this a try, and see what I get. Thanks. I'll let you how it > works. Just so I get this straight I add "ANTIALIAS FALSE" to my layer > after the patch and that layer won't be antialiased, correct? nope, that's not it.. you create the symbol definition in your symbol file or inlined in your mapfile. and then you set the layers you want rendered fast to LAYER NAME blablba DATA ... CLASS STYLE COLOR r g b SYMBOL 'aliased' END END END it's slower than gd but did speed up dense line drawings by a factor of 3 when i tried it, less with polygons. tb > > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, September 18, 2007 12:31 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > Tim, > > Attached is a patch you can apply to mapagg.cpp - if you can't apply > it I'll mail you the whole file. > > it basically switches to aliased rendering if you use > SYMBOL > TYPE SIMPLE > ANTIALIASED FALSE > NAME 'aliased' > END > > it'll work *only* on line and polygon layers, if you specify a > STYLE > NAME 'aliased' > COLOR r g b > END > > nothing other is supported (line widths, or polygon outlines) > > I'd be interested to hear about timings if you can try it > > tb > From pal.kristensen at STATKART.NO Tue Sep 18 11:54:43 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 18 Sep 2007 11:54:43 -0700 Subject: Interpolate image In-Reply-To: <46EFC14B.2000306@mapgears.com> Message-ID: Thanks for the help!! I really appreciate the quick response. Would it be an idea to add the information provided in the MS RFC 4 to the raster how to document? It is mentioned in the RFC that the documentation should be updated with the new processing functionality provided. Is far as I can see this is not the case, many other processing options is described in the raster how to, but not the resample option. At the moment the information on how to resample the output is quite hard to find (especially for a Mapserver noob like me :-) ). The result of using an other resample method than nearest neighbor is dramatically increasing output quality in some cases when dealing with rasters. I think it would be nice to add this to the raster how to, so that others don't have to dig into the development section of the site to find it. Anyway, thanks again for the help! Regards, P?l Kristensen Norwegian Mapping and Cadastre Authority Daniel Morissette-2 wrote: > > I think Guillaume is correct that AGG's main advantages are on the > vector side and unless I'm mistaken you won't see much difference with > rasters. Thomas or others who worked on AGG support can correct me if > I'm wrong. > > Back to P?l's question, if I understood correctly, you're looking for a > way to do bilinear resampling. This has been supported since MapServer > 4.8, see RFC-4 for the details: > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-4 > > Note that bilinear resampling was not working for AGG output in > 5.0.0-rc2 and this was fixed in the 5.0.0 release (that's one of the two > fixes that were made after RC2.) ... you'll have to wait for a new MS4W > with the release version of MapServer 5.0.0 to test this with AGG, but > you can already test it with GD with RC2. I heard that Jeff was working > on a new MS4W release yesterday, so it should be available very soon. > > Daniel > > > Guillaume Sueur wrote: >> I think AGG optimization only applies on vector data. Am I wrong ? >> >> Guillaume >> >> P?l Kristensen a ?crit : >>> Hi! >>> >>> I have recently installed ms4w 2.2.6 beta which include MS 5.0 RC2. The >>> reason for this was to test the new AGG rendering engine when using >>> Mapserver as a WMS server, with only high resolution (RGB) rasters as >>> the >>> data source. Most WMS servers around (both free and commercial) uses >>> nearest >>> neighbor interpolation on the resulting image that is transfered to the >>> client. In situations where the source data is only hires rasters or >>> imagery >>> (as in my case), the quality of the output would be much better if you >>> could >>> apply an bilinear interpolation to the produced image (see the attached >>> images for an example). Because in most cases the pixels in the source >>> data >>> and the pixels on the screen do not match up, even if I have produces >>> pyramids on the source data (using gdal gdaladdo with the average option >>> sett). The only WMS servers that has the ability to interpolate the >>> resulting image with bilinear interpolation (that I have discovered) >>> is the >>> ESRI ArcIMS ArcMap image service and the ESRI ArcGIS Server. >>> >>> I kind of hoped that the new AGG rendering back-end would give an >>> option to >>> set the interpolation method used in the output, but I see no difference >>> when using AGG instead of GD. (IMAGEMODE is 24bit (RGB) PNG in both >>> cases). >>> Am I missing something here, or do not AGG increase the image quality >>> if the >>> resulting image if the data source is only rasters? Does anyone have any >>> experience concerning this issue, and maybe could give me some advice? >>> >>> ArcGIS Server >>> http://www.nabble.com/file/p12754990/ArcGIS_Server.png >>> >>> Mapserver 5.0 rc2 with AGG rendering >>> http://www.nabble.com/file/p12754990/MapServer_5rc2_AGG.png >>> Regards, >>> P?l Kristensen >>> Norwegian Mapping and Cadastre Authority >> >> > > > -- > Daniel Morissette > http://www.mapgears.com/ > > -- View this message in context: http://www.nabble.com/Interpolate-image-tf4473610.html#a12763646 Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at ZEELANDNET.NL Tue Sep 18 11:58:14 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Tue, 18 Sep 2007 20:58:14 +0200 Subject: mapserver 5 and 4.10 together Message-ID: Hello list! I am ancious to give mapserver 5.0 a test run! For this I want to create a hybrid situation running mapserv5.exe and mapserv.exe next to each other. Is this possible or will I run into trouble with dll's? Any suggestions appreciated! -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Sep 18 13:46:13 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 18 Sep 2007 16:46:13 -0400 Subject: Interpolate image In-Reply-To: <12763646.post@talk.nabble.com> Message-ID: P?l Kristensen wrote: > Thanks for the help!! I really appreciate the quick response. > > Would it be an idea to add the information provided in the MS RFC 4 to the > raster how to document? It is mentioned in the RFC that the documentation > should be updated with the new processing functionality provided. Is far as > I can see this is not the case, many other processing options is described > in the raster how to, but not the resample option. > > At the moment the information on how to resample the output is quite hard to > find (especially for a Mapserver noob like me :-) ). The result of using an > other resample method than nearest neighbor is dramatically increasing > output quality in some cases when dealing with rasters. I think it would be > nice to add this to the raster how to, so that others don't have to dig into > the development section of the site to find it. P?l, I will add the RFC 4 notes into the Raster Data Access HOWTO. I thought it was already there - my mistake. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From henric at ERNSTSON.NU Tue Sep 18 13:20:24 2007 From: henric at ERNSTSON.NU (Henric Ernstson) Date: Tue, 18 Sep 2007 22:20:24 +0200 Subject: php error Message-ID: Hi list I have used the example in http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample using a shape-file that I got including the right extents and so on. I get this output in my web-browser: 8 9 10 11 12 13 14 15 in my browser Yes phpinfo() mapserver is there and the shape-file is ok (displayed in chameleon Ok) best reg, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: varmland_php.php Type: application/octet-stream Size: 149 bytes Desc: not available URL: From vishu_73ns at YAHOO.COM Wed Sep 19 02:50:57 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Wed, 19 Sep 2007 04:50:57 -0500 Subject: Mapserver re installed Message-ID: I have reinstalled the Fedora and mapserver 5.0.0 with the working set of the mapfile, index and template. I am not sure if it has anything to do with the new version. I am getting the following error. loadWeb(): Unknown identifier. Parsing error near (/usr/local/apache2/htdocs/tmp):(line 1) I suspect it has something to with the index.html file initiating the call. Please help Extract of index.html file is From bartvde at GMAIL.COM Wed Sep 19 03:38:16 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Wed, 19 Sep 2007 12:38:16 +0200 Subject: two upcoming FOSS4G seminars in the Netherlands Message-ID: Hello list, This email has been sent to some other (geo) OSS lists as well, so I apologize for any cross-postings. Below you can find some information regarding two seminars in the Netherlands on the topic of opensource geo-ict tools, including Mapserver. This info is targeted on mailinglist-members who master the Dutch language. -------------------------------------------------------------------------- SEMINAR (techniek): OpenSource in de GEO-ICT (16 oktober) Gaarne wil ik uw aandacht vestigen op twee seminars rondom het onderwerp "Open source in het geodomein" die in de tweede helft van 2007 worden georganiseerd door respectievelijk het werkprogramma OSOSS en het GIN. Allereerst zal er op 16 oktober aanstaande een OSOSS-seminar plaatsvinden in Utrecht met als onderwerp "Open source in de Geo-ICT". Dit seminar heeft een duidelijk technische insteek. Een aantal deskundigen zal hier middels parallelsessies dieper ingaan op de beschikbare open source componenten in het geodomein zoals Postgis, Mapserver, Geoserver en Geonetwork. Ook zal een aantal projecten de revue passeren waarin dergelijke open source software in de praktijk is ge?valueerd. Hieronder de link naar de pagina met meer informatie. U kunt zich daar ook online inschrijven. Mocht u willen komen schrijf dan zo spoedig mogelijk in aangezien we op tijd moeten weten hoeveel personen er komen. http://www.mediaplaza.nl/mp.php/mediaplaza/agenda/agenda.php?id=276 SEMINAR (beleid): OpenSource in de GEO-ICT (23 november) Daarnaast wordt er op 23 november tijdens het GIN-congres een tweede seminar georganiseerd door de GIN-sectie Vastgoed- en Geo-Informatie. In dit seminar staat de techniek minder centraal, waardoor dit seminar ook geschikt is voor de niet-techneuten onder ons die gewoon meer willen weten over de relevantie en status van de huidige open source softwarecomponenten in relatie tot de huidige beleidspraktijk. De nadruk zal hier liggen op de inzet van open source bij lokale en regionale overheden en de diverse aspecten die hierbij een rol spelen. Het programma hiervoor moet nog definitief worden gemaakt. Heeft u vragen? Schroom dan niet deze aan ondergetekende te stellen. Wim Blanken (w.blanken at geon.nl) -------------------------------------------------------------------------- Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Wed Sep 19 06:06:33 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 19 Sep 2007 08:06:33 -0500 Subject: Expand Mapextent on Polygon query Message-ID: Hello, I am using Mapserver 4.8 CGI. I want to expand teh mapextent a little bit when I query a polygon. In doing point queries, I set a buffer, but this doesn't work with polygons. Any help would be greatly appreciated. Lawrence From mschulz at WEBGIS.DE Wed Sep 19 06:13:19 2007 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Wed, 19 Sep 2007 15:13:19 +0200 Subject: expressions: modulus or modulo operator? Message-ID: Hi, first of all: mapserver 5 rocks. THX. I have one question: I found in the history.txt that the "modulus" operator is supported by expressions. Now I am uncertain what is meant: - "modulus" the absolute value of a number without a sign or - "modulo" the rest of an integer division, usually expressed with the operator "%" When i looked in mapparser.y i found this line: 345: math_exp '%' math_exp { $$ = (int)$1 * (int)$3; } This looks like the modulo operator is defined, but the calculation is not modulo. Can someone shed some light on this? I am trying to classify isolines with the expression ([iso-value] % 10) and it should draw all iso lines that are dividable by 10 without a rest, e.g. for giving them a thicker line width. But it nevertheless draws all lines. Cheers, Michael -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- +++ INTERGEO 25.09. - 27.09.07 Leipzig - Open Source Park, Halle 3, Stand K3.302 +++ From jmckenna at DMSOLUTIONS.CA Wed Sep 19 06:25:11 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 19 Sep 2007 09:25:11 -0400 Subject: Mapserver re installed In-Reply-To: Message-ID: Yes this is due to a change in the way variables must be expressed in CGI MapServer (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-31/). There is also notes on this in the MIGRATION_GUIDE.txt in the MapServer source. However I also had a difficult time getting all of my CGI viewers to work with these changes. I've attached one of my simple CGI viewers that now works with 5.0, so you can follow that. For sure one thing changed is that the variables "map_web_imageurl" and "map_web_imagepath" have been replaced with "map_web" (see my example). But hopefully other developers can explain this better than I can. -- jeff Vishal Nagpal wrote: > I have reinstalled the Fedora and mapserver 5.0.0 with the working set of > the mapfile, > index and template. I am not sure if it has anything to do with the new version. > I am getting the following error. > > > loadWeb(): Unknown identifier. Parsing error near > (/usr/local/apache2/htdocs/tmp):(line 1) > > I suspect it has something to with the index.html file initiating the call. > Please help > > Extract of index.html file is > > value="/usr/local/apache2/htdocs/raster/dgn.map"> > > > > > > value="/usr/local/apache2/htdocs/tmp"> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at ND.GOV Wed Sep 19 07:53:04 2007 From: pmoen at ND.GOV (Paul Moen) Date: Wed, 19 Sep 2007 09:53:04 -0500 Subject: Does shapeobj->union exist in php-mapscript Message-ID: I get the following error. PHP Fatal error: Call to undefined method ms_shape_obj::Union() By doing the following. $wktshp1 = ms_shapeObjFromWkt($wkt1); $wktshp2 = ms_shapeObjFromWkt($wkt2); $newshp = $wktshp1->Union($wktshp2); PHP/Mapscript docs say. shapeobj Union(shapeobj shape) Returns a shape object representing the union of the current shape object with the one passed as parameter. Only available if php/mapscript is built with GEOS library. GEOS is built in. MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Does union exist in PHP/Mapscript? Thanks, Paul From andresjpulido at GMAIL.COM Wed Sep 19 07:45:28 2007 From: andresjpulido at GMAIL.COM (SUBSCRIBE MAPSERVER-USERS andrespb) Date: Wed, 19 Sep 2007 09:45:28 -0500 Subject: raster error with mapscript Message-ID: somebody knowledge where I can find patch that it activates exceptions in mapscript of java? From umberto.nicoletti at GMAIL.COM Wed Sep 19 08:22:40 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 19 Sep 2007 17:22:40 +0200 Subject: raster error with mapscript In-Reply-To: Message-ID: Exceptions are present by default in mapscript. No need to activate them. Umberto On 9/19/07, SUBSCRIBE MAPSERVER-USERS andrespb wrote: > somebody knowledge where I can find patch that it activates exceptions in > mapscript of java? > From andreas.albarello at TERRITORIUMONLINE.COM Wed Sep 19 08:26:08 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Wed, 19 Sep 2007 17:26:08 +0200 Subject: expressions: modulus or modulo operator? In-Reply-To: Message-ID: Michael Schulz wrote: > When i looked in mapparser.y i found this line: > 345: math_exp '%' math_exp { $$ = (int)$1 * (int)$3; } > > This looks like the modulo operator is defined, but the calculation is > not modulo. Michael, indeed, that isn't modulo nor is it modulus, that's a multiplication of two truncated values (hence the (int) typecast). And http://trac.osgeo.org/mapserver/changeset/5151 confirms that line in mapparser.y is the actual implementation of what was called "modulus operator" in HISTORY.TXT. I'd file a bug report about this, since at least it isn't clear what is meant with "modulus" in this instance. If you need the actual modulo operator, I'd suggest changing that line to math_exp '%' math_exp { $$ = (int)$1 % (int)$3; } and regenerating the parser with yacc -p msyy -d -omapparser.c mapparser.y. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From gregor at HOSTGIS.COM Wed Sep 19 11:05:36 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 19 Sep 2007 12:05:36 -0600 Subject: building MS5+AGG Message-ID: Hi, all. I was disappointed in the lack of help with my compile issue, but considering what I pay you all, I can't reasonably complain. :) The excellent news is that we got MS5+AGG working, and boy are we impressed. Between "minfeaturesize auto" and the new line rendering, it's like a whole new app, smooth order from jagged chaos. Anyway, I wanted to share how I built AGG so that it compiled smoothly into Mapserver, since the procedure described in ticket 2215 just wasn't producing anything that would like. This is for Slamd64 (64-bit SLackware), but aside from the prerequisite packages it should work for other Linux-based OSs as well if you're not fortunate enough to have AGG available as a package. For 64-bit, these are a good general rule and don't hurt; export CPPFLAGS="-D_FILE_OFFSET_BITS=64" export CXXFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" export CFLAGS="-fPIC -D_FILE_OFFSET_BITS=64" To get AGG running smoothly, one must have SDL installed. On Slack, this means having the X11 base installed as well. l/sdl-1.2.11-*.tgz x/x11-6.9.0-*.tgz For 64-bit, also the X11 32-bit compat: c/32x11-6.9.0-x86_64-2.tgz Apply this patch to the source (watch the linewrap!) using "patch -b -p1 < this.patch" diff -ru agg-2.5.orig/font_freetype/Makefile.am agg-2.5/font_freetype/Makefile.am --- agg-2.5.orig/font_freetype/Makefile.am 2005-10-18 11:45:40.000000000 +0100 +++ agg-2.5/font_freetype/Makefile.am 2006-07-10 15:11:55.000000000 +0100 @@ -4,8 +4,9 @@ agginclude_HEADERS = agg_font_freetype.h lib_LTLIBRARIES = libaggfontfreetype.la -libaggfontfreetype_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ @FREETYPE_LIBS@ +libaggfontfreetype_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ @FREETYPE_LIBS@ libaggfontfreetype_la_SOURCES = agg_font_freetype.cpp libaggfontfreetype_la_CXXFLAGS = -I$(top_srcdir)/include @FREETYPE_CFLAGS@ +libaggfontfreetype_la_LIBADD = ../src/libagg.la endif diff -ru agg-2.5.orig/src/platform/sdl/Makefile.am agg-2.5/src/platform/sdl/Makefile.am --- agg-2.5.orig/src/platform/sdl/Makefile.am 2005-10-17 23:49:35.000000000 +0100 +++ agg-2.5/src/platform/sdl/Makefile.am 2006-07-10 15:11:55.000000000 +0100 @@ -5,6 +5,6 @@ libaggplatformsdl_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ libaggplatformsdl_la_SOURCES = agg_platform_support.cpp libaggplatformsdl_la_CXXFLAGS = -I$(top_srcdir)/include @SDL_CFLAGS@ -libaggplatformsdl_la_LIBADD = @SDL_LIBS@ +libaggplatformsdl_la_LIBADD = @SDL_LIBS@ ../../libagg.la endif diff -ru agg-2.5.orig/src/platform/X11/Makefile.am agg-2.5/src/platform/X11/Makefile.am --- agg-2.5.orig/src/platform/X11/Makefile.am 2005-10-19 19:11:35.000000000 +0100 +++ agg-2.5/src/platform/X11/Makefile.am 2006-07-10 15:11:55.000000000 +0100 @@ -4,5 +4,5 @@ libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ -L at x_libraries@ libaggplatformX11_la_SOURCES = agg_platform_support.cpp libaggplatformX11_la_CXXFLAGS = -I$(top_srcdir)/include @x_includes@ -libaggplatformX11_la_LIBADD = -lX11 +libaggplatformX11_la_LIBADD = -lX11 ../../libagg.la endif Then a simple make and install: sh ./autogen.sh --disable-gpc make make install Hopefully, this will save other Slackers a few hours. -- Gregor Mosheh / Greg Allensworth 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 From frodewj at GMAIL.COM Wed Sep 19 11:11:49 2007 From: frodewj at GMAIL.COM (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Wed, 19 Sep 2007 11:11:49 -0700 Subject: Legend problem in MapServer 5.0 Message-ID: Hey! I have just upgraded to MapServer 5.0, and there seems to be a little problem. When I use MAXSCALE and MINSCALE on a layer, the class won?t show up in legend. Using the same mapfile on a previous version of MapServer, the class shows up in legend. Any ideas? Regards, Frode -- View this message in context: http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12783108 Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Wed Sep 19 11:54:06 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Sep 2007 13:54:06 -0500 Subject: Legend problem in MapServer 5.0 In-Reply-To: <12783108.post@talk.nabble.com> Message-ID: If you try changing to the new keywords MINSCALEDENOM and MAXSCALEDENOM does the problem persist? (the old keywords should work) Also, are we talking the CGI, MapScript (if so, which flavor?) or ???? Steve >>> On 9/19/2007 at 1:11 PM, in message <12783108.post at talk.nabble.com>, Frode Wiseth J?rgensen wrote: > Hey! > > I have just upgraded to MapServer 5.0, and there seems to be a little > problem. > > When I use MAXSCALE and MINSCALE on a layer, the class won?t show up in > legend. > Using the same mapfile on a previous version of MapServer, the class shows > up in legend. > > Any ideas? > > > Regards, > Frode > > -- > View this message in context: > http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a1278310 > 8 > Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Wed Sep 19 11:55:54 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Sep 2007 13:55:54 -0500 Subject: expressions: modulus or modulo operator? In-Reply-To: Message-ID: The parser code looks screwed up, probably a bad copy and paste. If you file a bug I will fix ASAP. Steve >>> On 9/19/2007 at 8:13 AM, in message , Michael Schulz wrote: > Hi, > > first of all: mapserver 5 rocks. THX. > > I have one question: I found in the history.txt that the "modulus" > operator is supported by expressions. Now I am uncertain what is > meant: > > - "modulus" the absolute value of a number without a sign or > - "modulo" the rest of an integer division, usually expressed with the > operator "%" > > When i looked in mapparser.y i found this line: > 345: math_exp '%' math_exp { $$ = (int)$1 * (int)$3; } > > This looks like the modulo operator is defined, but the calculation is > not modulo. > > Can someone shed some light on this? > > I am trying to classify isolines with the expression ([iso-value] % > 10) and it should draw all iso lines that are dividable by 10 without > a rest, e.g. for giving them a thicker line width. But it nevertheless > draws all lines. > > Cheers, Michael From Steve.Lime at DNR.STATE.MN.US Wed Sep 19 12:04:04 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Sep 2007 14:04:04 -0500 Subject: MapServer 5, AGG Antialiasing... In-Reply-To: <46EFEA7F.3040605@territoriumonline.com> Message-ID: Andreas is correct, with AGG it's anti-aliasing all the time. Our implementation uses GD as the canvas for AGG to render into so rendering different layers with different drivers is not that far fetched, but is not available currently. Keep in mind that I think we will see some performance improvements. Thomas tried one right before the 5.0 release with good success. It was just too late in the development cycle to commit those changes without testing. If we can achieve approximately equal performance then I think letting GD do what it's good at makes sense. That may mean allowing 24-bit output but losing AA support for GD (which pales in comparison to AGG). Time will tell. Steve >>> On 9/18/2007 at 10:10 AM, in message <46EFEA7F.3040605 at territoriumonline.com>, Andreas Albarello wrote: > Timothy J Nolte wrote: >> Any way to selectively turn off the antialiasing >> for a layer when using AGG? Thanks. > > Not that I'm aware of. It's my understanding that AGG works only that > way, i.e. subpixel-rendering = always antialiased. > > I can see however how being able to individually select some layers to > be drawn the old way (GD) would be a nice addition. I guess that's > asking too much, though. > > Anyhow, I'm not so sure that simply getting rid of GD's RGB rendering in > a future relase as suggested in the migration guide is a good idea, > seeing that some users, especially those facing performance issues, > might want to keep drawing non-antialiased maps. > > Best regards, From Tim.Nolte at IPCSWIRELESSINC.COM Wed Sep 19 13:01:51 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 19 Sep 2007 16:01:51 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: Thomas, You've totally made my day. I was finally able to get your patch applied today. I tested it out and it works wonderfully. My mapfile went from a whopping 17sec down to a little over 5sec. I don't know if this feature would ever actually make it into the full release but it's a keeper as far as I'm concerned. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Tuesday, September 18, 2007 1:46 PM To: Nolte, Tim Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! On 9/18/07, Nolte, Tim wrote: > Thomas, > > I'll give this a try, and see what I get. Thanks. I'll let you how it > works. Just so I get this straight I add "ANTIALIAS FALSE" to my layer > after the patch and that layer won't be antialiased, correct? nope, that's not it.. you create the symbol definition in your symbol file or inlined in your mapfile. and then you set the layers you want rendered fast to LAYER NAME blablba DATA ... CLASS STYLE COLOR r g b SYMBOL 'aliased' END END END it's slower than gd but did speed up dense line drawings by a factor of 3 when i tried it, less with polygons. tb > > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, September 18, 2007 12:31 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > Tim, > > Attached is a patch you can apply to mapagg.cpp - if you can't apply > it I'll mail you the whole file. > > it basically switches to aliased rendering if you use > SYMBOL > TYPE SIMPLE > ANTIALIASED FALSE > NAME 'aliased' > END > > it'll work *only* on line and polygon layers, if you specify a > STYLE > NAME 'aliased' > COLOR r g b > END > > nothing other is supported (line widths, or polygon outlines) > > I'd be interested to hear about timings if you can try it > > tb > From nbest at LANWORTH.COM Wed Sep 19 15:01:11 2007 From: nbest at LANWORTH.COM (Neil Best) Date: Wed, 19 Sep 2007 17:01:11 -0500 Subject: ogr tileindex with postgis? Message-ID: Is it possible to use a PostGIS table as a tileindex? The docs seem to indicate so, but I could not find an example of how to connect to PostGIS through CONNECTIONTYPE OGR. I have made some reasonable attempts including TILEINDEX "PG:'host=myhost dbname=mydb',mytable" (analogous to the examples givens) and using CONNECTIONTYPE postgis in the usual fashion and substituting TILEINDEX for DATA, but it always seems to be looking for a shapefile. Normally I would provide better snippets but I wanted to throw the question out there before going home tonight, so if anyone has any insight or relevant web links I would appreciate that information very much. Thanks. Neil From gregor at HOSTGIS.COM Wed Sep 19 15:06:32 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 19 Sep 2007 16:06:32 -0600 Subject: ogr tileindex with postgis? In-Reply-To: Message-ID: > Is it possible to use a PostGIS table as a tileindex? My question is why one would do that? If you have a GIST index on the geometry column, the performance should be speedy without such tricks. I'd love to hear what you're trying to do that makes the OGR-tileindex approach seem attractive. -- Gregor Mosheh / Greg Allensworth 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 From nbest at LANWORTH.COM Wed Sep 19 16:52:57 2007 From: nbest at LANWORTH.COM (Neil Best) Date: Wed, 19 Sep 2007 18:52:57 -0500 Subject: ogr tileindex with postgis? In-Reply-To: <46F19D68.5000309@hostgis.com> Message-ID: Gregor Mosheh wrote: >> Is it possible to use a PostGIS table as a tileindex? > > My question is why one would do that? Yes, Gregor, I should be more clear that my purpose is to maintain a unified catalog of our rasters. From dobes at LNX.CZ Wed Sep 19 19:14:40 2007 From: dobes at LNX.CZ (Pavel =?ISO-8859-2?Q?Dobe=B9?=) Date: Thu, 20 Sep 2007 04:14:40 +0200 Subject: Creation symbols in PHP Mapscript on the fly Message-ID: Hi, is possible to set up on the fly this type of symbol only in PHP or have I to save it into symbol file? Symbol Name '45' Type TRUETYPE Font "vera-bold" Character "45" Antialias TRUE END I was trying some things described on http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/symbolobj but I feel i miss something important. I need this symbols because I'm using numbered points with numbers in the middle of those points. Regards Pavel From vishu_73ns at YAHOO.COM Wed Sep 19 23:03:27 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Thu, 20 Sep 2007 01:03:27 -0500 Subject: Mapserver re installed Message-ID: Thanks a lot it worked for me too, i think it is just " map_web" variable that does the trick. From frodewj at GMAIL.COM Wed Sep 19 23:44:56 2007 From: frodewj at GMAIL.COM (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Wed, 19 Sep 2007 23:44:56 -0700 Subject: Legend problem in MapServer 5.0 In-Reply-To: <46F129FD.5157.008F.0@dnr.state.mn.us> Message-ID: Hey, I've tested with MAXSCALE/MINSCALE and MINSCALEDENOM/MAXSCALEDENOM in - PHP MapScript - CGI - CSHARP but there is still no legend. Have also tested using MAXSCALE/MINSCALE and MINSCALEDENOM/MAXSCALEDENOM on both LAYER and CLASS -> no legend. However..connection to the layer through WMS gives me legend (LegendGraphic). Any ideas?? Steve Lime wrote: > > If you try changing to the new keywords MINSCALEDENOM and MAXSCALEDENOM > does the > problem persist? (the old keywords should work) > > Also, are we talking the CGI, MapScript (if so, which flavor?) or ???? > > Steve > >>>> On 9/19/2007 at 1:11 PM, in message > <12783108.post at talk.nabble.com>, Frode > Wiseth J?rgensen wrote: >> Hey! >> >> I have just upgraded to MapServer 5.0, and there seems to be a > little >> problem. >> >> When I use MAXSCALE and MINSCALE on a layer, the class won?t show > up in >> legend. >> Using the same mapfile on a previous version of MapServer, the class > shows >> up in legend. >> >> Any ideas? >> >> >> Regards, >> Frode >> >> -- >> View this message in context: >> > http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a1278310 > >> 8 >> Sent from the Mapserver - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12791719 Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at GMAIL.COM Thu Sep 20 03:36:57 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 20 Sep 2007 12:36:57 +0200 Subject: MapServer 5.0.0 released! In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A3709B@KTWMAIL.ilpcs.com> Message-ID: ok , I'll see how we can incorporate that... how much time does the same map take to be rendered with gd ? tb On 9/19/07, Nolte, Tim wrote: > Thomas, > > You've totally made my day. I was finally able to get your patch applied > today. I tested it out and it works wonderfully. My mapfile went from a > whopping 17sec down to a little over 5sec. I don't know if this feature > would ever actually make it into the full release but it's a keeper as > far as I'm concerned. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, September 18, 2007 1:46 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > On 9/18/07, Nolte, Tim wrote: > > Thomas, > > > > I'll give this a try, and see what I get. Thanks. I'll let you how it > > works. Just so I get this straight I add "ANTIALIAS FALSE" to my > layer > > after the patch and that layer won't be antialiased, correct? > > nope, that's not it.. > you create the symbol definition in your symbol file or inlined in > your mapfile. and then you set the layers you want rendered fast to > LAYER > NAME blablba > DATA ... > CLASS > STYLE > COLOR r g b > SYMBOL 'aliased' > END > END > END > > it's slower than gd but did speed up dense line drawings by a factor > of 3 when i tried it, less with polygons. > > tb > > > > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Associate Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > > > > > -----Original Message----- > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > > Sent: Tuesday, September 18, 2007 12:31 PM > > To: Nolte, Tim > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > > > Tim, > > > > Attached is a patch you can apply to mapagg.cpp - if you can't apply > > it I'll mail you the whole file. > > > > it basically switches to aliased rendering if you use > > SYMBOL > > TYPE SIMPLE > > ANTIALIASED FALSE > > NAME 'aliased' > > END > > > > it'll work *only* on line and polygon layers, if you specify a > > STYLE > > NAME 'aliased' > > COLOR r g b > > END > > > > nothing other is supported (line widths, or polygon outlines) > > > > I'd be interested to hear about timings if you can try it > > > > tb > > > > From janeks.kamerovskis at FORANBALTIC.LV Thu Sep 20 03:40:02 2007 From: janeks.kamerovskis at FORANBALTIC.LV (Janeks Kamerovskis) Date: Thu, 20 Sep 2007 13:40:02 +0300 Subject: mapserver WMS service and clients (QGIS, ArcMap9.1, GoogleEarth) Message-ID: Hi, folks! Up to some days ago I did some mapserver configs only for web map. I had ideas to configure it as WMS service, but was a bit worried, because the description seemed for me that there is a lot of configuration and will I can handle it. But well - it was not so difficult as I seems. ;-) But finally I faced with some problems: -> I could not it (WMS service layer) into ArMap9.1 or better say - I can to add them, but it is blank -> It works well in QGIS, but if I tested the same *.map file for browse mode in browser, than if I put map projection in source shape file native projection EPSG:2100, than I can see the layer in browser, but if I put map projection in WGS84, than I can see only blank image in browser. In both cases in QGIS the layer works and fits well with other projections, and projection was defined for given layer as well. -> The test with Google Earth finally went well, after I escaped some characters in map file path. Does somebody have an idea how to get my map service into ArcMap and is it correct way if my map is blank in browse mode? Janeks From Tim.Nolte at IPCSWIRELESSINC.COM Thu Sep 20 05:13:03 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Thu, 20 Sep 2007 08:13:03 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: The difference between AGG (w/ patch) verses straight GD was about 1.5-2 sec difference. This is acceptable for me. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Thursday, September 20, 2007 6:37 AM To: Nolte, Tim Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! ok , I'll see how we can incorporate that... how much time does the same map take to be rendered with gd ? tb On 9/19/07, Nolte, Tim wrote: > Thomas, > > You've totally made my day. I was finally able to get your patch applied > today. I tested it out and it works wonderfully. My mapfile went from a > whopping 17sec down to a little over 5sec. I don't know if this feature > would ever actually make it into the full release but it's a keeper as > far as I'm concerned. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, September 18, 2007 1:46 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > On 9/18/07, Nolte, Tim wrote: > > Thomas, > > > > I'll give this a try, and see what I get. Thanks. I'll let you how it > > works. Just so I get this straight I add "ANTIALIAS FALSE" to my > layer > > after the patch and that layer won't be antialiased, correct? > > nope, that's not it.. > you create the symbol definition in your symbol file or inlined in > your mapfile. and then you set the layers you want rendered fast to > LAYER > NAME blablba > DATA ... > CLASS > STYLE > COLOR r g b > SYMBOL 'aliased' > END > END > END > > it's slower than gd but did speed up dense line drawings by a factor > of 3 when i tried it, less with polygons. > > tb > > > > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Associate Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > > > > > -----Original Message----- > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > > Sent: Tuesday, September 18, 2007 12:31 PM > > To: Nolte, Tim > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > > > Tim, > > > > Attached is a patch you can apply to mapagg.cpp - if you can't apply > > it I'll mail you the whole file. > > > > it basically switches to aliased rendering if you use > > SYMBOL > > TYPE SIMPLE > > ANTIALIASED FALSE > > NAME 'aliased' > > END > > > > it'll work *only* on line and polygon layers, if you specify a > > STYLE > > NAME 'aliased' > > COLOR r g b > > END > > > > nothing other is supported (line widths, or polygon outlines) > > > > I'd be interested to hear about timings if you can try it > > > > tb > > > > From David.Fawcett at STATE.MN.US Thu Sep 20 06:40:18 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 20 Sep 2007 08:40:18 -0500 Subject: mapserver WMS service and clients (QGIS, ArcMap9.1, GoogleEarth) In-Reply-To: A<20070920104009.D4BBE85B81F@system1.hostex.lv> Message-ID: Janeks, Can you post the text of your map file and the text of the template that you are using for browse mode? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Janeks Kamerovskis Sent: Thursday, September 20, 2007 5:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver WMS service and clients (QGIS, ArcMap9.1, GoogleEarth) Hi, folks! Up to some days ago I did some mapserver configs only for web map. I had ideas to configure it as WMS service, but was a bit worried, because the description seemed for me that there is a lot of configuration and will I can handle it. But well - it was not so difficult as I seems. ;-) But finally I faced with some problems: -> I could not it (WMS service layer) into ArMap9.1 or better say - I -> can to add them, but it is blank -> It works well in QGIS, but if I tested the same *.map file for browse mode in browser, than if I put map projection in source shape file native projection EPSG:2100, than I can see the layer in browser, but if I put map projection in WGS84, than I can see only blank image in browser. In both cases in QGIS the layer works and fits well with other projections, and projection was defined for given layer as well. -> The test with Google Earth finally went well, after I escaped some characters in map file path. Does somebody have an idea how to get my map service into ArcMap and is it correct way if my map is blank in browse mode? Janeks From Tim.Nolte at IPCSWIRELESSINC.COM Thu Sep 20 07:06:13 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Thu, 20 Sep 2007 10:06:13 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: I guess I'm not totally out of the dark yet. I didn't notice it but when using the patch the legend images for the layers I've added the SYMBOL 'aliased' to don't show up now. Any tip? I'm assuming that this patch is looking specifically for the "SYMBOL 'aliased'" so I can't simply add more symbols that have the correct color. I think this might be the problem because it's trying to use that symbol to make the legend image. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, September 18, 2007 1:46 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > On 9/18/07, Nolte, Tim wrote: > > Thomas, > > > > I'll give this a try, and see what I get. Thanks. I'll let you how it > > works. Just so I get this straight I add "ANTIALIAS FALSE" to my > layer > > after the patch and that layer won't be antialiased, correct? > > nope, that's not it.. > you create the symbol definition in your symbol file or inlined in > your mapfile. and then you set the layers you want rendered fast to > LAYER > NAME blablba > DATA ... > CLASS > STYLE > COLOR r g b > SYMBOL 'aliased' > END > END > END > > it's slower than gd but did speed up dense line drawings by a factor > of 3 when i tried it, less with polygons. > > tb From John.Spotten at CAPETOWN.GOV.ZA Thu Sep 20 08:09:07 2007 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Thu, 20 Sep 2007 17:09:07 +0200 Subject: Html legend fails to display with more recent versions of mapserver Message-ID: Help, More than 1 layer of same type, whether polygon, line or point, in map file causes the html legend to fail to display with opt_flag=15 default. Avoiding opt_flag=2 in bit pattern, where status has no influence, results in only visible layers appearing in legend. I want all layers in map file to be present in the legend. I do not use antialias or requires keywords in layer sections which has been mentioned before related to html legend failures. This problem occurs with ogr mapinfo formats and native shape format but only with more recent mapservers from about 4.8 onwards. Any clues Bye for now john John Spotten C.Eng Pr.Eng Head of Transport Modelling and Systems Analysis Transport Planning 10th Floor Harbour Side Cape Town Civic Centre Tel +27 21 4004732 Fax +27 21 4004931 Cell +27 842314457 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Thu Sep 20 08:47:32 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 20 Sep 2007 11:47:32 -0400 Subject: Html legend fails to display with more recent versions of mapserver In-Reply-To: <875F594C85E9914C841109EADA425E35CE819A@CBD-METLIFE-001.capetown.gov.za> Message-ID: John, I am not aware of this issue. Could you please file a ticket and attach a sample mapfile, legend template and mapserv request that reproduces it? Please assign the ticket to me (id=dmorissette). Daniel John Spotten wrote: > Help, > > More than 1 layer of same type, whether polygon, line or point, in map > file causes the html legend to fail to display with opt_flag=15 default. > > Avoiding opt_flag=2 in bit pattern, where status has no influence, > results in only visible layers appearing in legend. I want all layers > in map file to be present in the legend. > > I do not use antialias or requires keywords in layer sections which > has been mentioned before related to html legend failures. > > This problem occurs with ogr mapinfo formats and native shape format > but only with more recent mapservers from about 4.8 onwards. > > Any clues > > Bye for now > john > > John Spotten C.Eng Pr.Eng > Head of Transport Modelling and Systems Analysis > Transport Planning > 10th Floor Harbour Side > Cape Town Civic Centre > Tel +27 21 4004732 > Fax +27 21 4004931 > Cell +27 842314457 > > -- Daniel Morissette http://www.mapgears.com/ From warmerdam at POBOX.COM Thu Sep 20 09:47:31 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Sep 2007 12:47:31 -0400 Subject: ogr tileindex with postgis? In-Reply-To: Message-ID: Neil Best wrote: > Is it possible to use a PostGIS table as a tileindex? The docs seem to > indicate so, but I could not find an example of how to connect to > PostGIS through CONNECTIONTYPE OGR. I have made some reasonable > attempts including TILEINDEX "PG:'host=myhost dbname=mydb',mytable" > (analogous to the examples givens) and using CONNECTIONTYPE postgis in > the usual fashion and substituting TILEINDEX for DATA, but it always > seems to be looking for a shapefile. Normally I would provide better > snippets but I wanted to throw the question out there before going home > tonight, so if anyone has any insight or relevant web links I would > appreciate that information very much. Thanks. Neil, Are you wanting to use postgis as a tileindex for a raster or a vector layer? I only have experience doing this for raster layers, but it might also work for vector layers. Generally if you want to use postgis for a tileindex, you need to create a seperate tileindex layer and then reference that layer by name in the TILEINDEX keyword of the tiled layer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From nbest at LANWORTH.COM Thu Sep 20 14:45:09 2007 From: nbest at LANWORTH.COM (Neil Best) Date: Thu, 20 Sep 2007 16:45:09 -0500 Subject: ogr tileindex with postgis? Message-ID: On Thu, 20 Sep 2007 12:47:31 -0400, Frank Warmerdam wrote: >Neil Best wrote: >> Is it possible to use a PostGIS table as a tileindex? The docs seem to >> indicate so, but I could not find an example of how to connect to >> PostGIS through CONNECTIONTYPE OGR. > >Are you wanting to use postgis as a tileindex for a raster or a vector >layer? I only have experience doing this for raster layers, but it might >also work for vector layers. > Yes, Frank, it is for raster layers. Gregor was quite right to wonder what the advantage of tileindexing vector layers if PostGIS is being used properly. >Generally if you want to use postgis for a tileindex, you need to create >a seperate tileindex layer and then reference that layer by name in the >TILEINDEX keyword of the tiled layer. It worked like a charm! (Except now something is wrong with my legends . . . gremlins!) I never would have thought of referring to a layer from another layer and I don't recall mention of it in my scouring of the docs. Are there other applications/examples of this technique? I have some ideas about how to use this table as a unified raster catalog. As I understand it a TILEINDEX must be in the same projection as the rasters to which it refers. I am imagining that I can still use this table for a heterogeneous collection (e.g. NAIPs are in UTM zones) because I can set up views that provide the tile geometry in the proper SRS while still maintaining a geometry column in our default SRS*. Furthermore this will allow me to define a cross-section of the collection using SQL which will be useful in accessing rasters along the time dimension and any other way based on the path/file or any additional attributes. This table will serve an additional purpose in keeping track of automated, near-real-time data ingests. Frank, maybe your experiences have taken you in similar directions. I presume that you will be in Victoria next week -- maybe I could corner you to discuss this further. Thanks for the tip; this will be very useful. Neil *Which happens to be an Albers Equal Area for the continental US that has no EPSG code. I find this strange because I believe that it comes from the USGS and is widely used, but what do I know? I'll attach the WKT for inspection -- maybe it could be adopted if there was enough interest. -------------- next part -------------- A non-text attachment was scrubbed... Name: aeaConus.wkt Type: application/octet-stream Size: 152 bytes Desc: not available URL: From John.Spotten at CAPETOWN.GOV.ZA Fri Sep 21 03:45:51 2007 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Fri, 21 Sep 2007 12:45:51 +0200 Subject: Html legend size fix in mapserver 5.0.0 beta3 Message-ID: Hi David, Came across this fix in mapserver 5.0.0 beta3 2007-08-08 Fixed problems with very large HTML legends producing no output (#1946) This addresses my problem which is related to number of layers in the mapfile and the number of outputs from the html legend for each layer which in combination can result in large legend outputs which do not display at all. Limitations of software are rarely ever mentioned. Bye john John Spotten C.Eng Pr.Eng Head of Transport Modelling and Systems Analysis Transport Planning 10th Floor Harbour Side Cape Town Civic Centre Tel +27 21 4004732 Fax +27 21 4004931 Cell +27 842314457 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Piero.Cavalieri at HEIDI.IT Fri Sep 21 03:55:59 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 21 Sep 2007 12:55:59 +0200 Subject: Error while running OpenEV on FWTools 1.3.7 Message-ID: Hi all, I have upgraded FWtools from 1.0.7 to 1.3.7. When trying to run OpenEV from Windows menu I have the following error: The ordinal 2821 could not be located in the dynamic link library LIBEAY32.dll. When trying to run from command line I have the following error: C:\Programmi\FWTools>openev.bat Traceback (most recent call last): File "C:\PROGRA~1\FWTools\pymod\openev.py", line 80, in ? import gviewapp File "C:\PROGRA~1\FWTools\pymod\gviewapp.py", line 139, in ? import gtkmissing File "C:\PROGRA~1\FWTools\pymod\gtkmissing.py", line 3, in ? import _gv ImportError: DLL load failed with error code 182 Could someone tell me what could be happen (maybe LIBEAY32.dll overwritten with wrong version) ? Thanks in advance Piero -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at IPCSWIRELESSINC.COM Fri Sep 21 06:48:34 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Fri, 21 Sep 2007 09:48:34 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: Ok, here is my symbol and layer definitions. SYMBOL NAME 'aliased' TYPE SIMPLE ANTIALIAS FALSE END LAYER GROUP "Propagations" NAME "-98dBm to -104dBm (Outdoor Rural)" STATUS ON TILEINDEX "propagations/104/tileindex" TILEITEM "location" TYPE POLYGON # -------------------------------------------------- # Class: -98dBm to -104dBm (Outdoor Rural) # -------------------------------------------------- CLASS NAME "-98dBm to -104dBm (Outdoor Rural)" MINSCALE 0 MAXSCALE 1200000 STYLE SYMBOL "aliased" COLOR 255 128 0 OUTLINECOLOR 255 128 0 END END END Does anyone see something that isn't right? My default application interface is Chameleon, however just using the basic cgi index.html & viewer-template.html ways of rendering are outputting the same thing (no legend images for layers using SYMBOL "aliased"). Prior to this patch those legend images showed up fine. I'm pretty sure it has something to do with adding a symbol to the class. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Thursday, September 20, 2007 10:28 AM To: Nolte, Tim Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! I can't reproduce this here... the legend icon shows up correctly (i.e. aliased) how are you drawing the legend icons? tb On 9/20/07, Nolte, Tim wrote: > I guess I'm not totally out of the dark yet. I didn't notice it but when > using the patch the legend images for the layers I've added the SYMBOL > 'aliased' to don't show up now. Any tip? I'm assuming that this patch is > looking specifically for the "SYMBOL 'aliased'" so I can't simply add > more symbols that have the correct color. I think this might be the > problem because it's trying to use that symbol to make the legend image. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > > -----Original Message----- > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > > Sent: Tuesday, September 18, 2007 1:46 PM > > To: Nolte, Tim > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > > > On 9/18/07, Nolte, Tim wrote: > > > Thomas, > > > > > > I'll give this a try, and see what I get. Thanks. I'll let you how > it > > > works. Just so I get this straight I add "ANTIALIAS FALSE" to my > > layer > > > after the patch and that layer won't be antialiased, correct? > > > > nope, that's not it.. > > you create the symbol definition in your symbol file or inlined in > > your mapfile. and then you set the layers you want rendered fast to > > LAYER > > NAME blablba > > DATA ... > > CLASS > > STYLE > > COLOR r g b > > SYMBOL 'aliased' > > END > > END > > END > > > > it's slower than gd but did speed up dense line drawings by a factor > > of 3 when i tried it, less with polygons. > > > > tb > From jorn at SPACETEC.NO Fri Sep 21 06:48:37 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Fri, 21 Sep 2007 15:48:37 +0200 Subject: TIFF/TFW fails in v5.0 Message-ID: Hi all, I have just migrated from Mapserver-4.9/FWTools to Mapserver-5.0/FWTools-1.3.7. In my map file I have some TIFF files with .TFW (world file). The problem is that mapserv returns "msDrawMap(): Image handling error. Failed to draw layer named 'TROMS_LARGE'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /srv/www/htdocs/konserv/konservs1a/data/TROMS_LARGE.tif is not an EPPL file." The same map file works for mapserv 4.9. Here is my map file layer entry LAYER #stamp: 1189671749 NAME "TROMS_LARGE" DATA "TROMS_LARGE.tif" TYPE RASTER STATUS ON TRANSPARENCY 50 OFFSITE 0 0 0 DEBUG ON CLASS NAME "" KEYIMAGE "/srv/www/htdocs/legends/terra_chlora_legend.png" END PROJECTION "proj=stere" "lat_0=63.0" "lon_0=16.0" END END I have also tried to rename the file to .tiff. Do you have some ideas? cheers J?rn Vegard From john.cole at UAI.COM Fri Sep 21 07:42:02 2007 From: john.cole at UAI.COM (John Cole) Date: Fri, 21 Sep 2007 07:42:02 -0700 Subject: Legend problem in MapServer 5.0 In-Reply-To: <46F129FD.5157.008F.0@dnr.state.mn.us> Message-ID: I have the same issue: using a MS4 mapfile, cgi mapserver on windows (ms4w 2.2.6), with and without AGG, I'm getting a little black box for the legend. Same map file on 4.10 and the legend works. I've tried the DENOM additions and it doesn't appear to effect it. MS4 http://www.nabble.com/file/p12822994/CropperCapture%255B2%255D.png MS5 http://www.nabble.com/file/p12822994/CropperCapture%255B3%255D.png I've attempted to attach images (I'm using nabble). So hopefully you can see what I'm getting. Thanks, John Steve Lime wrote: > > If you try changing to the new keywords MINSCALEDENOM and MAXSCALEDENOM > does the > problem persist? (the old keywords should work) > > Also, are we talking the CGI, MapScript (if so, which flavor?) or ???? > > Steve > >>>> On 9/19/2007 at 1:11 PM, in message > <12783108.post at talk.nabble.com>, Frode > Wiseth J?rgensen wrote: >> Hey! >> >> I have just upgraded to MapServer 5.0, and there seems to be a > little >> problem. >> >> When I use MAXSCALE and MINSCALE on a layer, the class won?t show > up in >> legend. >> Using the same mapfile on a previous version of MapServer, the class > shows >> up in legend. >> >> Any ideas? >> >> >> Regards, >> Frode >> >> -- >> View this message in context: >> > http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a1278310 > >> 8 >> Sent from the Mapserver - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12822994 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Fri Sep 21 10:01:46 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 21 Sep 2007 13:01:46 -0400 Subject: Error while running OpenEV on FWTools 1.3.7 In-Reply-To: <4841F745477DF94A97C515658C91BB2F1555DD@lan-exc-01.heidi.local> Message-ID: Piero, This question is best addressed to the FWTools mailing list since it is FWTools specific. My guess is that you have an older copy of libeay32.dll in your C:\windows\system32 directory and this is overriding the one provided by FWTools. You could try copying the FWTools libeay32.dll over the one in \windows\system32 but you run a non-trivial risk of breaking some other application that depends on the old version in some funky way. So if you do that,I'd encourage you to first rename the old one, so you can get it back if you need to. It is a curse on me that I can't seem to force FWTools executables to use my own DLLs in preference to ones in C:\windows\system32. Best regards, Piero Cavalieri wrote: > Hi all, > > > > I have upgraded FWtools from 1.0.7 to 1.3.7. > > When trying to run OpenEV from Windows menu I have the following error: > > > > The ordinal *2821* could not be located in the dynamic link library > *LIBEAY32*.*dll*. > > > > When trying to run from command line I have the following error: > > > > C:\Programmi\FWTools>openev.bat > > Traceback (most recent call last): > > File "C:\PROGRA~1\FWTools\pymod\openev.py", line 80, in ? > > import gviewapp > > File "C:\PROGRA~1\FWTools\pymod\gviewapp.py", line 139, in ? > > import gtkmissing > > File "C:\PROGRA~1\FWTools\pymod\gtkmissing.py", line 3, in ? > > import _gv > > ImportError: DLL load failed with error code 182 > > > > Could someone tell me what could be happen (maybe *LIBEAY32*.*dll > *overwritten with wrong version) ? > > > > Thanks in advance > > Piero > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From friendvn2000 at YAHOO.COM Fri Sep 21 11:48:17 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Fri, 21 Sep 2007 13:48:17 -0500 Subject: Can querybyAttribute at layer that has MINSCALE, MAXSCALE setting Message-ID: Can we make querybyAttributes at Full Extent to a layer that has MINSCALE, MAXSCALE setting ? Thanks! From jayzee.smith at GMAIL.COM Fri Sep 21 13:14:49 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 21 Sep 2007 16:14:49 -0400 Subject: notepad++ syntax highlighting Message-ID: guys, simple question has me stumped: got notepad++ from http://notepad-plus.sourceforge.net/ and copied like so- /plugins/APIs/mapfile.api /userDefineLang.xml but don't see map under Language. The User Define Dialog doesn't help either. btw 5 doesn't yet use xml for map file, right?? cheers, jzs From john.cole at UAI.COM Fri Sep 21 14:54:10 2007 From: john.cole at UAI.COM (John Cole) Date: Fri, 21 Sep 2007 14:54:10 -0700 Subject: Legend problem in MapServer 5.0 In-Reply-To: <12791719.post@talk.nabble.com> Message-ID: My WMS getLegendGraphic calls are not working however. MS4: http://www.nabble.com/file/p12830510/CropperCapture%255B4%255D.png MS5: http://www.nabble.com/file/p12830510/CropperCapture%255B5%255D.png This seems like a big issue to me :-) Was there a change in the LEGEND that needs to be made for MS5? Thanks, John Frode Wiseth J?rgensen wrote: > > Hey, > > > > I've tested with MAXSCALE/MINSCALE and MINSCALEDENOM/MAXSCALEDENOM in > - PHP MapScript > - CGI > - CSHARP > but there is still no legend. > > Have also tested using MAXSCALE/MINSCALE and MINSCALEDENOM/MAXSCALEDENOM > on both LAYER and CLASS -> no legend. > > However..connection to the layer through WMS gives me legend > (LegendGraphic). > > > Any ideas?? > > > > > > > Steve Lime wrote: >> >> If you try changing to the new keywords MINSCALEDENOM and MAXSCALEDENOM >> does the >> problem persist? (the old keywords should work) >> >> Also, are we talking the CGI, MapScript (if so, which flavor?) or ???? >> >> Steve >> >>>>> On 9/19/2007 at 1:11 PM, in message >> <12783108.post at talk.nabble.com>, Frode >> Wiseth J?rgensen wrote: >>> Hey! >>> >>> I have just upgraded to MapServer 5.0, and there seems to be a >> little >>> problem. >>> >>> When I use MAXSCALE and MINSCALE on a layer, the class won?t show >> up in >>> legend. >>> Using the same mapfile on a previous version of MapServer, the class >> shows >>> up in legend. >>> >>> Any ideas? >>> >>> >>> Regards, >>> Frode >>> >>> -- >>> View this message in context: >>> >> http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a1278310 >> >>> 8 >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12830510 Sent from the Mapserver - User mailing list archive at Nabble.com. From zhonghaiw at GMAIL.COM Mon Sep 24 00:17:06 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 24 Sep 2007 09:17:06 +0200 Subject: Create a TileIndex shape file for raster data dynamically Message-ID: Hi Folks, I know that the tile index shape file for raster data works very well in MapServer. I am just wondering if there is someway to create the tile index file dynamically using MapScript or GDAL/OGR, not only use the MapServer utilities. Do you guys have any idea? or did anyone ever do anything like this? Cheers Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at DEQ.VIRGINIA.GOV Mon Sep 24 07:02:39 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Mon, 24 Sep 2007 10:02:39 -0400 Subject: Creation symbols in PHP Mapscript on the fly Message-ID: Pavel, One approach would be to create a symbol file in PHP, then load it using: (mapObj function description from mapserver PHP/Mapscript docs) int setSymbolSet(string fileName) Load and set a symbol file dynamictly. Alternatively, you may be able to simply set your map file at the beginning, then write to it via PHP (maybe you would have one file that contained stock symbols, then create your symbol file by copying the stock symbol files, and appending the dynamically generated ones). Good luck! If you create any code snippets, I would be interested in seeing them. r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ Web-Based Water Supply Planning Demo: http://soulswimmer.dynalias.net/models/wsdemo/demo_hsi.php -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pavel Dobe? Sent: Wednesday, September 19, 2007 10:15 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Creation symbols in PHP Mapscript on the fly Hi, is possible to set up on the fly this type of symbol only in PHP or have I to save it into symbol file? Symbol Name '45' Type TRUETYPE Font "vera-bold" Character "45" Antialias TRUE END I was trying some things described on http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/symbolobj but I feel i miss something important. I need this symbols because I'm using numbered points with numbers in the middle of those points. Regards Pavel From gregor at HOSTGIS.COM Mon Sep 24 07:07:22 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 24 Sep 2007 08:07:22 -0600 Subject: Create a TileIndex shape file for raster data dynamically In-Reply-To: <2534c4120709240017p2ebbcb4bh70064c092572f32d@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > I am just wondering if there is someway to create the tile > index file dynamically using MapScript or GDAL/OGR, not only use the > MapServer utilities. The way we've done it still uses the GDAL/OGR utilities as usual, e.g. in PHP: @unlink($indexfile); shell_exec("gdaltindex $indexfile /maps/$username/*.tif"); Not particularly creative, but not particularly hackish either, and quite functional and flexible. What exactly did you have in mind? -- Gregor Mosheh / Greg Allensworth 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 From jayzee.smith at GMAIL.COM Mon Sep 24 07:26:01 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Mon, 24 Sep 2007 10:26:01 -0400 Subject: notepad++ syntax highlighting In-Reply-To: Message-ID: what about any other map file editor where i can fold/collapse layers?? kinda helps if you got a bucket full of them On 9/21/07, John Smith wrote: > guys, > simple question has me stumped: > got notepad++ from http://notepad-plus.sourceforge.net/ and copied like so- > /plugins/APIs/mapfile.api > /userDefineLang.xml > but don't see map under Language. The User Define Dialog doesn't help either. > > btw 5 doesn't yet use xml for map file, right?? > cheers, jzs From andreas.albarello at TERRITORIUMONLINE.COM Mon Sep 24 07:59:22 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Mon, 24 Sep 2007 16:59:22 +0200 Subject: notepad++ syntax highlighting In-Reply-To: Message-ID: John Smith wrote: > On 9/21/07, John Smith wrote: >> guys, >> simple question has me stumped: >> got notepad++ from http://notepad-plus.sourceforge.net/ and copied like so- >> /plugins/APIs/mapfile.api >> /userDefineLang.xml >> but don't see map under Language. The User Define Dialog doesn't help either. >> >> btw 5 doesn't yet use xml for map file, right?? >> cheers, jzs > John, works a charm here for me with Notepad++ 3.9. You need to copy userDefineLang.xml to %APPDATA%\Notepad++, which on your system is probably something to the effect of C:\Documents and Settings\YourUserName\Application Data\Notepad++. It also helps to change the ext-attribute in line 2 of userDefineLang.xml to ext="map", assuming you use .map as an extension for your map files. And no, MapServer 5 doesn't use XML for map files yet. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From sscott at LOCATIONINC.COM Mon Sep 24 08:21:51 2007 From: sscott at LOCATIONINC.COM (Shannon Scott) Date: Mon, 24 Sep 2007 11:21:51 -0400 Subject: flash swf polygon highlight Message-ID: Hello, I have a flash map. I have built an application so that when the person mouses over the map - the highlighted polygon ( under mouse ) will highlight part of the web page - with corresponding information. I would like to also make it so when the web page is moused over the respective polygon will also become highlighted. I am able to access the polygon attributes through the Element array. Is there a way to highlight the polygon using actionscript - if I know the Element array index number? Any help or pointers are appreciated. Thank you. Shannon From pmoen at ND.GOV Mon Sep 24 09:01:10 2007 From: pmoen at ND.GOV (Paul Moen) Date: Mon, 24 Sep 2007 11:01:10 -0500 Subject: Does shapeobj->union exist in php-mapscript In-Reply-To: Message-ID: Same problem with mapserver 5.0 I get the following error. PHP Fatal error: Call to undefined method ms_shape_obj::Union() By doing the following. $wktshp1 = ms_shapeObjFromWkt($wkt1); $wktshp2 = ms_shapeObjFromWkt($wkt2); $newshp = $wktshp1->Union($wktshp2); MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 6872 $ $Date: 2007-09-10 07:45:30 -0700 (Mon, 10 Sep 2007) $) Anyone? On 9/19/07 9:53 AM, "Paul Moen" wrote: > I get the following error. > > PHP Fatal error: Call to undefined method ms_shape_obj::Union() > > By doing the following. > > $wktshp1 = ms_shapeObjFromWkt($wkt1); > $wktshp2 = ms_shapeObjFromWkt($wkt2); > > $newshp = $wktshp1->Union($wktshp2); > > PHP/Mapscript docs say. > shapeobj Union(shapeobj shape) > Returns a shape object representing the union of the current > shape object with the one passed as parameter. > Only available if php/mapscript is built with GEOS > library. > > GEOS is built in. > MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Does union exist in PHP/Mapscript? > > Thanks, > > Paul Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission From janeks.kamerovskis at FORANBALTIC.LV Mon Sep 24 23:55:14 2007 From: janeks.kamerovskis at FORANBALTIC.LV (Janeks Kamerovskis) Date: Tue, 25 Sep 2007 09:55:14 +0300 Subject: problem with coordinate transformation for raster layers Message-ID: Hi! I have following situation: Map file with couple of raster layers in projected coordinate system (EPSG:2100) and also the tiled raster map in the same projection. The map projection are also the same. When I serve it as WMS (f.ex. Google Earth), then vector fits perfectly, but the raster layer shifts around 300 m. Any ideas? Thanks in advance, Janeks From zhonghaiw at GMAIL.COM Tue Sep 25 00:16:37 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 25 Sep 2007 09:16:37 +0200 Subject: Create a TileIndex shape file for raster data dynamically In-Reply-To: <46F7C49A.1090403@hostgis.com> Message-ID: Hi there, i know that i can use the GDAL utilities to create the tile index file, and it works also very well. What i am thinking about now is to create the tile index file programmatically, for example, i may develop a C# DLL in .NET, which may expose a function to create a tile index file, just like the GDALTINDEX utility. Best Regards Zhonghai On 9/24/07, Gregor Mosheh wrote: > > Zhonghai Wang wrote: > > I am just wondering if there is someway to create the tile > > index file dynamically using MapScript or GDAL/OGR, not only use the > > MapServer utilities. > > The way we've done it still uses the GDAL/OGR utilities as usual, > e.g. in PHP: > @unlink($indexfile); > shell_exec("gdaltindex $indexfile /maps/$username/*.tif"); > > Not particularly creative, but not particularly hackish either, and > quite functional and flexible. What exactly did you have in mind? > > -- > Gregor Mosheh / Greg Allensworth > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frodewj at GMAIL.COM Tue Sep 25 01:41:27 2007 From: frodewj at GMAIL.COM (Frode Wiseth J?rgensen) Date: Tue, 25 Sep 2007 10:41:27 +0200 Subject: Legend problem in MapServer 5.0 In-Reply-To: <12791719.post@talk.nabble.com> Message-ID: Hey, Further testing show's that the problem only occurs when using MAXSCALE or MAXSCALEDENOM Anyone else with this kind of problem? Any ideas? Regards Frode On 20/09/2007, Frode Wiseth J?rgensen wrote: > > Hey, > > > > I've tested with MAXSCALE/MINSCALE and MINSCALEDENOM/MAXSCALEDENOM in > - PHP MapScript > - CGI > - CSHARP > but there is still no legend. > > Have also tested using MAXSCALE/MINSCALE and MINSCALEDENOM/MAXSCALEDENOM > on > both LAYER and CLASS -> no legend. > > However..connection to the layer through WMS gives me legend > (LegendGraphic). > > > Any ideas?? > > > > > > > Steve Lime wrote: > > > > If you try changing to the new keywords MINSCALEDENOM and MAXSCALEDENOM > > does the > > problem persist? (the old keywords should work) > > > > Also, are we talking the CGI, MapScript (if so, which flavor?) or ???? > > > > Steve > > > >>>> On 9/19/2007 at 1:11 PM, in message > > <12783108.post at talk.nabble.com>, Frode > > Wiseth J?rgensen wrote: > >> Hey! > >> > >> I have just upgraded to MapServer 5.0, and there seems to be a > > little > >> problem. > >> > >> When I use MAXSCALE and MINSCALE on a layer, the class won't show > > up in > >> legend. > >> Using the same mapfile on a previous version of MapServer, the class > > shows > >> up in legend. > >> > >> Any ideas? > >> > >> > >> Regards, > >> Frode > >> > >> -- > >> View this message in context: > >> > > > http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a1278310 > > > >> 8 > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > -- > View this message in context: > http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12791719 > Sent from the Mapserver - User mailing list archive at Nabble.com. > -- Frode Wiseth J?rgensen +47 99 03 41 42 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at GMAIL.COM Tue Sep 25 01:50:29 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 25 Sep 2007 10:50:29 +0200 Subject: Legend problem in MapServer 5.0 In-Reply-To: <12783108.post@talk.nabble.com> Message-ID: I think this is by design, see: http://trac.osgeo.org/mapserver/ticket/1524 Best regards, Bart On 9/19/07, Frode Wiseth J?rgensen wrote: > > Hey! > > I have just upgraded to MapServer 5.0, and there seems to be a little > problem. > > When I use MAXSCALE and MINSCALE on a layer, the class won't show up in > legend. > Using the same mapfile on a previous version of MapServer, the class > shows > up in legend. > > Any ideas? > > > Regards, > Frode > > -- > View this message in context: > http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12783108 > Sent from the Mapserver - User mailing list archive at Nabble.com. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vorjag at LIST.RU Tue Sep 25 02:23:40 2007 From: vorjag at LIST.RU (varyag) Date: Tue, 25 Sep 2007 02:23:40 -0700 Subject: SVG for symbology encoding Message-ID: Does MS4W support SVG for symbology encoding? SYMBOL IMAGE "sym1.svg" - I want to use SVG here END -- View this message in context: http://www.nabble.com/SVG-for-symbology-encoding-tf4514347.html#a12875940 Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at GMAIL.COM Tue Sep 25 02:36:39 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 25 Sep 2007 11:36:39 +0200 Subject: SVG for symbology encoding In-Reply-To: <12875940.post@talk.nabble.com> Message-ID: No it does not support this as yet. Best regards, Bart On 9/25/07, varyag wrote: > > Does MS4W support SVG for symbology encoding? > > SYMBOL > IMAGE "sym1.svg" - I want to use SVG here > END > > -- > View this message in context: > http://www.nabble.com/SVG-for-symbology-encoding-tf4514347.html#a12875940 > Sent from the Mapserver - User mailing list archive at Nabble.com. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frodewj at GMAIL.COM Tue Sep 25 02:44:58 2007 From: frodewj at GMAIL.COM (Frode Wiseth J?rgensen) Date: Tue, 25 Sep 2007 11:44:58 +0200 Subject: Legend problem in MapServer 5.0 In-Reply-To: <1ebb87870709250150v21edc191g1151fdc254fcd1d0@mail.gmail.com> Message-ID: Hey, Thanks for response. We have tested using a very high MAXSCALE/MAXSCALEDENOM which should give use a legend, but the legend still won't show up. These mapfiles works perfectly well in previous version of Mapserver. Any ideas/anyone with the same experience ? Regards, Frode On 25/09/2007, Bart van den Eijnden wrote: > > I think this is by design, see: > > http://trac.osgeo.org/mapserver/ticket/1524 > > Best regards, > Bart > > On 9/19/07, Frode Wiseth J?rgensen wrote: > > > > Hey! > > > > I have just upgraded to MapServer 5.0, and there seems to be a little > > problem. > > > > When I use MAXSCALE and MINSCALE on a layer, the class won't show up in > > legend. > > Using the same mapfile on a previous version of MapServer, the class > > shows > > up in legend. > > > > Any ideas? > > > > > > Regards, > > Frode > > > > -- > > View this message in context: http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12783108 > > > > Sent from the Mapserver - User mailing list archive at Nabble.com > > . > > > > -- Frode Wiseth J?rgensen +47 99 03 41 42 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at GMAIL.COM Tue Sep 25 02:56:38 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 25 Sep 2007 11:56:38 +0200 Subject: Legend problem in MapServer 5.0 In-Reply-To: Message-ID: could all of you having these problems summarize , for each specific case if necessary (i.e. html legends or wms getlegendgraphics), if the problem is specific to agg rendering or also occurs using gd. there's also http://trac.osgeo.org/mapserver/ticket/2284 on this, so it is a known issue that legending is buggy if using agg cheers, tb From vorjag at LIST.RU Tue Sep 25 02:59:20 2007 From: vorjag at LIST.RU (varyag) Date: Tue, 25 Sep 2007 02:59:20 -0700 Subject: References to other forums on Geoserver Message-ID: Please. Prompt me references to other forums on Geoserver -- View this message in context: http://www.nabble.com/References-to-other-forums-on-Geoserver-tf4514544.html#a12876485 Sent from the Mapserver - User mailing list archive at Nabble.com. From vorjag at LIST.RU Tue Sep 25 03:09:19 2007 From: vorjag at LIST.RU (varyag) Date: Tue, 25 Sep 2007 03:09:19 -0700 Subject: SVG for symbology encoding In-Reply-To: <1ebb87870709250236y7b4082b3l52bb6554ac17c9b3@mail.gmail.com> Message-ID: Thanks. Will SVG(for Symbology Encoding) be supported in next versions of Mapserver? Bart van den Eijnden-3 wrote: > > No it does not support this as yet. > > Best regards, > Bart > > On 9/25/07, varyag wrote: >> >> Does MS4W support SVG for symbology encoding? >> >> SYMBOL >> IMAGE "sym1.svg" - I want to use SVG here >> END >> >> -- >> View this message in context: >> http://www.nabble.com/SVG-for-symbology-encoding-tf4514347.html#a12875940 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/SVG-for-symbology-encoding-tf4514347.html#a12876595 Sent from the Mapserver - User mailing list archive at Nabble.com. From john.cole at UAI.COM Tue Sep 25 04:39:02 2007 From: john.cole at UAI.COM (John Cole) Date: Tue, 25 Sep 2007 04:39:02 -0700 Subject: Legend problem in MapServer 5.0 In-Reply-To: Message-ID: I have observed that legends do not work with existing mapfiles; all of which have MIN/MAX SCALES set. It is broken using mode=browse, mode=legend and GetLegendGraphics. Little black boxes are returned for both GD and AGG renderer's. The same map, with the same extents has a working legend using MS4. See: MS4: (working legend) http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&BBOX=-86.778940,34.651680,-86.718060,34.697320&mapxy=-86.7485%2034.6745&scale=24000.000000&layers=bound+hydro+landmark+roads+base_anno+hydro_anno+roads_anno+landmark_point+city&mode=browse MS5: (broken legend) http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&BBOX=-86.778940,34.651680,-86.718060,34.697320&mapxy=-86.7485%2034.6745&scale=24000.000000&layers=bound+hydro+landmark+roads+base_anno+hydro_anno+roads_anno+landmark_point+city&mode=browse I do not have any mapfiles without MIN/MAX scales ready to test at the moment. John tbonfort wrote: > > could all of you having these problems summarize , for each specific > case if necessary (i.e. html legends or wms getlegendgraphics), if the > problem is specific to agg rendering or also occurs using gd. > > there's also http://trac.osgeo.org/mapserver/ticket/2284 on this, so > it is a known issue that legending is buggy if using agg > > cheers, > tb > > -- View this message in context: http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12877729 Sent from the Mapserver - User mailing list archive at Nabble.com. From john.cole at UAI.COM Tue Sep 25 04:47:45 2007 From: john.cole at UAI.COM (John Cole) Date: Tue, 25 Sep 2007 04:47:45 -0700 Subject: adding point via URL broken in MS5? Message-ID: Has the syntax for adding a point via the URL (for mapserver cgi) changed in MS5? I have a map that no longer puts a point on the map in MS5 but the same query works in MS4. MS4: (address point works) http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450 MS5: (address point missing) http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450 Thanks, John -- View this message in context: http://www.nabble.com/adding-point-via-URL-broken-in-MS5--tf4515013.html#a12877874 Sent from the Mapserver - User mailing list archive at Nabble.com. From emilio at IBGE.GOV.BR Tue Sep 25 04:25:08 2007 From: emilio at IBGE.GOV.BR (Carlos Emilio) Date: Tue, 25 Sep 2007 08:25:08 -0300 Subject: unsubscribe Message-ID: An HTML attachment was scrubbed... URL: From frodewj at GMAIL.COM Tue Sep 25 04:55:16 2007 From: frodewj at GMAIL.COM (=?ISO-8859-1?Q?Frode_Wiseth_J=F8rgensen?=) Date: Tue, 25 Sep 2007 13:55:16 +0200 Subject: Legend problem in MapServer 5.0 In-Reply-To: Message-ID: Hey Thanks for responding *Summary:* Using Mapserver 5.0 gives us some problems regarding legend. When using MAXSCALE or MAXSCALEDENOM on a LAYER or CLASS, the specific LAYER/CLASS won't show up in legend. We have tested using: - Both MAXSCALE and MAXSCALEDENOM - Using a very high MAXSCALE/MAXSCALEDENOM - PHP Mapscript - CGI - CSHARP - Connection/using the specific LAYER through WMS gives us legend (LegendGraphic) - Using the same mapfile in previous versions of Mapserver -> the legend shows up Thanks, Frode On 25/09/2007, thomas bonfort wrote: > > could all of you having these problems summarize , for each specific > case if necessary (i.e. html legends or wms getlegendgraphics), if the > problem is specific to agg rendering or also occurs using gd. > > there's also http://trac.osgeo.org/mapserver/ticket/2284 on this, so > it is a known issue that legending is buggy if using agg > > cheers, > tb > -- Frode Wiseth J?rgensen +47 99 03 41 42 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at GMAIL.COM Tue Sep 25 04:57:05 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 25 Sep 2007 13:57:05 +0200 Subject: adding point via URL broken in MS5? In-Reply-To: <12877874.post@talk.nabble.com> Message-ID: have you read the migration guide at http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT ? notably the URL configuration changes cheers, tb On 9/25/07, John Cole wrote: > Has the syntax for adding a point via the URL (for mapserver cgi) changed in > MS5? > > I have a map that no longer puts a point on the map in MS5 but the same > query works in MS4. > > MS4: (address point works) > http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450 > > MS5: (address point missing) > http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450 > > Thanks, > > John > -- > View this message in context: http://www.nabble.com/adding-point-via-URL-broken-in-MS5--tf4515013.html#a12877874 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From thomas.bonfort at GMAIL.COM Tue Sep 25 05:21:58 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 25 Sep 2007 14:21:58 +0200 Subject: Legend problem in MapServer 5.0 In-Reply-To: Message-ID: thanks all for feedback. there's a typo bug in the legend rendering. will fix this in trunk soon and should be incorporated in 5.0.1 tb From mikesaunt at GMAIL.COM Tue Sep 25 08:25:44 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Tue, 25 Sep 2007 16:25:44 +0100 Subject: 5.0 - use of qstring_validation_pattern for attribute queries Message-ID: Hi All I was wondering whether anyone has an example of the METADATA key for qstring_validation_pattern that is required for v5.0 layers that are to be attribute queried? I would like to be able to accept any string (as through my app you can't inject the values) I've tried the following qstring_validation_pattern /^[0-9]*$/ and qstring_validation_pattern '.' but neither seem to match (the first throws a symbol definition error): LAYER NAME Ward TYPE POLYGON STATUS OFF CONNECTIONTYPE OGR CONNECTION "Overlays\CouncilDemocracy\Ward_Boundaries_2004.TAB" TOLERANCEUNITS METERS METADATA qstring_validation_pattern '.' END CLASS STYLE COLOR -1 -1 -1 END STYLE OUTLINECOLOR 0 0 0 WIDTH 2 END END END I've also tried as TYPE QUERY... Any help would be greatly appreciated Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From trondmm-mapserver at CRUSADERS.NO Tue Sep 25 15:12:22 2007 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 26 Sep 2007 00:12:22 +0200 Subject: Create a TileIndex shape file for raster data dynamically In-Reply-To: <2534c4120709240017p2ebbcb4bh70064c092572f32d@mail.gmail.com> Message-ID: On Mon, Sep 24, 2007 at 09:17:06AM +0200, Zhonghai Wang wrote: > I know that the tile index shape file for raster data works very well in > MapServer. I am just wondering if there is someway to create the tile index > file dynamically using MapScript or GDAL/OGR, not only use the MapServer > utilities. > > Do you guys have any idea? or did anyone ever do anything like this? I may need to generate my own raster tileindexes myself soon, and based on what I've read about gdaltindex, it should be fairly easy to do. If I've understood everything correctly, all you have to do, is generate a shapefile with rectangles that has the same coordinates as the boundaries of each raster file. Then, the path to that file needs to be placed in the field "location" in the dbf-file that accompanies the shapefiles. I'll take a stab at making a perl-utility for this tomorrow. I'll let you know how it turns out. -- Trond Michelsen From zhonghaiw at GMAIL.COM Wed Sep 26 01:35:36 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 26 Sep 2007 10:35:36 +0200 Subject: Create a TileIndex shape file for raster data dynamically In-Reply-To: <20070925221222.GA13408@crusaders.no> Message-ID: Hi Trond, thanks you for your clues for creating the index file, I am looking forword to sharing your experience of creating the utility programmatically. Actually, I create more often MapInfo seamless layer programmatically, but I am not very familar with the ESRI index file format, so I am just not sure how I should use the ShapeLib to create the index file. I've read the source C code for GDALTINDEX utility in the GDAL/OGR source package, unfortunatelly, I have not totally understand the source code. Here is the source code link, hope that it can give you some additional information for your experiment: http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdaltindex.c Regards Zhonghai On 9/26/07, Trond Michelsen wrote: > > On Mon, Sep 24, 2007 at 09:17:06AM +0200, Zhonghai Wang wrote: > > I know that the tile index shape file for raster data works very well in > > MapServer. I am just wondering if there is someway to create the tile > index > > file dynamically using MapScript or GDAL/OGR, not only use the MapServer > > utilities. > > > > Do you guys have any idea? or did anyone ever do anything like this? > > I may need to generate my own raster tileindexes myself soon, and > based on what I've read about gdaltindex, it should be fairly easy to > do. > > If I've understood everything correctly, all you have to do, is > generate a shapefile with rectangles that has the same coordinates as > the boundaries of each raster file. Then, the path to that file needs > to be placed in the field "location" in the dbf-file that accompanies > the shapefiles. > > I'll take a stab at making a perl-utility for this tomorrow. I'll let > you know how it turns out. > > -- > Trond Michelsen > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trondmm-mapserver at CRUSADERS.NO Wed Sep 26 05:35:53 2007 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 26 Sep 2007 14:35:53 +0200 Subject: Create a TileIndex shape file for raster data dynamically In-Reply-To: <2534c4120709260135w1d16a844j60ca971c538059e4@mail.gmail.com> Message-ID: On Wed, Sep 26, 2007 at 10:35:36AM +0200, Zhonghai Wang wrote: > thanks you for your clues for creating the index file, I am looking forword > to sharing your experience of creating the utility programmatically. > Actually, I create more often MapInfo seamless layer programmatically, but I > am not very familar with the ESRI index file format, so I am just not sure > how I should use the ShapeLib to create the index file. My initial tests were successful, and it turned out to be very easy to create a tileindex for rasterimages. It's basically exactly the same as a tileindex for shapefiles. I need to clean it up a bit, and make it possible to choose outputfilename, but for now, here's a simple example: --8<-- #!/usr/bin/perl use strict; use warnings; use Geo::Shapelib ':constants'; my $tileindex = Geo::Shapelib->new(); $tileindex->{Shapetype} = POLYGON; $tileindex->{FieldNames} = ["Location"]; $tileindex->{FieldTypes} = ["String:255"]; for my $filename (@ARGV) { my ($xmin, $ymin, $xmax, $ymax) = get_coordinates($filename); push @{$tileindex->{Shapes}}, { SHPType => POLYGON, Vertices => [[$xmin, $ymin], [$xmax, $ymin], [$xmax, $ymax], [$xmin, $ymax], [$xmin, $ymin]] }; push @{$tileindex->{ShapeRecords}}, [$filename]; } $tileindex->save('tileindex'); sub get_coordinates { my $filename = shift; my ($bbox) = $filename =~ /ec_world_(.*)\.png/; return split "," => $bbox; } __END__ --8<-- This program will take a list of files as arguments, and create a tileindex, which is saved as tileindex.* in the current directory. The subroutine get_coordinates() figures out what xmin, xmax, ymin and ymax is for the current rasterimage. In my case, the bbox is embedded in the filename, but you might have to read a worldfile or do something else for your images. Speaking of worldfiles. The tileindex only tells mapserver which files to load for a given view. Mapserver still need the worldfiles to figure out where and how each of the pictures it opens should be positioned. Anyway - just like with a tileindex for shapefiles, mapserver interprets the "Location" value as relative to shapepath if you use relative paths. So I think it's better to use absolute paths when you run the program. To use this tileindex in a mapfile, you just include something like this: LAYER NAME "tiled_raster" STATUS ON TILEINDEX "tileindex" TILEITEM "Location" TYPE RASTER END -- Trond Michelsen From Tim.Nolte at IPCSWIRELESSINC.COM Wed Sep 26 06:22:58 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 26 Sep 2007 09:22:58 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: Thomas, Thanks for getting back to me on this. I sort of suspected this could be the issue as I've seen the posts come across the group. I was sort of impatient so I found a workaround using KEYIMAGE and just specifying an image to use for my legend. I can't actually run in production without the MIN/MAXSCALE options, but when I get a chance I'll run through this on my test environment. Thanks again! - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Wednesday, September 26, 2007 9:03 AM To: Nolte, Tim Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! there's a bug in the 5.0 code concerning maxscale and minscale. could you try without these keywords and report if your legends are drawing? if that's the case the fix will be in 5.0.1 tb On 9/21/07, Nolte, Tim wrote: > Ok, here is my symbol and layer definitions. > > SYMBOL > NAME 'aliased' > TYPE SIMPLE > ANTIALIAS FALSE > END > > LAYER > GROUP "Propagations" > NAME "-98dBm to -104dBm (Outdoor Rural)" > STATUS ON > TILEINDEX "propagations/104/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -98dBm to -104dBm (Outdoor Rural) > # -------------------------------------------------- > CLASS > NAME "-98dBm to -104dBm (Outdoor Rural)" > MINSCALE 0 > MAXSCALE 1200000 > STYLE > SYMBOL "aliased" > COLOR 255 128 0 > OUTLINECOLOR 255 128 0 > END > END > END > > Does anyone see something that isn't right? My default application > interface is Chameleon, however just using the basic cgi index.html & > viewer-template.html ways of rendering are outputting the same thing (no > legend images for layers using SYMBOL "aliased"). Prior to this patch > those legend images showed up fine. I'm pretty sure it has something to > do with adding a symbol to the class. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thursday, September 20, 2007 10:28 AM > To: Nolte, Tim > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > I can't reproduce this here... the legend icon shows up correctly (i.e. > aliased) > how are you drawing the legend icons? > > tb > > On 9/20/07, Nolte, Tim wrote: > > I guess I'm not totally out of the dark yet. I didn't notice it but > when > > using the patch the legend images for the layers I've added the SYMBOL > > 'aliased' to don't show up now. Any tip? I'm assuming that this patch > is > > looking specifically for the "SYMBOL 'aliased'" so I can't simply add > > more symbols that have the correct color. I think this might be the > > problem because it's trying to use that symbol to make the legend > image. > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Associate Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > > > > -----Original Message----- > > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > > > Sent: Tuesday, September 18, 2007 1:46 PM > > > To: Nolte, Tim > > > Cc: MAPSERVER-USERS at lists.umn.edu > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > > > > > On 9/18/07, Nolte, Tim wrote: > > > > Thomas, > > > > > > > > I'll give this a try, and see what I get. Thanks. I'll let you how > > it > > > > works. Just so I get this straight I add "ANTIALIAS FALSE" to my > > > layer > > > > after the patch and that layer won't be antialiased, correct? > > > > > > nope, that's not it.. > > > you create the symbol definition in your symbol file or inlined in > > > your mapfile. and then you set the layers you want rendered fast to > > > LAYER > > > NAME blablba > > > DATA ... > > > CLASS > > > STYLE > > > COLOR r g b > > > SYMBOL 'aliased' > > > END > > > END > > > END > > > > > > it's slower than gd but did speed up dense line drawings by a factor > > > of 3 when i tried it, less with polygons. > > > > > > tb > > > > From docterrobert at MSN.COM Wed Sep 26 10:01:40 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Wed, 26 Sep 2007 12:01:40 -0500 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused Message-ID: Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From ed at TOPOZONE.COM Wed Sep 26 10:36:42 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 26 Sep 2007 13:36:42 -0400 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: A Message-ID: Chris - Let me suggest you try to get unconfused just one step at a time! "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." That's a bit of a contradiction. A world file is one way of providing georeferencing. If you've got an image "attached" to the Earth via a world file, you've georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn't figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you'd like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply - it's just six lines of text). - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From docterrobert at MSN.COM Wed Sep 26 11:15:14 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Wed, 26 Sep 2007 13:15:14 -0500 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80198843D@ptolemy.topozone.com> Message-ID: Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it."Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? Let me suggest you try to get unconfused just one step at a time! ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it.? That?s a bit of a contradiction. A world file is one way of providing georeferencing. If you?ve got an image ?attached? to the Earth via a world file, you?ve georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn?t figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you?d like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply ? it?s just six lines of text). - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From ed at TOPOZONE.COM Wed Sep 26 11:45:54 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 26 Sep 2007 14:45:54 -0400 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: A Message-ID: Chris - OK - it's not as bad as all that - don't fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don't bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image's coordinate system. Is this the image you were asking about earlier that's in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn't recommend Google Earth as a very accurate way to do that, but if it's close enough for you and easy that's OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn't an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It's just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - Let me suggest you try to get unconfused just one step at a time! "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." That's a bit of a contradiction. A world file is one way of providing georeferencing. If you've got an image "attached" to the Earth via a world file, you've georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn't figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you'd like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply - it's just six lines of text). - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From dgertsch at GMURESEARCH.COM Wed Sep 26 12:22:26 2007 From: dgertsch at GMURESEARCH.COM (AmericanBwana) Date: Wed, 26 Sep 2007 12:22:26 -0700 Subject: Need help converting mrSid Message-ID: Good afternoon, This is my first post here. I have downloaded about 90G of Colorado NAIP data. Unfortunately they are in mrSid format, which HostGis cannot support. I'm looking for someone that can convert these for a fee or maybe trade some of the other data I have. Please send me a message if you are interested or can help. Oh, I've tried gdal_translate, the lizardtech tool, as well as everything else I can find out there. The files are simply to large for these applications. Thanks -- View this message in context: http://www.nabble.com/Need-help-converting-mrSid-tf4524368.html#a12908032 Sent from the Mapserver - User mailing list archive at Nabble.com. From ed at TOPOZONE.COM Wed Sep 26 15:25:52 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 26 Sep 2007 18:25:52 -0400 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: Message-ID: Chris - (I added the list back to the reply line - please always reply to the whole list - thanks) A world file is in the units of the image's projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it's certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility - especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don't know which campus you're using, but if you're at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don't look like those, they're not UTM. Oh, sorry - I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that's because those are the native units of the UTM projection being used. There's nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn't say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you're wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that's not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that's OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com ________________________________ From: Christopher Harris [mailto:docterrobert at msn.com] Sent: Wednesday, September 26, 2007 1:13 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Wow. Thanks Ed. You went to a lot of trouble. Most of this stuff you've explained I have a handle on. I wikipedia'd how to make a world file when I did that previous app. And yes, it's the same app with the image that's in UTM projection. I actually have one last question about that, but I'll do a separate post for that. This is a modification of that app. See, I've been using this "Parking Lot" map for the University of Illinois, because I couldn't find a better looking one. Well, yesterday, I noticed that you could go their full campus map and right click on each individual tile and save it as a .gif. I had tried this before but was apparently clicking on certain, wrong areas of each tile every time where I guess the javascript was blocking me. The javascript that they use displays info on certain buildings when you click on them. If you happen to right-click on or around a building and try to save, you can't. You have to click somewhere else on the tile that's on or around a building. Anywho - my boss now wants me to take what I've done with that one pic of the "Parking Lot" and now apply it to a big tiled image of the entire campus (enter the tiles I've saved). That's the back story as to what's going on. I have 3 questions now. #1 You asked if the image is in UTM. I'm basing the image projection on the world file. I remember you (or maybe this one other guy on this list serv) telling me before that you can't distinguish what projection a world file is in - that that's one of the cons to world files. Every example I've ever seen after typing in "World File" in Google shows a world file that is in meters and says that it's using UTM projection. That's still the case right? Oh, the lat/lon has to do with me reprojecting. See, someone passes me a lat/lon coordinate (a center point). I then take that, and convert it to UTM, because the map's projection is in UTM due to the world file being in UTM. Thanks for your time and patience by the way. You've been a huge help. #2 The one thing I'm hazy on in regard to the world file is: the 1st and 4th line - pixel size in the x-direction and y-direction in map units/pixel I understand why x is positive and y is almost always negative. But, does that mean, for example, if I type 2 for the 1st line and -2 for the fourth line, then there will be 2 meters per pixel going both directions? For that I could never find an example of what they meant. I just assumed that. I usually work best with seeing an example, and one was never provided on any of the pages I visited. #3 "The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number." Is pixel dimension related to question #2? For instance (in meters): TL - 393898 4441379 BR - 396253 4438945 maxx=393898, maxy=4441379 minx=396253, miny=4438945 DeltaX=-2355, DeltaY=2434 Say the mosaic's dimensions in pixels are.........: X=1500, Y=2000 X pixel dimension = -2355/1500 = -1.57 meters/pixel Y pixel dimension = 2434/2000 = 1.217 meters/pixel That right? - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 14:45:54 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - OK - it's not as bad as all that - don't fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don't bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image's coordinate system. Is this the image you were asking about earlier that's in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn't recommend Google Earth as a very accurate way to do that, but if it's close enough for you and easy that's OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn't an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It's just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - Let me suggest you try to get unconfused just one step at a time! "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." That's a bit of a contradiction. A world file is one way of providing georeferencing. If you've got an image "attached" to the Earth via a world file, you've georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn't figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you'd like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply - it's just six lines of text). - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From luca76 at GMAIL.COM Wed Sep 26 23:49:12 2007 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Thu, 27 Sep 2007 08:49:12 +0200 Subject: Symbol prioritization for a Layer Message-ID: Hi, I'll try to explain my question: I have 20 points with 8 features each. Each feature can have a red, yellow or green circle as symbol. The symbol order is: view those red first, then yellow and finally green. I.e: first point, all features green: view a green circle. second point: all features green, but one red: view a red circle. third point: all features green, some yellow: view a yellow circle. finally, fourth point: some green, some yellow, one red: view a red circle. There's any way to do this for ONE LAYER ? From lorenzetti at FAUNALIA.IT Wed Sep 26 23:57:15 2007 From: lorenzetti at FAUNALIA.IT (Walter Lorenzetti) Date: Thu, 27 Sep 2007 08:57:15 +0200 Subject: Try post Message-ID: Try post W -- Please no .doc, .xls, .ppt, .dwg: https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats Walter Lorenzetti email+jabber: lorenzetti at faunalia.it www.faunalia.it Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy From jderrac at GMAIL.COM Thu Sep 27 05:21:11 2007 From: jderrac at GMAIL.COM (Jeremy DERRAC) Date: Thu, 27 Sep 2007 14:21:11 +0200 Subject: [WFS on PostGis] PGis table OK, Describefeature OK, but getfeature => Empty Feature Collection Message-ID: Hi, I'm trying to output the content of a Multipolygon PostGis Table using WFS Server feature of mapserver. I created a simple map using some tutorial on the web. the data are in a postgis DB with MULTIPOLYGON geometry, and srid filled. -------- start --------- EXTENT -2200000 -712631 3072800 3840000 UNITS METERS IMAGECOLOR 255 255 255 WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "Wfs TEST (FROM FRANCE.GMF)" ## REQUIRED "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" ## Recommended "ows_schemas_location" "http://ogc.dmsolutions.ca" ## Optional END END PROJECTION "init=epsg:27582" END LAYER NAME departement CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis host=localhost password=xxxxx" METADATA "wfs_title" "departement" ## REQUIRED "gml_featureid" "gid" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) END TYPE POLYGON STATUS ON DATA "geom_column FROM departement AS foo USING UNIQUE gid AND USING srid=27582" DUMP TRUE ## REQUIRED END # Layer END # Map File -------- end ---------- I access to it using " http://localhost/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=GETFEATURE&TYPENAME=departement " (I used httpd.conf to indicate the .map file) And the server answer me an empty feature collection: ------- start ---------- 47680.000000,1620480.000000 1197822.000000,2677441.000000 --------- end --------- I don't understand why, my postgis DB is well filled, it works with GeoServer but not with mapserver and my map file. I think my map file is erronous but don't know where :s Can i have some help please ;p I'm using latest Stable Release of mapserver and postgis Feel free to ask for more details Thanks a lot! -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- >Jeremy DERRAC< Tel: (+33) (0)6-88-20-88-24 Mail: JDerracgmailcom -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jderrac at GMAIL.COM Thu Sep 27 05:41:44 2007 From: jderrac at GMAIL.COM (Jeremy DERRAC) Date: Thu, 27 Sep 2007 14:41:44 +0200 Subject: [WFS on PostGis] PGis table OK, Describefeature OK, but getfeature => Empty Feature Collection In-Reply-To: Message-ID: I changed the EXTENT Value with the ones i got from SELECT extent(geom_column) from departement; but its the same result. Empty feature collection :/ 2007/9/27, Jeremy DERRAC : > > Hi, > I'm trying to output the content of a Multipolygon PostGis Table using WFS > Server feature of mapserver. > I created a simple map using some tutorial on the web. the data are in a > postgis DB with MULTIPOLYGON geometry, and srid filled. > > -------- start --------- > EXTENT -2200000 -712631 3072800 3840000 > UNITS METERS > IMAGECOLOR 255 255 255 > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "Wfs TEST (FROM FRANCE.GMF)" ## REQUIRED > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe ?" ## > Recommended > "ows_schemas_location" "http://ogc.dmsolutions.ca" ## Optional > END > END > > PROJECTION > "init=epsg:27582" > END > > LAYER > NAME departement > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=postgis host=localhost password=xxxxx" > METADATA > "wfs_title" "departement" ## REQUIRED > "gml_featureid" "gid" ## REQUIRED > "gml_include_items" "all" ## Optional (serves all attributes for > layer) > END > TYPE POLYGON > STATUS ON > DATA "geom_column FROM departement AS foo USING UNIQUE gid AND USING > srid=27582" > DUMP TRUE ## REQUIRED > END # Layer > END # Map File > -------- end ---------- > > I access to it using "http://localhost/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=GETFEATURE&TYPENAME=departement > " > (I used httpd.conf to indicate the .map file) > > And the server answer me an empty feature collection: > > ------- start ---------- > > > > > 47680.000000,1620480.000000 1197822.000000,2677441.000000 > > > > > --------- end --------- > > I don't understand why, my postgis DB is well filled, it works with > GeoServer but not with mapserver and my map file. I think my map file is > erronous but don't know where :s > Can i have some help please ;p > > I'm using latest Stable Release of mapserver and postgis > > Feel free to ask for more details > > Thanks a lot! > > -- > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > >Jeremy DERRAC< > > Tel: (+33) (0)6-88-20-88-24 > Mail: JDerracgmailcom > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- >Jeremy DERRAC< Tel: (+33) (0)6-88-20-88-24 Mail: JDerracgmailcom -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -------------- next part -------------- An HTML attachment was scrubbed... URL: From docterrobert at MSN.COM Thu Sep 27 10:15:13 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Thu, 27 Sep 2007 12:15:13 -0500 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988441@ptolemy.topozone.com> Message-ID: K. Thought I put the mapserver-users email address in the reply. It should be in there this time. Hmmmm - to clarify how I got these images: 1.) http://www.uiuc.edu/ 2.) There are some white links in the top left corner. Click on Maps. 3.) Now a big map should be displayed. This isn't the one. Click anywhere on that big map. 4.) The tile where you clicked will be displayed, but that's not how I get the tiles. If you notice there's no way to tell how long a tile is or how to line them up. Ok. There's a little map to the right of that tile being displayed that says "click to jump" underneath it. 5.) Click in that box anywhere and it will show tiles in the big box to the left that are evenly spaced apart (except the far right and very bottom). If you click on a few places within the small box, you see how the white rectangle with red borders inside the small box moves at the same interval for every tile. So, from there I right-click on the big tile image being displayed and select Save Image. 6.) This is where I got my pics from. I also assembled them last night anyway for amusement, and they fit perfectly. Just the very bottom row and the far right column overlap. But, I know now that the overall mosiac's width is 2602 and the height is 2800. Ideally, I would like the world file to be in lat/lon (that's funny about people on the web thinking the Earth is flat - brings an old Bugs Bunny cartoon to mind), being as I have to convert a lat/lon point someone sends me to UTM as of right now. I would love to not have to convert - just less code is always better to me. Yeah. I know it's in Zone 16. I looked that up a while back on a UTM grid I found online. Ok. So, my current world file (in UTM): 1 0.0000000000 0.0000000000 -1 393898.00 4441379.00 So..... for lat/lon I could say...........: 1 0.0000000000 0.0000000000 -1 -88.248281 40.117268 (This would put the Top Left coordinate in an area called West Side Park. I took that assembled map pic and then grabbed a screen shot of the current window I was in and made that into an image and aligned them via layering and opacity levels in The GIMP (Like Photoshop but in Ubuntu Linux)). I'll double check the math, but I don't know if what I described earlier with all the steps could be screwing things up. And lastly, in the world file, 1 would represent 1 decimal degree/pixel or 1 meter/pixel in the X direction (depending on UTM or lat/lon)? I checked out Topozone. It looks like it has a ton of features. I'll play around with it some more. Thanks!!!! - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 18:25:52 -0400 From: ed at topozone.com To: docterrobert at msn.com; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? (I added the list back to the reply line ? please always reply to the whole list ? thanks) A world file is in the units of the image?s projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it?s certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility ? especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don?t know which campus you?re using, but if you?re at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don?t look like those, they?re not UTM. Oh, sorry ? I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that?s because those are the native units of the UTM projection being used. There?s nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn?t say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you?re wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that?s not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that?s OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com From: Christopher Harris [mailto:docterrobert at msn.com] Sent: Wednesday, September 26, 2007 1:13 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Wow. Thanks Ed. You went to a lot of trouble. Most of this stuff you've explained I have a handle on. I wikipedia'd how to make a world file when I did that previous app. And yes, it's the same app with the image that's in UTM projection. I actually have one last question about that, but I'll do a separate post for that. This is a modification of that app. See, I've been using this "Parking Lot" map for the University of Illinois, because I couldn't find a better looking one. Well, yesterday, I noticed that you could go their full campus map and right click on each individual tile and save it as a .gif. I had tried this before but was apparently clicking on certain, wrong areas of each tile every time where I guess the javascript was blocking me. The javascript that they use displays info on certain buildings when you click on them. If you happen to right-click on or around a building and try to save, you can't. You have to click somewhere else on the tile that's on or around a building. Anywho - my boss now wants me to take what I've done with that one pic of the "Parking Lot" and now apply it to a big tiled image of the entire campus (enter the tiles I've saved). That's the back story as to what's going on. I have 3 questions now. #1 You asked if the image is in UTM. I'm basing the image projection on the world file. I remember you (or maybe this one other guy on this list serv) telling me before that you can't distinguish what projection a world file is in - that that's one of the cons to world files. Every example I've ever seen after typing in "World File" in Google shows a world file that is in meters and says that it's using UTM projection. That's still the case right? Oh, the lat/lon has to do with me reprojecting. See, someone passes me a lat/lon coordinate (a center point). I then take that, and convert it to UTM, because the map's projection is in UTM due to the world file being in UTM. Thanks for your time and patience by the way. You've been a huge help. #2 The one thing I'm hazy on in regard to the world file is: the 1st and 4th line - pixel size in the x-direction and y-direction in map units/pixel I understand why x is positive and y is almost always negative. But, does that mean, for example, if I type 2 for the 1st line and -2 for the fourth line, then there will be 2 meters per pixel going both directions? For that I could never find an example of what they meant. I just assumed that. I usually work best with seeing an example, and one was never provided on any of the pages I visited. #3 "The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number." Is pixel dimension related to question #2? For instance (in meters): TL - 393898 4441379 BR - 396253 4438945 maxx=393898, maxy=4441379 minx=396253, miny=4438945 DeltaX=-2355, DeltaY=2434 Say the mosaic's dimensions in pixels are.........: X=1500, Y=2000 X pixel dimension = -2355/1500 = -1.57 meters/pixel Y pixel dimension = 2434/2000 = 1.217 meters/pixel That right? - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 14:45:54 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? OK ? it?s not as bad as all that ? don?t fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don?t bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image?s coordinate system. Is this the image you were asking about earlier that?s in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn?t recommend Google Earth as a very accurate way to do that, but if it?s close enough for you and easy that?s OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn?t an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It?s just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? Let me suggest you try to get unconfused just one step at a time! ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it.? That?s a bit of a contradiction. A world file is one way of providing georeferencing. If you?ve got an image ?attached? to the Earth via a world file, you?ve georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn?t figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you?d like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply ? it?s just six lines of text). - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From zhonghaiw at GMAIL.COM Thu Sep 27 11:04:52 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 27 Sep 2007 20:04:52 +0200 Subject: Create a TileIndex shape file for raster data dynamically In-Reply-To: <20070926123553.GB14432@crusaders.no> Message-ID: Hi Trond, thanks for your example code. I've coded a VB.NET utility for tile index file, it should work well. Just one thing for you, don't forget to destroy every shapeObject after having added it to shape file, at the end to close the shape file and the attribute table. Cheers Zhonghai On 9/26/07, Trond Michelsen wrote: > > On Wed, Sep 26, 2007 at 10:35:36AM +0200, Zhonghai Wang wrote: > > thanks you for your clues for creating the index file, I am looking > forword > > to sharing your experience of creating the utility programmatically. > > Actually, I create more often MapInfo seamless layer programmatically, > but I > > am not very familar with the ESRI index file format, so I am just not > sure > > how I should use the ShapeLib to create the index file. > > My initial tests were successful, and it turned out to be very easy to > create a tileindex for rasterimages. It's basically exactly the same > as a tileindex for shapefiles. > > I need to clean it up a bit, and make it possible to choose > outputfilename, but for now, here's a simple example: > > --8<-- > #!/usr/bin/perl > > use strict; > use warnings; > use Geo::Shapelib ':constants'; > > my $tileindex = Geo::Shapelib->new(); > > $tileindex->{Shapetype} = POLYGON; > $tileindex->{FieldNames} = ["Location"]; > $tileindex->{FieldTypes} = ["String:255"]; > > for my $filename (@ARGV) { > my ($xmin, $ymin, $xmax, $ymax) = get_coordinates($filename); > push @{$tileindex->{Shapes}}, { > SHPType => POLYGON, > Vertices => [[$xmin, $ymin], > [$xmax, $ymin], > [$xmax, $ymax], > [$xmin, $ymax], > [$xmin, $ymin]] > }; > push @{$tileindex->{ShapeRecords}}, [$filename]; > } > > $tileindex->save('tileindex'); > > sub get_coordinates { > my $filename = shift; > my ($bbox) = $filename =~ /ec_world_(.*)\.png/; > return split "," => $bbox; > } > __END__ > --8<-- > > This program will take a list of files as arguments, and create a > tileindex, which is saved as tileindex.* in the current directory. The > subroutine get_coordinates() figures out what xmin, xmax, ymin and > ymax is for the current rasterimage. In my case, the bbox is embedded > in the filename, but you might have to read a worldfile or do > something else for your images. > > Speaking of worldfiles. The tileindex only tells mapserver which files > to load for a given view. Mapserver still need the worldfiles to > figure out where and how each of the pictures it opens should be > positioned. > > Anyway - just like with a tileindex for shapefiles, mapserver > interprets the "Location" value as relative to shapepath if you use > relative paths. So I think it's better to use absolute paths when you > run the program. > > To use this tileindex in a mapfile, you just include something like this: > > LAYER > NAME "tiled_raster" > STATUS ON > TILEINDEX "tileindex" > TILEITEM "Location" > TYPE RASTER > END > > > -- > Trond Michelsen > -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Thu Sep 27 14:33:15 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 27 Sep 2007 20:33:15 -0100 Subject: Need help converting mrSid {Scanned} In-Reply-To: <12908032.post@talk.nabble.com> Message-ID: Hi, You can use MrSID Decode from http://www.lizardtech.com/download/dl_options.php?page=tools Zoltan On Wed, 26 Sep 2007, AmericanBwana wrote: > Good afternoon, > This is my first post here. > > I have downloaded about 90G of Colorado NAIP data. Unfortunately they are in > mrSid format, which HostGis cannot support. > > I'm looking for someone that can convert these for a fee or maybe trade some > of the other data I have. > > Please send me a message if you are interested or can help. > > Oh, I've tried gdal_translate, the lizardtech tool, as well as everything > else I can find out there. The files are simply to large for these > applications. > > Thanks > -- > View this message in context: http://www.nabble.com/Need-help-converting-mrSid-tf4524368.html#a12908032 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From Tim.Nolte at IPCSWIRELESSINC.COM Thu Sep 27 11:12:23 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Thu, 27 Sep 2007 14:12:23 -0400 Subject: MapServer 5.0.0 released! In-Reply-To: Message-ID: Thomas, If I don't use the "aliased" symbol the legend key images show up fine, even with MIN/MAXSCALE, as I have this on other layers without issue. The example I gave you is for a few layers that I wanted to use the "aliased" symbol and for those the legend key images don't show up. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Thursday, September 27, 2007 1:50 PM To: Nolte, Tim Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! Tim, is the legend icon not appearing happening *only* when using the "aliased" symbol ? the mentionned bug would kick in also if you've defined a minscale/maxscale on the layer level, but from your snippet this doesn't seem to be the case. thanks for helping out on this... tb On 9/27/07, Nolte, Tim wrote: > Thomas, > > Actually, I did take your initial suggestion and removing the > MIN/MAXSCALE didn't fix the issue with the keyimage not showing up. > Thanks anyways. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Wednesday, September 26, 2007 9:39 AM > To: Nolte, Tim > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > tim, if you want to fix this it's quite easy: > http://trac.osgeo.org/mapserver/changeset/6907 > > just change each second instance of maxscaledenom to minscaledenom in > maplegend.c > > cheers, tb > > > On 9/26/07, Nolte, Tim wrote: > > Thomas, > > > > Thanks for getting back to me on this. I sort of suspected this could > be > > the issue as I've seen the posts come across the group. I was sort of > > impatient so I found a workaround using KEYIMAGE and just specifying > an > > image to use for my legend. I can't actually run in production without > > the MIN/MAXSCALE options, but when I get a chance I'll run through > this > > on my test environment. Thanks again! > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Associate Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > > > > > -----Original Message----- > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > > Sent: Wednesday, September 26, 2007 9:03 AM > > To: Nolte, Tim > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > > > there's a bug in the 5.0 code concerning maxscale and minscale. could > > you try without these keywords and report if your legends are drawing? > > if that's the case the fix will be in 5.0.1 > > > > tb > > > > On 9/21/07, Nolte, Tim wrote: > > > Ok, here is my symbol and layer definitions. > > > > > > SYMBOL > > > NAME 'aliased' > > > TYPE SIMPLE > > > ANTIALIAS FALSE > > > END > > > > > > LAYER > > > GROUP "Propagations" > > > NAME "-98dBm to -104dBm (Outdoor Rural)" > > > STATUS ON > > > TILEINDEX "propagations/104/tileindex" > > > TILEITEM "location" > > > TYPE POLYGON > > > # -------------------------------------------------- > > > # Class: -98dBm to -104dBm (Outdoor Rural) > > > # -------------------------------------------------- > > > CLASS > > > NAME "-98dBm to -104dBm (Outdoor Rural)" > > > MINSCALE 0 > > > MAXSCALE 1200000 > > > STYLE > > > SYMBOL "aliased" > > > COLOR 255 128 0 > > > OUTLINECOLOR 255 128 0 > > > END > > > END > > > END > > > > > > Does anyone see something that isn't right? My default application > > > interface is Chameleon, however just using the basic cgi index.html > & > > > viewer-template.html ways of rendering are outputting the same thing > > (no > > > legend images for layers using SYMBOL "aliased"). Prior to this > patch > > > those legend images showed up fine. I'm pretty sure it has something > > to > > > do with adding a symbol to the class. > > > > > > ---- > > > Timothy J Nolte - tnolte at ilpcs.com > > > Associate Network Planning Engineer > > > > > > iPCS Wireless, Inc. > > > 4717 Broadmoor Ave, Suite G > > > Kentwood, MI 49512 > > > > > > Office: 616-656-5163 > > > PCS: 616-706-2438 > > > Fax: 616-554-6484 > > > Web: www.ipcswirelessinc.com > > > -----Original Message----- > > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > > > Sent: Thursday, September 20, 2007 10:28 AM > > > To: Nolte, Tim > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > > > > > I can't reproduce this here... the legend icon shows up correctly > > (i.e. > > > aliased) > > > how are you drawing the legend icons? > > > > > > tb > > > > > > On 9/20/07, Nolte, Tim wrote: > > > > I guess I'm not totally out of the dark yet. I didn't notice it > but > > > when > > > > using the patch the legend images for the layers I've added the > > SYMBOL > > > > 'aliased' to don't show up now. Any tip? I'm assuming that this > > patch > > > is > > > > looking specifically for the "SYMBOL 'aliased'" so I can't simply > > add > > > > more symbols that have the correct color. I think this might be > the > > > > problem because it's trying to use that symbol to make the legend > > > image. > > > > > > > > ---- > > > > Timothy J Nolte - tnolte at ilpcs.com > > > > Associate Network Planning Engineer > > > > > > > > iPCS Wireless, Inc. > > > > 4717 Broadmoor Ave, Suite G > > > > Kentwood, MI 49512 > > > > > > > > Office: 616-656-5163 > > > > PCS: 616-706-2438 > > > > Fax: 616-554-6484 > > > > Web: www.ipcswirelessinc.com > > > > > > > > > -----Original Message----- > > > > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > > > > > Sent: Tuesday, September 18, 2007 1:46 PM > > > > > To: Nolte, Tim > > > > > Cc: MAPSERVER-USERS at lists.umn.edu > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released! > > > > > > > > > > On 9/18/07, Nolte, Tim wrote: > > > > > > Thomas, > > > > > > > > > > > > I'll give this a try, and see what I get. Thanks. I'll let you > > how > > > > it > > > > > > works. Just so I get this straight I add "ANTIALIAS FALSE" > to > > my > > > > > layer > > > > > > after the patch and that layer won't be antialiased, correct? > > > > > > > > > > nope, that's not it.. > > > > > you create the symbol definition in your symbol file or inlined > in > > > > > your mapfile. and then you set the layers you want rendered fast > > to > > > > > LAYER > > > > > NAME blablba > > > > > DATA ... > > > > > CLASS > > > > > STYLE > > > > > COLOR r g b > > > > > SYMBOL 'aliased' > > > > > END > > > > > END > > > > > END > > > > > > > > > > it's slower than gd but did speed up dense line drawings by a > > factor > > > > > of 3 when i tried it, less with polygons. > > > > > > > > > > tb > > > > > > > > > > > > > > > > From ed at TOPOZONE.COM Thu Sep 27 11:37:01 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 27 Sep 2007 14:37:01 -0400 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: A Message-ID: Chris - I think you need to spend a few moments meditating on the fact that the world file DESCRIBES the image it's associated with. It does not DEFINE it. If you change the numbers in your UTM-projection world file to lat/lon coordinates, your application will break. You haven't changed the fact that your image is still in the UTM projection! If your image is UTM, your world file must be UTM. A world file like your second example is saying "here's a description of my image file, which is in a lat/lon 'projection'. Each pixel is one degree wide by one degree high (!) and the upper left corner is at longitude -88 and latitude 40". That is not at all a correct description of your image file. MapServer knows all about map projection, and you can define several layers in a map each in a different projection. Your output map image may be in yet another projection. There's nothing wrong with creating a map file that defines one layer as your photo TILEINDEX in UTM projection, another point layer in lat/lon coordinates, and an output image being displayed and requested in lat/lon coordinates (or in UTM, or in something else entirely). Get your LAYER definition for your TILEINDEX photo layer (or single image layer) in UTM projection working properly. Do nothing else. Once you have a map being displayed correctly you can (a) set the output image projection to lat/lon if you insist, and/or (b) add data points in lat/lon coordinates. - Ed P.S. If you look at this URL: http://www.topozone.com/map.asp?lat=40.10802&lon=-88.22711&datum=nad83 you'll see that the URL requests a point in lat/lon coordinates and that point is displayed as a red market symbol in the middle of a map image which is in UTM projection, with the corresponding UTM coordinates displayed above the map. Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Thursday, September 27, 2007 10:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused K. Thought I put the mapserver-users email address in the reply. It should be in there this time. Hmmmm - to clarify how I got these images: 1.) http://www.uiuc.edu/ 2.) There are some white links in the top left corner. Click on Maps. 3.) Now a big map should be displayed. This isn't the one. Click anywhere on that big map. 4.) The tile where you clicked will be displayed, but that's not how I get the tiles. If you notice there's no way to tell how long a tile is or how to line them up. Ok. There's a little map to the right of that tile being displayed that says "click to jump" underneath it. 5.) Click in that box anywhere and it will show tiles in the big box to the left that are evenly spaced apart (except the far right and very bottom). If you click on a few places within the small box, you see how the white rectangle with red borders inside the small box moves at the same interval for every tile. So, from there I right-click on the big tile image being displayed and select Save Image. 6.) This is where I got my pics from. I also assembled them last night anyway for amusement, and they fit perfectly. Just the very bottom row and the far right column overlap. But, I know now that the overall mosiac's width is 2602 and the height is 2800. Ideally, I would like the world file to be in lat/lon (that's funny about people on the web thinking the Earth is flat - brings an old Bugs Bunny cartoon to mind), being as I have to convert a lat/lon point someone sends me to UTM as of right now. I would love to not have to convert - just less code is always better to me. Yeah. I know it's in Zone 16. I looked that up a while back on a UTM grid I found online. Ok. So, my current world file (in UTM): 1 0.0000000000 0.0000000000 -1 393898.00 4441379.00 So..... for lat/lon I could say...........: 1 0.0000000000 0.0000000000 -1 -88.248281 40.117268 (This would put the Top Left coordinate in an area called West Side Park. I took that assembled map pic and then grabbed a screen shot of the current window I was in and made that into an image and aligned them via layering and opacity levels in The GIMP (Like Photoshop but in Ubuntu Linux)). I'll double check the math, but I don't know if what I described earlier with all the steps could be screwing things up. And lastly, in the world file, 1 would represent 1 decimal degree/pixel or 1 meter/pixel in the X direction (depending on UTM or lat/lon)? I checked out Topozone. It looks like it has a ton of features. I'll play around with it some more. Thanks!!!! - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 18:25:52 -0400 From: ed at topozone.com To: docterrobert at msn.com; MAPSERVER-USERS at LISTS.UMN.EDU Chris - (I added the list back to the reply line - please always reply to the whole list - thanks) A world file is in the units of the image's projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it's certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility - especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don't know which campus you're using, but if you're at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don't look like those, they're not UTM. Oh, sorry - I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that's because those are the native units of the UTM projection being used. There's nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn't say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you're wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that's not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that's OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com ________________________________ From: Christopher Harris [mailto:docterrobert at msn.com] Sent: Wednesday, September 26, 2007 1:13 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Wow. Thanks Ed. You went to a lot of trouble. Most of this stuff you've explained I have a handle on. I wikipedia'd how to make a world file when I did that previous app. And yes, it's the same app with the image that's in UTM projection. I actually have one last question about that, but I'll do a separate post for that. This is a modification of that app. See, I've been using this "Parking Lot" map for the University of Illinois, because I couldn't find a better looking one. Well, yesterday, I noticed that you could go their full campus map and right click on each individual tile and save it as a .gif. I had tried this before but was apparently clicking on certain, wrong areas of each tile every time where I guess the javascript was blocking me. The javascript that they use displays info on certain buildings when you click on them. If you happen to right-click on or around a building and try to save, you can't. You have to click somewhere else on the tile that's on or around a building. Anywho - my boss now wants me to take what I've done with that one pic of the "Parking Lot" and now apply it to a big tiled image of the entire campus (enter the tiles I've saved). That's the back story as to what's going on. I have 3 questions now. #1 You asked if the image is in UTM. I'm basing the image projection on the world file. I remember you (or maybe this one other guy on this list serv) telling me before that you can't distinguish what projection a world file is in - that that's one of the cons to world files. Every example I've ever seen after typing in "World File" in Google shows a world file that is in meters and says that it's using UTM projection. That's still the case right? Oh, the lat/lon has to do with me reprojecting. See, someone passes me a lat/lon coordinate (a center point). I then take that, and convert it to UTM, because the map's projection is in UTM due to the world file being in UTM. Thanks for your time and patience by the way. You've been a huge help. #2 The one thing I'm hazy on in regard to the world file is: the 1st and 4th line - pixel size in the x-direction and y-direction in map units/pixel I understand why x is positive and y is almost always negative. But, does that mean, for example, if I type 2 for the 1st line and -2 for the fourth line, then there will be 2 meters per pixel going both directions? For that I could never find an example of what they meant. I just assumed that. I usually work best with seeing an example, and one was never provided on any of the pages I visited. #3 "The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number." Is pixel dimension related to question #2? For instance (in meters): TL - 393898 4441379 BR - 396253 4438945 maxx=393898, maxy=4441379 minx=396253, miny=4438945 DeltaX=-2355, DeltaY=2434 Say the mosaic's dimensions in pixels are.........: X=1500, Y=2000 X pixel dimension = -2355/1500 = -1.57 meters/pixel Y pixel dimension = 2434/2000 = 1.217 meters/pixel That right? - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 14:45:54 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - OK - it's not as bad as all that - don't fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don't bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image's coordinate system. Is this the image you were asking about earlier that's in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn't recommend Google Earth as a very accurate way to do that, but if it's close enough for you and easy that's OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn't an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It's just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - Let me suggest you try to get unconfused just one step at a time! "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." That's a bit of a contradiction. A world file is one way of providing georeferencing. If you've got an image "attached" to the Earth via a world file, you've georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn't figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you'd like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply - it's just six lines of text). - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From dgertsch at GMURESEARCH.COM Thu Sep 27 11:43:08 2007 From: dgertsch at GMURESEARCH.COM (AmericanBwana) Date: Thu, 27 Sep 2007 11:43:08 -0700 Subject: Need help converting mrSid {Scanned} In-Reply-To: Message-ID: Yes I've downloaded that file, but it seems as tho the output file will be to large J:\NAIP>mrsidgeodecode_win.exe -i adams/naip_1-1_1n_s_co001_2005_1.sid -o geotif f.tif -of tifg mrsidgeodecode: (c) 2005 LizardTech, Inc. All rights reserved. input: width: 123859 height: 43049 upper-left X: 488991.500000 upper-left Y: 4435823.500000 X scale: 1.000000 Y scale: -1.000000 output: width: 123859 height: 43049 upper-left X: 488991.500000 upper-left Y: 4435823.500000 X scale: 1.000000 Y scale: -1.000000 format: GeoTIFF *** error: TIFF: Resulting tiff file is too large: > 4GB [50417] J:\NAIP> The input file is about 1G (I have one that is a tad over 3G). It doesn't have to be a GeoTiff, but does need to be something HostGIS can understand. Any thoughts on that? Siki Zoltan wrote: > > Hi, > > You can use MrSID Decode from > http://www.lizardtech.com/download/dl_options.php?page=tools > > Zoltan > > On Wed, 26 Sep 2007, AmericanBwana wrote: > >> Good afternoon, >> This is my first post here. >> >> I have downloaded about 90G of Colorado NAIP data. Unfortunately they are >> in >> mrSid format, which HostGis cannot support. >> >> I'm looking for someone that can convert these for a fee or maybe trade >> some >> of the other data I have. >> >> Please send me a message if you are interested or can help. >> >> Oh, I've tried gdal_translate, the lizardtech tool, as well as everything >> else I can find out there. The files are simply to large for these >> applications. >> >> Thanks >> -- >> View this message in context: >> http://www.nabble.com/Need-help-converting-mrSid-tf4524368.html#a12908032 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Need-help-converting-mrSid-tf4524368.html#a12927780 Sent from the Mapserver - User mailing list archive at Nabble.com. From docterrobert at MSN.COM Thu Sep 27 11:49:12 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Thu, 27 Sep 2007 13:49:12 -0500 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988441@ptolemy.topozone.com> Message-ID: Ok.....sorry it's taken me a while to post again. Got caught up with something else. Considering the info and dimensions I have right now pending on what you say about how I got those tiled images. In Lat/Lon: TL - lat = 40.117268 lon = -88.248281 BR - lat = 40.082274 lon = -88.205980 In Pixels: Image Width = 2602 Image Height = 2800 X pixel dimension: (-88.205980)-(-88.248281) 0.042301 ________________________ = _____________ = 0.000016257 2602 2602 Y pixel dimension: 40.082277-40.117268 -0.034991 ________________________ = _____________ = -0.000012497 2800 2800 Yeah, I see how I reversed them. I was thinking max was the greatest number in lat/lon or meters and not in regard to the image and its coordinate system. With the numbers provided so far, his should be right - right? - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 18:25:52 -0400 From: ed at topozone.com To: docterrobert at msn.com; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? (I added the list back to the reply line ? please always reply to the whole list ? thanks) A world file is in the units of the image?s projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it?s certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility ? especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don?t know which campus you?re using, but if you?re at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don?t look like those, they?re not UTM. Oh, sorry ? I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that?s because those are the native units of the UTM projection being used. There?s nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn?t say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you?re wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that?s not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that?s OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com From: Christopher Harris [mailto:docterrobert at msn.com] Sent: Wednesday, September 26, 2007 1:13 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Wow. Thanks Ed. You went to a lot of trouble. Most of this stuff you've explained I have a handle on. I wikipedia'd how to make a world file when I did that previous app. And yes, it's the same app with the image that's in UTM projection. I actually have one last question about that, but I'll do a separate post for that. This is a modification of that app. See, I've been using this "Parking Lot" map for the University of Illinois, because I couldn't find a better looking one. Well, yesterday, I noticed that you could go their full campus map and right click on each individual tile and save it as a .gif. I had tried this before but was apparently clicking on certain, wrong areas of each tile every time where I guess the javascript was blocking me. The javascript that they use displays info on certain buildings when you click on them. If you happen to right-click on or around a building and try to save, you can't. You have to click somewhere else on the tile that's on or around a building. Anywho - my boss now wants me to take what I've done with that one pic of the "Parking Lot" and now apply it to a big tiled image of the entire campus (enter the tiles I've saved). That's the back story as to what's going on. I have 3 questions now. #1 You asked if the image is in UTM. I'm basing the image projection on the world file. I remember you (or maybe this one other guy on this list serv) telling me before that you can't distinguish what projection a world file is in - that that's one of the cons to world files. Every example I've ever seen after typing in "World File" in Google shows a world file that is in meters and says that it's using UTM projection. That's still the case right? Oh, the lat/lon has to do with me reprojecting. See, someone passes me a lat/lon coordinate (a center point). I then take that, and convert it to UTM, because the map's projection is in UTM due to the world file being in UTM. Thanks for your time and patience by the way. You've been a huge help. #2 The one thing I'm hazy on in regard to the world file is: the 1st and 4th line - pixel size in the x-direction and y-direction in map units/pixel I understand why x is positive and y is almost always negative. But, does that mean, for example, if I type 2 for the 1st line and -2 for the fourth line, then there will be 2 meters per pixel going both directions? For that I could never find an example of what they meant. I just assumed that. I usually work best with seeing an example, and one was never provided on any of the pages I visited. #3 "The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number." Is pixel dimension related to question #2? For instance (in meters): TL - 393898 4441379 BR - 396253 4438945 maxx=393898, maxy=4441379 minx=396253, miny=4438945 DeltaX=-2355, DeltaY=2434 Say the mosaic's dimensions in pixels are.........: X=1500, Y=2000 X pixel dimension = -2355/1500 = -1.57 meters/pixel Y pixel dimension = 2434/2000 = 1.217 meters/pixel That right? - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 14:45:54 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? OK ? it?s not as bad as all that ? don?t fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don?t bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image?s coordinate system. Is this the image you were asking about earlier that?s in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn?t recommend Google Earth as a very accurate way to do that, but if it?s close enough for you and easy that?s OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn?t an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It?s just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? Let me suggest you try to get unconfused just one step at a time! ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it.? That?s a bit of a contradiction. A world file is one way of providing georeferencing. If you?ve got an image ?attached? to the Earth via a world file, you?ve georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn?t figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you?d like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply ? it?s just six lines of text). - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From gregor at HOSTGIS.COM Thu Sep 27 11:53:26 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 27 Sep 2007 12:53:26 -0600 Subject: Need help converting mrSid {Scanned} In-Reply-To: <12927780.post@talk.nabble.com> Message-ID: > Yes I've downloaded that file, but it seems as tho the output file will be to > large > The input file is about 1G (I have one that is a tad over 3G). > It doesn't have to be a GeoTiff, but does need to be something HostGIS can > understand. > Any thoughts on that? Yeah. TIFF has a size limit of 2 GB. If your MrSID is 1 GB, then it probably has some 10 GB if it were converted to TIFF. Look at that width and height, and figure out what dimensions would correspond to just under 2 GB, then use the -srcwin flag to extract a small part of the file, several times. Example: gdal_translate -of GTiff -srcwin 0 0 20000 21500 co.sid co1.tif gdal_translate -of GTiff -srcwin 20000 0 20000 21500 co.sid co1.tif gdal_translate -of GTiff -srcwin 40000 0 20000 21500 co.sid co1.tif gdal_translate -of GTiff -srcwin 60000 0 20000 21500 co.sid co1.tif gdal_translate -of GTiff -srcwin 80000 0 20000 21500 co.sid co1.tif gdal_translate -of GTiff -srcwin 100000 0 23859 21500 co.sid co1.tif and so on Thus, you'll have 12 TIFFs of about 900 MB GB apiece. Then you'd make a tileindex to mosaic them back together. It's a bit roundabout, but that's life with a proprietary image format that doesn't even have a driver for Linux. -- Gregor Mosheh / Greg Allensworth 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 From gregor at HOSTGIS.COM Thu Sep 27 11:55:19 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 27 Sep 2007 12:55:19 -0600 Subject: Need help converting mrSid {Scanned} In-Reply-To: <46FBFC26.60902@hostgis.com> Message-ID: Gregor Mosheh wrote: > gdal_translate -of GTiff -srcwin 0 0 20000 21500 co.sid co1.tif > gdal_translate -of GTiff -srcwin 20000 0 20000 21500 co.sid co1.tif > gdal_translate -of GTiff -srcwin 40000 0 20000 21500 co.sid co1.tif > gdal_translate -of GTiff -srcwin 60000 0 20000 21500 co.sid co1.tif > gdal_translate -of GTiff -srcwin 80000 0 20000 21500 co.sid co1.tif > gdal_translate -of GTiff -srcwin 100000 0 23859 21500 co.sid co1.tif I made a typo here. Naturally, you'd want to use different output filenames for each tile! -- Gregor Mosheh / Greg Allensworth 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 From Jukka.Rahkonen at MMMTIKE.FI Thu Sep 27 11:56:12 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 27 Sep 2007 21:56:12 +0300 Subject: Need help converting mrSid {Scanned} Message-ID: Hi, For that big images you must use some other format not having 4 gigabyte size limit. Try for example ERDAS Imagine format, it is called HFA in gdal. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: UMN MapServer Users List puolesta: AmericanBwana L?hetetty: to 27.9.2007 21:43 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] Need help converting mrSid {Scanned} Yes I've downloaded that file, but it seems as tho the output file will be to large J:\NAIP>mrsidgeodecode_win.exe -i adams/naip_1-1_1n_s_co001_2005_1.sid -o geotif f.tif -of tifg mrsidgeodecode: (c) 2005 LizardTech, Inc. All rights reserved. input: width: 123859 height: 43049 upper-left X: 488991.500000 upper-left Y: 4435823.500000 X scale: 1.000000 Y scale: -1.000000 output: width: 123859 height: 43049 upper-left X: 488991.500000 upper-left Y: 4435823.500000 X scale: 1.000000 Y scale: -1.000000 format: GeoTIFF *** error: TIFF: Resulting tiff file is too large: > 4GB [50417] J:\NAIP> The input file is about 1G (I have one that is a tad over 3G). It doesn't have to be a GeoTiff, but does need to be something HostGIS can understand. Any thoughts on that? Siki Zoltan wrote: > > Hi, > > You can use MrSID Decode from > http://www.lizardtech.com/download/dl_options.php?page=tools > > Zoltan > > On Wed, 26 Sep 2007, AmericanBwana wrote: > >> Good afternoon, >> This is my first post here. >> >> I have downloaded about 90G of Colorado NAIP data. Unfortunately they are >> in >> mrSid format, which HostGis cannot support. >> >> I'm looking for someone that can convert these for a fee or maybe trade >> some >> of the other data I have. >> >> Please send me a message if you are interested or can help. >> >> Oh, I've tried gdal_translate, the lizardtech tool, as well as everything >> else I can find out there. The files are simply to large for these >> applications. >> >> Thanks >> -- >> View this message in context: >> http://www.nabble.com/Need-help-converting-mrSid-tf4524368.html#a12908032 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Need-help-converting-mrSid-tf4524368.html#a12927780 Sent from the Mapserver - User mailing list archive at Nabble.com. From ed at TOPOZONE.COM Thu Sep 27 12:01:08 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 27 Sep 2007 15:01:08 -0400 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: A Message-ID: Chris - If your image is in UTM projection, your world file coordinates must be UTM coordinates. If your image is in a lat/lon "projection", your world file coordinates must be lat/lon coordinates. You have one or the other. Your image cannot be both, and you cannot switch between two different world files. There is one, only one, exactly one world file that is correct for your image. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Thursday, September 27, 2007 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Ok.....sorry it's taken me a while to post again. Got caught up with something else. Considering the info and dimensions I have right now pending on what you say about how I got those tiled images. In Lat/Lon: TL - lat = 40.117268 lon = -88.248281 BR - lat = 40.082274 lon = -88.205980 In Pixels: Image Width = 2602 Image Height = 2800 X pixel dimension: (-88.205980)-(-88.248281) 0.042301 ________________________ = _____________ = 0.000016257 2602 2602 Y pixel dimension: 40.082277-40.117268 -0.034991 ________________________ = _____________ = -0.000012497 2800 2800 Yeah, I see how I reversed them. I was thinking max was the greatest number in lat/lon or meters and not in regard to the image and its coordinate system. With the numbers provided so far, his should be right - right? - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 18:25:52 -0400 From: ed at topozone.com To: docterrobert at msn.com; MAPSERVER-USERS at LISTS.UMN.EDU Chris - (I added the list back to the reply line - please always reply to the whole list - thanks) A world file is in the units of the image's projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it's certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility - especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don't know which campus you're using, but if you're at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don't look like those, they're not UTM. Oh, sorry - I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that's because those are the native units of the UTM projection being used. There's nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn't say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you're wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that's not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that's OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com ________________________________ From: Christopher Harris [mailto:docterrobert at msn.com] Sent: Wednesday, September 26, 2007 1:13 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Wow. Thanks Ed. You went to a lot of trouble. Most of this stuff you've explained I have a handle on. I wikipedia'd how to make a world file when I did that previous app. And yes, it's the same app with the image that's in UTM projection. I actually have one last question about that, but I'll do a separate post for that. This is a modification of that app. See, I've been using this "Parking Lot" map for the University of Illinois, because I couldn't find a better looking one. Well, yesterday, I noticed that you could go their full campus map and right click on each individual tile and save it as a .gif. I had tried this before but was apparently clicking on certain, wrong areas of each tile every time where I guess the javascript was blocking me. The javascript that they use displays info on certain buildings when you click on them. If you happen to right-click on or around a building and try to save, you can't. You have to click somewhere else on the tile that's on or around a building. Anywho - my boss now wants me to take what I've done with that one pic of the "Parking Lot" and now apply it to a big tiled image of the entire campus (enter the tiles I've saved). That's the back story as to what's going on. I have 3 questions now. #1 You asked if the image is in UTM. I'm basing the image projection on the world file. I remember you (or maybe this one other guy on this list serv) telling me before that you can't distinguish what projection a world file is in - that that's one of the cons to world files. Every example I've ever seen after typing in "World File" in Google shows a world file that is in meters and says that it's using UTM projection. That's still the case right? Oh, the lat/lon has to do with me reprojecting. See, someone passes me a lat/lon coordinate (a center point). I then take that, and convert it to UTM, because the map's projection is in UTM due to the world file being in UTM. Thanks for your time and patience by the way. You've been a huge help. #2 The one thing I'm hazy on in regard to the world file is: the 1st and 4th line - pixel size in the x-direction and y-direction in map units/pixel I understand why x is positive and y is almost always negative. But, does that mean, for example, if I type 2 for the 1st line and -2 for the fourth line, then there will be 2 meters per pixel going both directions? For that I could never find an example of what they meant. I just assumed that. I usually work best with seeing an example, and one was never provided on any of the pages I visited. #3 "The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number." Is pixel dimension related to question #2? For instance (in meters): TL - 393898 4441379 BR - 396253 4438945 maxx=393898, maxy=4441379 minx=396253, miny=4438945 DeltaX=-2355, DeltaY=2434 Say the mosaic's dimensions in pixels are.........: X=1500, Y=2000 X pixel dimension = -2355/1500 = -1.57 meters/pixel Y pixel dimension = 2434/2000 = 1.217 meters/pixel That right? - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 14:45:54 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - OK - it's not as bad as all that - don't fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don't bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image's coordinate system. Is this the image you were asking about earlier that's in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn't recommend Google Earth as a very accurate way to do that, but if it's close enough for you and easy that's OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn't an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It's just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - Let me suggest you try to get unconfused just one step at a time! "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." That's a bit of a contradiction. A world file is one way of providing georeferencing. If you've got an image "attached" to the Earth via a world file, you've georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn't figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you'd like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply - it's just six lines of text). - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From ed at TOPOZONE.COM Thu Sep 27 12:03:47 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 27 Sep 2007 15:03:47 -0400 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: A Message-ID: Chris - In my previous message (quoted below), I said: #3 "The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number." And that is correct. Maxx IS the "greatest number in lat/lon or meters", etc. Maxx - minx will be a positive number, and miny - maxy (note that they're reversed) will be a negative number. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Thursday, September 27, 2007 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Ok.....sorry it's taken me a while to post again. Got caught up with something else. Considering the info and dimensions I have right now pending on what you say about how I got those tiled images. In Lat/Lon: TL - lat = 40.117268 lon = -88.248281 BR - lat = 40.082274 lon = -88.205980 In Pixels: Image Width = 2602 Image Height = 2800 X pixel dimension: (-88.205980)-(-88.248281) 0.042301 ________________________ = _____________ = 0.000016257 2602 2602 Y pixel dimension: 40.082277-40.117268 -0.034991 ________________________ = _____________ = -0.000012497 2800 2800 Yeah, I see how I reversed them. I was thinking max was the greatest number in lat/lon or meters and not in regard to the image and its coordinate system. With the numbers provided so far, his should be right - right? - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 18:25:52 -0400 From: ed at topozone.com To: docterrobert at msn.com; MAPSERVER-USERS at LISTS.UMN.EDU Chris - (I added the list back to the reply line - please always reply to the whole list - thanks) A world file is in the units of the image's projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it's certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility - especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don't know which campus you're using, but if you're at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don't look like those, they're not UTM. Oh, sorry - I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that's because those are the native units of the UTM projection being used. There's nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn't say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you're wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that's not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that's OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com ________________________________ From: Christopher Harris [mailto:docterrobert at msn.com] Sent: Wednesday, September 26, 2007 1:13 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Wow. Thanks Ed. You went to a lot of trouble. Most of this stuff you've explained I have a handle on. I wikipedia'd how to make a world file when I did that previous app. And yes, it's the same app with the image that's in UTM projection. I actually have one last question about that, but I'll do a separate post for that. This is a modification of that app. See, I've been using this "Parking Lot" map for the University of Illinois, because I couldn't find a better looking one. Well, yesterday, I noticed that you could go their full campus map and right click on each individual tile and save it as a .gif. I had tried this before but was apparently clicking on certain, wrong areas of each tile every time where I guess the javascript was blocking me. The javascript that they use displays info on certain buildings when you click on them. If you happen to right-click on or around a building and try to save, you can't. You have to click somewhere else on the tile that's on or around a building. Anywho - my boss now wants me to take what I've done with that one pic of the "Parking Lot" and now apply it to a big tiled image of the entire campus (enter the tiles I've saved). That's the back story as to what's going on. I have 3 questions now. #1 You asked if the image is in UTM. I'm basing the image projection on the world file. I remember you (or maybe this one other guy on this list serv) telling me before that you can't distinguish what projection a world file is in - that that's one of the cons to world files. Every example I've ever seen after typing in "World File" in Google shows a world file that is in meters and says that it's using UTM projection. That's still the case right? Oh, the lat/lon has to do with me reprojecting. See, someone passes me a lat/lon coordinate (a center point). I then take that, and convert it to UTM, because the map's projection is in UTM due to the world file being in UTM. Thanks for your time and patience by the way. You've been a huge help. #2 The one thing I'm hazy on in regard to the world file is: the 1st and 4th line - pixel size in the x-direction and y-direction in map units/pixel I understand why x is positive and y is almost always negative. But, does that mean, for example, if I type 2 for the 1st line and -2 for the fourth line, then there will be 2 meters per pixel going both directions? For that I could never find an example of what they meant. I just assumed that. I usually work best with seeing an example, and one was never provided on any of the pages I visited. #3 "The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number." Is pixel dimension related to question #2? For instance (in meters): TL - 393898 4441379 BR - 396253 4438945 maxx=393898, maxy=4441379 minx=396253, miny=4438945 DeltaX=-2355, DeltaY=2434 Say the mosaic's dimensions in pixels are.........: X=1500, Y=2000 X pixel dimension = -2355/1500 = -1.57 meters/pixel Y pixel dimension = 2434/2000 = 1.217 meters/pixel That right? - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 14:45:54 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - OK - it's not as bad as all that - don't fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don't bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image's coordinate system. Is this the image you were asking about earlier that's in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn't recommend Google Earth as a very accurate way to do that, but if it's close enough for you and easy that's OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn't an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It's just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris - Let me suggest you try to get unconfused just one step at a time! "it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." That's a bit of a contradiction. A world file is one way of providing georeferencing. If you've got an image "attached" to the Earth via a world file, you've georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn't figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you'd like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So - what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you'll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply - it's just six lines of text). - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From docterrobert at MSN.COM Thu Sep 27 12:23:49 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Thu, 27 Sep 2007 14:23:49 -0500 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988466@ptolemy.topozone.com> Message-ID: Great! Ok. Well, it looks like you've armed me with enough info to take over the world - at least on my computer screen. You've cleared up a lot of mysteries that I've had thus far. I'm going to go apply all this and see what explodes and doesn't explode. I do have one problem I can think of with the app that I already had created, but I'll wait to see if it goes away after I apply all of this helpful info. I don't think it will. I'm pretty sure it involves how I'm setting up my extents (Markers are always a few hundred yards off and each marker that is located further north rotates north and east following a circular counter-clockwise pattern). But, don't worry about that now. I'll try and figure it out. Thanks, Ed. You are a very patient man and very nice too. Sorry it took a while for me to see the light, but I usually learn best when seeing examples, diagrams, pictures, etc. So, typically I'll have to draw or write stuff out to get the idea. I'm more of a visual person when it comes to memory. - Chris Date: Thu, 27 Sep 2007 15:03:47 -0400 From: ed at TOPOZONE.COM Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused To: MAPSERVER-USERS at LISTS.UMN.EDU Chris ? In my previous message (quoted below), I said: #3 "The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number." And that is correct. Maxx IS the ?greatest number in lat/lon or meters?, etc. Maxx ? minx will be a positive number, and miny ? maxy (note that they?re reversed) will be a negative number. - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Thursday, September 27, 2007 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Ok.....sorry it's taken me a while to post again. Got caught up with something else. Considering the info and dimensions I have right now pending on what you say about how I got those tiled images. In Lat/Lon: TL - lat = 40.117268 lon = -88.248281 BR - lat = 40.082274 lon = -88.205980 In Pixels: Image Width = 2602 Image Height = 2800 X pixel dimension: (-88.205980)-(-88.248281) 0.042301 ________________________ = _____________ = 0.000016257 2602 2602 Y pixel dimension: 40.082277-40.117268 -0.034991 ________________________ = _____________ = -0.000012497 2800 2800 Yeah, I see how I reversed them. I was thinking max was the greatest number in lat/lon or meters and not in regard to the image and its coordinate system. With the numbers provided so far, his should be right - right? - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 18:25:52 -0400 From: ed at topozone.com To: docterrobert at msn.com; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? (I added the list back to the reply line ? please always reply to the whole list ? thanks) A world file is in the units of the image?s projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it?s certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility ? especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don?t know which campus you?re using, but if you?re at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don?t look like those, they?re not UTM. Oh, sorry ? I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that?s because those are the native units of the UTM projection being used. There?s nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn?t say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you?re wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that?s not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that?s OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com From: Christopher Harris [mailto:docterrobert at msn.com] Sent: Wednesday, September 26, 2007 1:13 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Wow. Thanks Ed. You went to a lot of trouble. Most of this stuff you've explained I have a handle on. I wikipedia'd how to make a world file when I did that previous app. And yes, it's the same app with the image that's in UTM projection. I actually have one last question about that, but I'll do a separate post for that. This is a modification of that app. See, I've been using this "Parking Lot" map for the University of Illinois, because I couldn't find a better looking one. Well, yesterday, I noticed that you could go their full campus map and right click on each individual tile and save it as a .gif. I had tried this before but was apparently clicking on certain, wrong areas of each tile every time where I guess the javascript was blocking me. The javascript that they use displays info on certain buildings when you click on them. If you happen to right-click on or around a building and try to save, you can't. You have to click somewhere else on the tile that's on or around a building. Anywho - my boss now wants me to take what I've done with that one pic of the "Parking Lot" and now apply it to a big tiled image of the entire campus (enter the tiles I've saved). That's the back story as to what's going on. I have 3 questions now. #1 You asked if the image is in UTM. I'm basing the image projection on the world file. I remember you (or maybe this one other guy on this list serv) telling me before that you can't distinguish what projection a world file is in - that that's one of the cons to world files. Every example I've ever seen after typing in "World File" in Google shows a world file that is in meters and says that it's using UTM projection. That's still the case right? Oh, the lat/lon has to do with me reprojecting. See, someone passes me a lat/lon coordinate (a center point). I then take that, and convert it to UTM, because the map's projection is in UTM due to the world file being in UTM. Thanks for your time and patience by the way. You've been a huge help. #2 The one thing I'm hazy on in regard to the world file is: the 1st and 4th line - pixel size in the x-direction and y-direction in map units/pixel I understand why x is positive and y is almost always negative. But, does that mean, for example, if I type 2 for the 1st line and -2 for the fourth line, then there will be 2 meters per pixel going both directions? For that I could never find an example of what they meant. I just assumed that. I usually work best with seeing an example, and one was never provided on any of the pages I visited. #3 "The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number." Is pixel dimension related to question #2? For instance (in meters): TL - 393898 4441379 BR - 396253 4438945 maxx=393898, maxy=4441379 minx=396253, miny=4438945 DeltaX=-2355, DeltaY=2434 Say the mosaic's dimensions in pixels are.........: X=1500, Y=2000 X pixel dimension = -2355/1500 = -1.57 meters/pixel Y pixel dimension = 2434/2000 = 1.217 meters/pixel That right? - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 14:45:54 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? OK ? it?s not as bad as all that ? don?t fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don?t bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. All your measurements need to be done in the units of the image?s coordinate system. Is this the image you were asking about earlier that?s in UTM projection? If so, you need UTM coordinates, NOT lat/lon. I wouldn?t recommend Google Earth as a very accurate way to do that, but if it?s close enough for you and easy that?s OK. If you can easily find the corners of your image area on a topo map you can do it on TopoZone and get UTM coordinates accurate to within a few meters just by clicking on the spots that match the corner points of your image. If there isn?t an obvious landmark at the corner, you can pick a prominent location NEAR the corner and just measure the number of pixels away from the corner it is. It?s just a bit more bookkeeping but does the same thing. - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 11:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Thanks again, Ed. I need to clear up some things that I guess I didn't make clear. I know that a world file provides georeferencing. I meant to say that I had a .gif that had no georeferencing info associated with it, and then added one. From there I got my initial app to work (displaying the big map). One thing I omitted was that the little .gifs (tiles), when assembled, make up a different big map pic then the one where mentioned : ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it." Before I had a pic of a large section of a college campus. Now I have a pic of the entire campus, but in little tiles. I know Mapserver makes maps and not pics too. I probably just worded something wrong. "So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image." Yes, I have a world file, but it's for the pic that shows a large section of the campus - not for the big pic that is the sum of the little pics. Ok, so then I have to have a world file for every little tile, but before that I need to correctly set up the world file for the big pic, which I guess I'll need to assemble in Photoshop. Does that sound right? I can do it, it's just a bit tedious lining up the tiles and such. Also, how do you correctly align a pic of some map on the globe. I've been using Google Maps to do it. I'll sit there and study where the pic's corners should approximately be, then get the lat/lon from that (clicking directions to or from will yield the lat/lons). Thank you. - Chris Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 13:36:42 -0400 From: ed at topozone.com To: docterrobert at MSN.COM; MAPSERVER-USERS at LISTS.UMN.EDU Chris ? Let me suggest you try to get unconfused just one step at a time! ?it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it.? That?s a bit of a contradiction. A world file is one way of providing georeferencing. If you?ve got an image ?attached? to the Earth via a world file, you?ve georeferenced it. MapServer makes maps, not pictures. One of the chief differences is that a map has geographic location information associated with it. When you ask MapServer to generate a map for you, you need to tell it the location of the map you want in some coordinate system. In order for MapServer to know which of your GIF images to use in making the output map, it needs to know the geographic location of each of those images. Otherwise it couldn?t figure out which ones to use. A TILEINDEX is step two in the process. Once you have a set of more than 1 properly georeferenced images that you?d like to use like a single logical image, you can create a TILEINDEX to do that. But you have to completely and correctly make it through step one first. Once you get the individual images properly georeferenced, gdaltindex will just work. So ? what do you know about these images? Do you really have a world file that correctly describes your big GIF image? Do you know exactly how the little images were created from the big image? If so, you should be able to figure out how to generate world files for each individual image. If not, you?ll need to get that information for your big image. If you do have that world file and know how the tiles were created, let us know (you can post the world file in your reply ? it?s just six lines of text). - Ed Ed McNierney TopoZone.com From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Wednesday, September 26, 2007 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Hi. I have a map that is broken up into a bunch of .gif tiles. I want to display them on a layer in Mapserver. I have working version of what I want to accomplish, but it uses one .gif (the big map pic), attaches the big map to the globe via a world file. That big map .gif had no georeferencing info attached to it. These .gifs have no georeferencing information included or attached as well. I read Section 4 (and Section 9 too) on the mapserver site page: http://mapserver.gis.umn.edu/docs/howto/raster_data From sscott at LOCATIONINC.COM Thu Sep 27 12:31:40 2007 From: sscott at LOCATIONINC.COM (Shannon Scott) Date: Thu, 27 Sep 2007 15:31:40 -0400 Subject: flash swf polygon highlight In-Reply-To: <46F7D60F.2040908@locationinc.com> Message-ID: Anyone with interest, I have made limited progress on this issue. It turns out that the polygons are created in the swf output as instances of object Button. These button instances do not have instance names associated with them so they cannot be referenced in ActionScript ( I guess ). I am trying to alter the mapswf.c to add names to the button instances. I am not a c developer, so I am struggling. Any help or advice would be greatly appreciated. Thank you. Shannon Shannon Scott wrote: > Hello, > I have a flash map. I have built an application so that when the > person mouses over the map - the highlighted polygon ( under mouse ) > will highlight part of the web page - with corresponding information. > I would like to also make it so when the web page is moused over the > respective polygon will also become highlighted. I am able to access > the polygon attributes through the Element array. > Is there a way to highlight the polygon using actionscript - if I know > the Element array index number? > > Any help or pointers are appreciated. > Thank you. > Shannon > From ed at TOPOZONE.COM Thu Sep 27 15:52:40 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 27 Sep 2007 18:52:40 -0400 Subject: Rasters, TileIndex and Shapefiles - Oh My! Really Confused In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988467@ptolemy.topozone.com> Message-ID: Chris - Well, now you've gone and made me feel I have to add a little detail that I thought we could just sweep under the rug for now . If your aerial photos are indeed in the UTM projection as we suspect, and you georeference them in your world file as if they were latitude/longitude, it MIGHT seem to work over a small area. But it will be subtly incorrect. If your image is really in UTM, and you look at the corner coordinates in latitude/longitude you will find that the latitude of the top left corner is NOT the same as the latitude of the top right corner. In other words, the correct X coordinate of a pixel is a function of both X and Y, and that's not a concept you can express in your world file. But if the area is small the difference (error) will also be small, and it will look, at first glance, as if it works. But you will see a positioning error that will vary in magnitude depending on your position on the image, and the error drift in your markers sounds very much like you're seeing the problem I'm talking about. If that's the case, then correcting the projection and world file to accurately describe the image as being in UTM should correct the problem. You will also see the same symptom, of course, if the problem is reversed and the image is in lat/lon but you're treating it like UTM. The best way to check is to calculate both the UTM and lat/lon coordinates of all four corners of your image. It's supposed to be a rectangle, so the top left Y value should match the top right Y value, the top right X value should match the bottom right X value, etc. You should find that that holds true (or close to it) for only one of your two coordinate systems - that's the right one. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Thursday, September 27, 2007 12:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Great! Ok. Well, it looks like you've armed me with enough info to take over the world - at least on my computer screen. You've cleared up a lot of mysteries that I've had thus far. I'm going to go apply all this and see what explodes and doesn't explode. I do have one problem I can think of with the app that I already had created, but I'll wait to see if it goes away after I apply all of this helpful info. I don't think it will. I'm pretty sure it involves how I'm setting up my extents (Markers are always a few hundred yards off and each marker that is located further north rotates north and east following a circular counter-clockwise pattern). But, don't worry about that now. I'll try and figure it out. Thanks, Ed. You are a very patient man and very nice too. Sorry it took a while for me to see the light, but I usually learn best when seeing examples, diagrams, pictures, etc. So, typically I'll have to draw or write stuff out to get the idea. I'm more of a visual person when it comes to memory. - Chris ________________________________ Date: Thu, 27 Sep 2007 15:03:47 -0400 From: ed at TOPOZONE.COM Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused To: MAPSERVER-USERS at LISTS.UMN.EDU Chris - In my previous message (quoted below), I said: #3 "The X pixel dimension will be (maxx - minx) / xpixels, and the Y will be (miny - maxy) / ypixels. You should find that the X number is -1 times the Y number." And that is correct. Maxx IS the "greatest number in lat/lon or meters", etc. Maxx - minx will be a positive number, and miny - maxy (note that they're reversed) will be a negative number. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris Sent: Thursday, September 27, 2007 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Ok.....sorry it's taken me a while to post again. Got caught up with something else. Considering the info and dimensions I have right now pending on what you say about how I got those tiled images. In Lat/Lon: TL - lat = 40.117268 lon = -88.248281 BR - lat = 40.082274 lon = -88.205980 In Pixels: Image Width = 2602 Image Height = 2800 X pixel dimension: (-88.205980)-(-88.248281) 0.042301 ________________________ = _____________ = 0.000016257 2602 2602 Y pixel dimension: 40.082277-40.117268 -0.034991 ________________________ = _____________ = -0.000012497 2800 2800 Yeah, I see how I reversed them. I was thinking max was the greatest number in lat/lon or meters and not in regard to the image and its coordinate system. With the numbers provided so far, his should be right - right? - Chris ________________________________ Subject: RE: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Really Confused Date: Wed, 26 Sep 2007 18:25:52 -0400 From: ed at topozone.com To: docterrobert at msn.com; MAPSERVER-USERS at LISTS.UMN.EDU Chris - (I added the list back to the reply line - please always reply to the whole list - thanks) A world file is in the units of the image's projection, not the other way around. Having a world file does not mean the image is in UTM projection. The UTM projection is a popular one, but it's certainly not the only one. For a map in Illinois UTM is certainly a possibility, but an Illinois State Plane Coordinate System projection is also a possibility - especially if the original imagery came from the State of Illinois. And geographic lat/lon coordinates are also a possibility due to the increasing number of people in the world who seem to think the Earth is flat (at least on the Web). I don't know which campus you're using, but if you're at UIUC then the UTM coordinates will be in UTM Zone 16 with values of around 395000 (X or Easting) 4440000 (Y or Northing). If your numbers don't look like those, they're not UTM. Oh, sorry - I started answering before reading all the questions, and you later seem to confirm that your coordinates are indeed UTM. But you got the formulas backwards, and X should be positive while Y should be negative- not the other way around. And the measurements in your world file are indeed in meters, but that's because those are the native units of the UTM projection being used. There's nothing that requires them to be in meters; many US state plane coordinate systems use units of feet, and those would appear in the world file, too. Now it is highly unlikely that your pixel resolution is different in each dimension. You could average those two numbers, or double-check your coordinate values (you didn't say what source you used to get them). If you got this image from a GIS source, I would say that if you think the dimensions are different you're wrong, but who knows what the University did to munge the image into a pretty picture. So maybe the dimensions ARE different; that's not impossible, just odd. I still would double-check your measurements and math, but if you get the same answer that's OK. Once you do that you just have to crank out those world files! - Ed Ed McNierney TopoZone.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.C.Cartwright at NOAA.GOV Thu Sep 27 17:28:30 2007 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Thu, 27 Sep 2007 18:28:30 -0600 Subject: Changing map file parameters via URL Message-ID: Hello All, I'm trying to modify an existing layer on a per request basis using mapserver CGI. I have a postgis layer defined as: LAYER NAME US ... FILTER "iso_2digit = 'US'" END and I am trying to modify the FILTER element by including: map_US_FILTER=iso_2digit='CA' in the request. Can someone point out what I'm doing wrong? (This is version 5.0 on MacOSX 10.4) Thanks! --john From dgertsch at GMURESEARCH.COM Thu Sep 27 20:42:56 2007 From: dgertsch at GMURESEARCH.COM (AmericanBwana) Date: Thu, 27 Sep 2007 20:42:56 -0700 Subject: Step by step instructions for compiling Mapserver 5 on RHEL 5 Message-ID: Not sure how to contribute this to the group. But I've put together a step by step process I used to build Mapserver 5 on RHEL 5. It includes directions to include AGG. So what is the best way to provide this? http://www.nabble.com/file/p12934222/MP5_RHEL5_AGG.txt MP5_RHEL5_AGG.txt -- View this message in context: http://www.nabble.com/Step-by-step-instructions-for-compiling-Mapserver-5-on-RHEL-5-tf4532329.html#a12934222 Sent from the Mapserver - User mailing list archive at Nabble.com. From henric at ERNSTSON.NU Thu Sep 27 22:45:55 2007 From: henric at ERNSTSON.NU (Henric Ernstson) Date: Fri, 28 Sep 2007 07:45:55 +0200 Subject: Select data from table to generate layer Message-ID: HI I have made a simple application using PHP script, al data is in a database (mySQL). What I woud like to do now is to add a layer from the database, where the user can select what data to view. I got a tabble in my database with different clients/customer reffering to geograpical coordinates. I would like to make a application / layer where i could select with client/customer to view on the map. Have any one some idee whare to start or where I could find an example? Best reg. Henric From umberto.nicoletti at GMAIL.COM Thu Sep 27 23:52:10 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 28 Sep 2007 08:52:10 +0200 Subject: Select data from table to generate layer In-Reply-To: <200709280545.l8S5jZuU001976@shx250sn1.teliamobile.net> Message-ID: Henric, first of all you need to make the mysql accessibile to mapserver by converting coordintes into a valid mygis geometry. Unfortunately there is not much documentation on mysql around, but I could gather the following by looking at the source of mapmygis.c: Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (<sub query>) as foo using unique <column name> using SRID=<srid#>'", NOTE: for (2) 'using unique' and 'SRID=' are optional, but its highly recommended that you use them!!! The most common problem with (1) is incorrectly uploading your data. There must be an entry in the geometry_columns table. This will be automatically done if you used the shp2mysql program or created your geometry column with the AddGeometryColumn() MYGIS function. Another important thing to check is that the MYGIS user specified in the CONNECTION string does have SELECT permissions on the table(s) specified in your DATA string. If you are using the (2) method (and have errors), you've probably made a typo. Example: 'the_geom from (select the_geom,oid from mytable) as foo using unique oid using SRID=76' This is very much like the (1) example. The subquery ('select the_geom,oid from mytable') will be executed, and mapserver will use 'oid' (a postgresql system column) for uniquely specifying a geometry (for mapserver queries). The geometry (the_geom) must have a SRID of 76. Example: 'roads from (select table1.roads,table1.rd_segment_id,table2.rd_name,table2.rd_type from table1,table2 where table1.rd_segment_id=table2.rd_segment_id) as foo using unique rd_segment_id using SRID=89' This is a more complex sub-query involving joining two tables. The resulting geometry (column 'roads') has SRID=89, and mapserver will use rd_segment_id to uniquely identify a geometry. The attributes rd_type and rd_name are useable by other parts of mapserver. To use a view, do something like: ' from (SELECT * FROM ) as foo using unique using SRID=' For example: 'the_geom from (SELECT * FROM myview) as foo using unique gid using SRID=-1' NOTE: for the (2) case, the ' as foo ' is requred. The 'using unique <column>' and 'using SRID=' are case sensitive. Then you can build a simple form which either builds a filter or does a query by attributes on the mysql layer. HTH, Umberto On 9/28/07, Henric Ernstson wrote: > HI I have made a simple application using PHP script, al data is in a database (mySQL). > > What I woud like to do now is to add a layer from the database, where the user can select what data to view. > > I got a tabble in my database with different clients/customer reffering to geograpical coordinates. I would like to make a application / layer where i could select with client/customer to view on the map. Have any one some idee whare to start or where I could find an example? > > Best reg. Henric > From umberto.nicoletti at GMAIL.COM Fri Sep 28 00:14:56 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 28 Sep 2007 09:14:56 +0200 Subject: Select data from table to generate layer In-Reply-To: <75b4b93e0709272352n528f6bcetac8224ea7d3ecaf6@mail.gmail.com> Message-ID: The same has been cleaned up and added to the documentation here: http://mapserver.gis.umn.edu/docs/reference/vector_data/mygis Umberto On 9/28/07, Umberto Nicoletti wrote: > Henric, > first of all you need to make the mysql accessibile to mapserver by > converting coordintes into a valid mygis geometry. > Unfortunately there is not much documentation on mysql around, but I > could gather the following by looking at the source of mapmygis.c: > > > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from (<sub query>) as foo using unique > <column name> using SRID=<srid#>'", > > NOTE: for (2) 'using unique' and 'SRID=' are optional, but its highly > recommended that you use them!!! > > The most common problem with (1) is incorrectly uploading your data. > There must be an entry in the geometry_columns table. This will be > automatically done if you used the shp2mysql program or created your > geometry column with the AddGeometryColumn() MYGIS function. > > Another important thing to check is that the MYGIS user specified in > the CONNECTION string does have SELECT permissions on the table(s) > specified in your DATA string. > > If you are using the (2) method (and have errors), you've probably made a typo. > Example: 'the_geom from (select the_geom,oid from mytable) as foo > using unique oid using SRID=76' > This is very much like the (1) example. The subquery ('select > the_geom,oid from mytable') will be executed, and mapserver will use > 'oid' (a postgresql system column) for uniquely specifying a geometry > (for mapserver queries). The geometry (the_geom) must have a SRID of > 76. > > Example: > 'roads from (select > table1.roads,table1.rd_segment_id,table2.rd_name,table2.rd_type from > table1,table2 where table1.rd_segment_id=table2.rd_segment_id) as foo > using unique rd_segment_id using SRID=89' > > This is a more complex sub-query involving joining two tables. The > resulting geometry (column 'roads') has SRID=89, and mapserver will > use rd_segment_id to uniquely identify a geometry. The attributes > rd_type and rd_name are useable by other parts of mapserver. > > To use a view, do something like: > ' from (SELECT * FROM ) as foo using unique > using SRID=' > > For example: 'the_geom from (SELECT * FROM myview) as foo using unique > gid using SRID=-1' > > NOTE: for the (2) case, the ' as foo ' is requred. The 'using unique > <column>' and 'using SRID=' are case sensitive. > > Then you can build a simple form which either builds a filter or does > a query by attributes on the mysql layer. > > HTH, > Umberto > > On 9/28/07, Henric Ernstson wrote: > > HI I have made a simple application using PHP script, al data is in a database (mySQL). > > > > What I woud like to do now is to add a layer from the database, where the user can select what data to view. > > > > I got a tabble in my database with different clients/customer reffering to geograpical coordinates. I would like to make a application / layer where i could select with client/customer to view on the map. Have any one some idee whare to start or where I could find an example? > > > > Best reg. Henric > > > From mikesaunt at GMAIL.COM Fri Sep 28 03:54:44 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 28 Sep 2007 11:54:44 +0100 Subject: Any help appreciated!! - Fwd: 5.0 - use of qstring_validation_pattern for attribute queries Message-ID: Hi All I sent this out earliler in the week - has anyone used a 'qstring' in MapServer 5.0 where the pattern should be able to match any string? I can't seem to get it to work even though I get messages back such as Failed to parse expression: Mendip = Mendip msyyparse(): Expression parser error. parse error msEvalExpression: Expression parser error. Would there be any examples in the test cases / data etc? Any help appreciated!! Cheers Mike Hi All I was wondering whether anyone has an example of the METADATA key for qstring_validation_pattern that is required for v5.0 layers that are to be attribute queried? I would like to be able to accept any string (as through my app you can't inject the values) I've tried the following qstring_validation_pattern /^[0-9]*$/ and qstring_validation_pattern '.' but neither seem to match (the first throws a symbol definition error): LAYER NAME Ward TYPE POLYGON STATUS OFF CONNECTIONTYPE OGR CONNECTION "Overlays\CouncilDemocracy\Ward_Boundaries_2004.TAB" TOLERANCEUNITS METERS METADATA qstring_validation_pattern '.' END CLASS STYLE COLOR -1 -1 -1 END STYLE OUTLINECOLOR 0 0 0 WIDTH 2 END END END I've also tried as TYPE QUERY... Any help would be greatly appreciated Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From henric at ERNSTSON.NU Fri Sep 28 04:01:27 2007 From: henric at ERNSTSON.NU (Henric Ernstson) Date: Fri, 28 Sep 2007 13:01:27 +0200 Subject: SV: Re: [UMN_MAPSERVER-USERS] Select data from table to generate layer Message-ID: Tanks for a quick answer. I have used *.ovf files to select data from mySQL for the layers I have today to get data from the database and so far I have not got any problem yet, is it not recomended or so to use that method? -----Ursprungligt meddelande----- Fr?n: "Umberto Nicoletti" Till: "Henric Ernstson" Kopia: MAPSERVER-USERS at lists.umn.edu Skickat: 07-09-28 09:14 ?mne: Re: [UMN_MAPSERVER-USERS] Select data from table to generate layer The same has been cleaned up and added to the documentation here: http://mapserver.gis.umn.edu/docs/reference/vector_data/mygis Umberto On 9/28/07, Umberto Nicoletti wrote: > Henric, > first of all you need to make the mysql accessibile to mapserver by > converting coordintes into a valid mygis geometry. > Unfortunately there is not much documentation on mysql around, but I > could gather the following by looking at the source of mapmygis.c: > > > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from (<sub query>) as foo using unique > <column name> using SRID=<srid#>'", > > NOTE: for (2) 'using unique' and 'SRID=' are optional, but its highly > recommended that you use them!!! > > The most common problem with (1) is incorrectly uploading your data. > There must be an entry in the geometry_columns table. This will be > automatically done if you used the shp2mysql program or created your > geometry column with the AddGeometryColumn() MYGIS function. From mdeblois at MAPLECROFT.NET Fri Sep 28 04:32:54 2007 From: mdeblois at MAPLECROFT.NET (Mark de Blois) Date: Fri, 28 Sep 2007 12:32:54 +0100 Subject: Error on adding EPSG code Message-ID: Hi there, I Am trying to add an EPSG code for Winkel Triple to my MapServer proj file but I keep getting the error: msProcessProjection(): Projection library error. no options found in 'init' file I added the entry: # Winkel Triple <1234567> +proj=wintri +lat_1=45 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs <> to the file epsg (located at /usr/share/proj on my Ubuntu machine) and rebooted. Ogrinfo tells me the following about the shapefile I am trying to serve: Extent: (-16707480.310734, -10018754.171395) - (16920780.652974, 9320947.177797) Layer SRS WKT: PROJCS["World_Winkel_Tripel_NGS", GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Winkel_Tripel"], PARAMETER["False_Easting",0.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",0.0], PARAMETER["Standard_Parallel_1",45.0], UNIT["Meter",1.0]] In the mapfile I am referencing this shapefile through: LAYER NAME 'WTCountries' DATA 'maplecroft_countries_winkel_45' STATUS off TYPE Polygon METADATA WMS_SRS 'epsg:1234567' WMS_TITLE 'Countries_WT' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA PROJECTION 'init=epsg:1234567' END Does anyone have any idea what I am doing wrong? Your help would be greatly appreciated! cheers, Mark de Blois Maplecroft From yvan.calcagni at VOILA.FR Fri Sep 28 04:49:28 2007 From: yvan.calcagni at VOILA.FR (SUBSCRIBE MAPSERVER-USERS Y. Calcagni) Date: Fri, 28 Sep 2007 06:49:28 -0500 Subject: WMS Client Connection through a proxy Message-ID: Hi guys, I'm trying as a WMS client to connect an OGC server through a proxy, but all I'm getting is a blank image. I'm using Mapserver 4.6.1 with WFS_CLIENT support and here is to code from the mapfile I'm using : LAYER CONNECTION "http://ogcrisques.brgm.fr/cgi-bin/mapserv?map=/application/mapserver/mapFiles/risquesIT.map?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:27582" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_name" "DAT_SIREN_FS" "wms_proxy_*" "192.168.1.14:8080" "wms_format" "image/png" "wms_server_version" "1.1.1" END NAME "layerBD_MVT" PROJECTION "init=epsg:27582" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END If you have any idea of what is going wrong, it should be very helful to me. Thanks in advance. Yvan From umberto.nicoletti at GMAIL.COM Fri Sep 28 04:58:39 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 28 Sep 2007 13:58:39 +0200 Subject: Select data from table to generate layer In-Reply-To: <200709281101.l8SB16hW009079@shx250sn1.teliamobile.net> Message-ID: It is probably slower, that's it. Umberto On 9/28/07, Henric Ernstson wrote: > > Tanks for a quick answer. > > I have used *.ovf files to select data from mySQL for the layers I have today to get data from the database and so far I have not got any problem yet, is it not recomended or so to use that method? > > > > -----Ursprungligt meddelande----- > Fr?n: "Umberto Nicoletti" > Till: "Henric Ernstson" > Kopia: MAPSERVER-USERS at lists.umn.edu > Skickat: 07-09-28 09:14 > ?mne: Re: [UMN_MAPSERVER-USERS] Select data from table to generate layer > > The same has been cleaned up and added to the documentation here: > > http://mapserver.gis.umn.edu/docs/reference/vector_data/mygis > > Umberto > > On 9/28/07, Umberto Nicoletti wrote: > > Henric, > > first of all you need to make the mysql accessibile to mapserver by > > converting coordintes into a valid mygis geometry. > > Unfortunately there is not much documentation on mysql around, but I > > could gather the following by looking at the source of mapmygis.c: > > > > > > Standard ways of specifiying are : > > (1) 'geometry_column from geometry_table' > > (2) 'geometry_column from (<sub query>) as foo using unique > > <column name> using SRID=<srid#>'", > > > > NOTE: for (2) 'using unique' and 'SRID=' are optional, but its highly > > recommended that you use them!!! > > > > The most common problem with (1) is incorrectly uploading your data. > > There must be an entry in the geometry_columns table. This will be > > automatically done if you used the shp2mysql program or created your > > geometry column with the AddGeometryColumn() MYGIS function. > > From umberto.nicoletti at GMAIL.COM Fri Sep 28 04:59:49 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 28 Sep 2007 13:59:49 +0200 Subject: Any help appreciated!! - Fwd: 5.0 - use of qstring_validation_pattern for attribute queries In-Reply-To: <5a9686e80709280354o2447a426ra7c431dba882004d@mail.gmail.com> Message-ID: Try: /.*/ On 9/28/07, Mike Saunt wrote: > Hi All > > I sent this out earliler in the week - has anyone used a 'qstring' in > MapServer 5.0 where the pattern should be able to match any string? I can't > seem to get it to work even though I get messages back such as Failed to > parse expression: Mendip = Mendip msyyparse(): Expression parser error. > parse error msEvalExpression: Expression parser error. > > Would there be any examples in the test cases / data etc? > > Any help appreciated!! > Cheers > Mike > > > Hi All > > I was wondering whether anyone has an example of the METADATA key for > qstring_validation_pattern that is required for v5.0 layers that are to be > attribute queried? > > I would like to be able to accept any string (as through my app you can't > inject the values) > > I've tried the following qstring_validation_pattern /^[0-9]*$/ and > qstring_validation_pattern '.' but neither seem to match (the first throws a > symbol definition error): > > LAYER > NAME Ward > TYPE POLYGON > STATUS OFF > CONNECTIONTYPE OGR > CONNECTION > "Overlays\CouncilDemocracy\Ward_Boundaries_2004.TAB" > TOLERANCEUNITS METERS > METADATA > qstring_validation_pattern '.' > END > CLASS > STYLE > COLOR -1 -1 -1 > END > STYLE > OUTLINECOLOR 0 0 0 > WIDTH 2 > END > END > END > > I've also tried as TYPE QUERY... > > Any help would be greatly appreciated > > Cheers > Mike > From Tom.Kralidis at EC.GC.CA Fri Sep 28 05:00:37 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 28 Sep 2007 08:00:37 -0400 Subject: WMS Client Connection through a proxy In-Reply-To: A Message-ID: > I'm trying as a WMS client to connect an OGC server through a > proxy, but all I'm getting is a blank image. > > I'm using Mapserver 4.6.1 with WFS_CLIENT support and here is > to code from the mapfile I'm using : > > LAYER > CONNECTION > "http://ogcrisques.brgm.fr/cgi-bin/mapserv?map=/application/ma pserver/mapFiles/risquesIT.map?" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:27582" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > "wms_name" "DAT_SIREN_FS" > "wms_proxy_*" "192.168.1.14:8080" > "wms_format" "image/png" > "wms_server_version" "1.1.1" > END > NAME "layerBD_MVT" > PROJECTION > "init=epsg:27582" > END > SIZEUNITS PIXELS > STATUS ON > TOLERANCEUNITS PIXELS > TYPE RASTER > UNITS METERS > END > I'm not sure if this is supported (i.e. I don't see any proxy type metdata in either WMS client or WFS client). Is the CONNECTION URL only accessible via proxy? ..Tom From yvan.calcagni at VOILA.FR Fri Sep 28 05:08:00 2007 From: yvan.calcagni at VOILA.FR (SUBSCRIBE MAPSERVER-USERS Y. Calcagni) Date: Fri, 28 Sep 2007 07:08:00 -0500 Subject: WMS Client Connection through a proxy Message-ID: On Fri, 28 Sep 2007 08:00:37 -0400, Kralidis,Tom [Burlington] wrote: > >> I'm trying as a WMS client to connect an OGC server through a >> proxy, but all I'm getting is a blank image. >> >> I'm using Mapserver 4.6.1 with WFS_CLIENT support and here is >> to code from the mapfile I'm using : >> >> LAYER >> CONNECTION >> "http://ogcrisques.brgm.fr/cgi-bin/mapserv?map=/application/ma >pserver/mapFiles/risquesIT.map?" >> CONNECTIONTYPE WMS >> METADATA >> "wms_srs" "EPSG:27582" >> "wms_exceptions_format" "application/vnd.ogc.se_xml" >> "wms_name" "DAT_SIREN_FS" >> "wms_proxy_*" "192.168.1.14:8080" >> "wms_format" "image/png" >> "wms_server_version" "1.1.1" >> END >> NAME "layerBD_MVT" >> PROJECTION >> "init=epsg:27582" >> END >> SIZEUNITS PIXELS >> STATUS ON >> TOLERANCEUNITS PIXELS >> TYPE RASTER >> UNITS METERS >> END >> > >I'm not sure if this is supported (i.e. I don't see any proxy type >metdata in either WMS client or WFS client). Is the CONNECTION URL only >accessible via proxy? > >..Tom Yes I can only use internet connections through a proxy. There isn't a way? Perharps I'm wrong but I believe that mapserver is using curl, and curl is working fine on my server, with the environment variable http_proxy set. Does anyone of you having a similar configuration? Yvan From Jukka.Rahkonen at MMMTIKE.FI Fri Sep 28 05:09:16 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 28 Sep 2007 15:09:16 +0300 Subject: VS: [UMN_MAPSERVER-USERS] WMS Client Connection through a proxy In-Reply-To: A<2DC5CCA14756424BBBEE8B4B2E4A682F01059EDE@ecburexch1.ontario.int.ec.gc.ca> Message-ID: > -----Alkuper?inen viesti----- > L?hett?j?: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Kralidis,Tom > [Burlington] > L?hetetty: 28. syyskuuta 2007 15:01 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] WMS Client Connection through a proxy > > > > I'm trying as a WMS client to connect an OGC server through > a proxy, > > but all I'm getting is a blank image. > > > > I'm using Mapserver 4.6.1 with WFS_CLIENT support and here > is to code > > from the mapfile I'm using : > > > > LAYER > > CONNECTION > > "http://ogcrisques.brgm.fr/cgi-bin/mapserv?map=/application/ma > pserver/mapFiles/risquesIT.map?" > > CONNECTIONTYPE WMS > > METADATA > > "wms_srs" "EPSG:27582" > > "wms_exceptions_format" "application/vnd.ogc.se_xml" > > "wms_name" "DAT_SIREN_FS" > > "wms_proxy_*" "192.168.1.14:8080" > > "wms_format" "image/png" > > "wms_server_version" "1.1.1" > > END > > NAME "layerBD_MVT" > > PROJECTION > > "init=epsg:27582" > > END > > SIZEUNITS PIXELS > > STATUS ON > > TOLERANCEUNITS PIXELS > > TYPE RASTER > > UNITS METERS > > END > > > > I'm not sure if this is supported (i.e. I don't see any proxy > type metdata in either WMS client or WFS client). Is the > CONNECTION URL only accessible via proxy? > > ..Tom Hi, In MS4W installation proxy is handled in Apache httpd.conf file: SetEnv "http_proxy" "proxy.address:port" and possibly SetEnv "NO_PROXY" in a similar way. -Jukka Rahkonen- From David.Fawcett at STATE.MN.US Fri Sep 28 06:08:23 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 28 Sep 2007 08:08:23 -0500 Subject: Step by step instructions for compiling Mapserver 5 on RHEL 5 In-Reply-To: A<12934222.post@talk.nabble.com> Message-ID: Great resource. The best place to make it available to the MapServer community would be to contribute it as a 'HowTo' in the documentation area of the MapServer site. This page location is: http://mapserver.gis.umn.edu/docs/howto It would fit well under the heading of 'compiling'. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of AmericanBwana Sent: Thursday, September 27, 2007 10:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Step by step instructions for compiling Mapserver 5 on RHEL 5 Not sure how to contribute this to the group. But I've put together a step by step process I used to build Mapserver 5 on RHEL 5. It includes directions to include AGG. So what is the best way to provide this? http://www.nabble.com/file/p12934222/MP5_RHEL5_AGG.txt MP5_RHEL5_AGG.txt -- View this message in context: http://www.nabble.com/Step-by-step-instructions-for-compiling-Mapserver- 5-on-RHEL-5-tf4532329.html#a12934222 Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at STATE.MN.US Fri Sep 28 06:28:26 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 28 Sep 2007 08:28:26 -0500 Subject: SV: Re: [UMN_MAPSERVER-USERS] Select data from table to generate layer In-Reply-To: A<200709281101.l8SB16hW009079@shx250sn1.teliamobile.net> Message-ID: So, going back to your original post, it sounds like you have a working layer of customers coming from MySQL. You now want the user to be able to select a particular customer from a control (e.g. drop-down box) on the Web page and have only the geographic features associated with that customer show up on the map. One way that you could do this would be to create an expression or filter in the customers layer definition. Instead of hard coding the expression to be something like '[customer]' = 'Ernstson', you would use variable substitution. So the expression would look something like '[customer]' = '%thecustomer%'. Where the name of your control on the html page is 'thecustomer'. Disclaimer: The syntax may not be correct, I haven't tested this. Conceptually, it should work. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Henric Ernstson Sent: Friday, September 28, 2007 6:01 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SV: Re: [UMN_MAPSERVER-USERS] Select data from table to generate layer Tanks for a quick answer. I have used *.ovf files to select data from mySQL for the layers I have today to get data from the database and so far I have not got any problem yet, is it not recomended or so to use that method? -----Ursprungligt meddelande----- Fr?n: "Umberto Nicoletti" Till: "Henric Ernstson" Kopia: MAPSERVER-USERS at lists.umn.edu Skickat: 07-09-28 09:14 ?mne: Re: [UMN_MAPSERVER-USERS] Select data from table to generate layer The same has been cleaned up and added to the documentation here: http://mapserver.gis.umn.edu/docs/reference/vector_data/mygis Umberto On 9/28/07, Umberto Nicoletti wrote: > Henric, > first of all you need to make the mysql accessibile to mapserver by > converting coordintes into a valid mygis geometry. Unfortunately there > is not much documentation on mysql around, but I could gather the > following by looking at the source of mapmygis.c: > > > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from (<sub query>) as foo using unique > <column name> using SRID=<srid#>'", > > NOTE: for (2) 'using unique' and 'SRID=' are optional, but its highly > recommended that you use them!!! > > The most common problem with (1) is incorrectly uploading your data. > There must be an entry in the geometry_columns table. This will be > automatically done if you used the shp2mysql program or created your > geometry column with the AddGeometryColumn() MYGIS function. From piero.cavalieri at GMAIL.COM Sun Sep 30 14:07:56 2007 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Sun, 30 Sep 2007 23:07:56 +0200 Subject: adding point via URL broken in MS5? In-Reply-To: Message-ID: In the migration guide I read: ...Now you CAN pass chunks of mapfiles....but you CAN change multiple properties at one time...Note that you CAN use either a '_' or a '.' to seperate identifiers... So I don't read there's no backward compatibility. However, this what I have in map file: LAYER NAME 'pointClick' TYPE CIRCLE TRANSFORM FALSE STATUS ON DEBUG OFF CLASS STYLE COLOR 255 0 0 END END END and this is the query: //MS4 Ok, not woriking in MS5 queryString = baseUrl + layersString + "&mode=query" + zoomStr +"&imgext=" + imgext + "&imgxy=" + imgxy +"&savequery=true" +"&map_pointClick_feature=new&map_pointClick_feature_points=" + setCircleCoords(imgxy) ; //MapServer 5.0: Ok queryString = baseUrl + layersString + "&mode=query" + zoomStr +"&imgext=" + imgext + "&imgxy=" + imgxy +"&savequery=true" +"&map.layer[pointClick]=FEATURE POINTS " + setCircleCoords(imgxy) + " END END"; where setCircleCoords is a simple function which returns: x1 + " " + y1 + " " + x2 + " " + y2 which is the BBox of the circle. Cheers Piero 2007/9/25, thomas bonfort : > > have you read the migration guide at > > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT > ? > > notably the URL configuration changes > > cheers, > tb > > On 9/25/07, John Cole wrote: > > Has the syntax for adding a point via the URL (for mapserver cgi) > changed in > > MS5? > > > > I have a map that no longer puts a point on the map in MS5 but the same > > query works in MS4. > > > > MS4: (address point works) > > > http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450 > > > > MS5: (address point missing) > > > http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450 > > > > Thanks, > > > > John > > -- > > View this message in context: > http://www.nabble.com/adding-point-via-URL-broken-in-MS5--tf4515013.html#a12877874 > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Sun Sep 30 20:41:31 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 30 Sep 2007 22:41:31 -0500 Subject: Changing map file parameters via URL Message-ID: Hi John: Modifying the filter like that is not allowed in 5.0 for security reasons. There are workarounds. The easiest is simply to use runtime subs. The filter would like like: FILTER "iso_2digit = '%myval%'" then you'd do a ...&myval=CA&... The only issue would be that you wouldn't have a default value this way, but could set myval=US to do just that. You should also consider setting a validation pattern for the myval variable in the web object metadata. E.g.: WEB ... METADATA myval_validation_pattern '^[A-Z]{2}$' END END This would further restrict the passed value to a 2 character string. Steve >>> John Cartwright 09/27/07 7:28 PM >>> Hello All, I'm trying to modify an existing layer on a per request basis using mapserver CGI. I have a postgis layer defined as: LAYER NAME US ... FILTER "iso_2digit = 'US'" END and I am trying to modify the FILTER element by including: map_US_FILTER=iso_2digit='CA' in the request. Can someone point out what I'm doing wrong? (This is version 5.0 on MacOSX 10.4) Thanks! --john From dfuhry at GMAIL.COM Mon Sep 17 11:11:36 2007 From: dfuhry at GMAIL.COM (Dave Fuhry) Date: Mon, 17 Sep 2007 14:11:36 -0400 Subject: Conditional IMAGETYPE possible w/ CGI? Message-ID: I'm using CGI mapserver, and would like it to return JPEGs when an ortho layer is active, and 8-bit PNGs otherwise. The CGI reference makes no reference of an exposed IMAGETYPE or equivalent parameter. Variable substitution in the mapfile (IMAGETYPE "%param%") doesn't seem to work. Are there any easy ways to conditionally specify the IMAGETYPE using CGI mapserver, or will I have to preprocess the mapfile? Thanks, Dave Fuhry From Jeremy.Nix at SFSLTD.COM Tue Sep 4 11:46:24 2007 From: Jeremy.Nix at SFSLTD.COM (Jeremy Nix) Date: Tue, 4 Sep 2007 14:46:24 -0400 Subject: WMS Server: Filtering Raster/Vector data based on request params Message-ID: Is it possible to submit a GetMap request that performs a filtering mechanism on the fly? In Geoserver, it is possible to pass an additional parameter "FILTER" that accepts an OGC formatted filter string where it is feasible to do commands like "PropertyIsEqualTo". I have a large shapefile that I built using the MosaicIndexBuilder from the Geoserver project. The image files that make up this shapefile are not uniform in size, density, or color model. These images have surrounding borders and legends that will overlap other images. If we were dealing with only a handful of images I would set up the individual files separately as different layers. As it is, we have over 100K images that fit this profile, so we've opted to go with the shapefile solution. As the images have been named using specific naming conventions, we wanted to see if we could pass a request parameter to do something like this: FILTER=locationFILENAME Is this possible. If not, does anyone have a suggestion on how I can implement this. I was worried about the negative performance that would most likely be involved with have a map file that consisted of 100K+ layers for all of our image files. Thanks in advance for any help. -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699