[mapserver-users] hyperlinks
Hello all, I am researching my options for moving to a WMS and would like to know if Mapserver is capable of handling hyperlinks that exists in my shape files that I have created using Arcmap. My hyperlinks are pdfs located on my server. Thank you Dan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] hyperlinks
On 3/20/2012 10:05 AM, Daniel Erklauer wrote: Hello all, I am researching my options for moving to a WMS and would like to know if Mapserver is capable of handling hyperlinks that exists in my shape files that I have created using Arcmap. My hyperlinks are pdfs located on my server. The short answer is yes. The detailed answer involves how you might want to do that. 1. you can create a template to a query that has the hyperlink in it and even use some javascript to then jump immediately to the link 2. you can use mapserver to generate an image map the makes the hyperlink active 3. you can do this in OpenLayers, via WFS or WMS get feature info, in addition to probably a few other ways. 4. I'm sure others will have other ways they have done it. -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Clustering based on a classified column
Hy, I just had the same idea as you, Stephan, to cluster features based on attribute values. I think your expression fails because 1 != 1, so basically you can't do maths () with the Cluster:FeatureCount, just String comparisons. Actually I don't understand the reason why that is so. Imo ClusterFeatureCount should return a number, not a String. Frank Am 20.10.2011 10:36, schrieb Stephan Holl: Hello Tamas, thanks for you reply. Tamas Szekeresszeker...@gmail.com, [20111019 - 19:04:22] I'm not sure exactly what you would like to achieve. Sorry, let my show an example to make it clear: I have a classified layer based on the following CLASSES CLASS NAME bar EXPRESSION ('[typ]'='bar') STYLE SYMBOL bar END END CLASS NAME foo EXPRESSION ('[typ]'='foo') STYLE SYMBOL foo END END ... more CLASSes As you see, they are classified by the values of the column [typ]. What I want to achieve is adding a label (with the Cluster:FeatureCount as text) if the different classes have more identical attributes within the MAXDISTANCE. What I currently do is adding another CLASS: LABELITEM Cluster:FeatureCount CLASS NAME Clustered foo EXPRESSION ([Cluster:FeatureCount] 1 '[typ]'='foo') STYLE SYMBOL foo END STYLE SIZE 20 OFFSET 15 15 SYMBOL circle COLOR 255 0 0 END LABEL FONT freesans TYPE TRUETYPE SIZE 10 COLOR 255 255 255 OFFSET 15 15 ALIGN CENTER PRIORITY 10 BUFFER 1 PARTIALS TRUE POSITION cc END END CLASS NAME foo EXPRESSION ('[typ]'='foo') STYLE SYMBOL foo END END ... more CLASSes The problem of the above is, that I have to include the SYMBOL 'foo' also in the clustered CLASS, because the normal SYMBOL does not show up (because it is not there since it is clustered now...). But: I have to do that for all classes I have currently (about 25). My thinking was about a dynamic classification and clustering based on the attributes of a specific column ([typ]), but I cannot make it work. Does this make more sense to you now? The GROUP setting specifies which features may belong to the same cluster. This setting can be an expression (including the feature attributes) which evaluates to a string value. Features with different group string value are not used within the same cluster. The FILTER setting can also be an expression (including the feature attributes or the aggregated attributes) which evaluates to a boolean value. This boolean determines whether the particular shapes should be filtered out or not in the clustering process. Thanks for your clarification, this is helpful for my understanding. You can continue to use the CLASSITEM setting or class EXPRESSION (including the aggregated attributes, like Cluster:FeatureCount in the expressions) to control which class is used to display a particular clustered shape. What do you mean by validation in the GROUP or FILTER expressions? Does my above example more sense to you? Best Stephan 2011/10/19 Stephan Hollstephan.h...@intevation.de Dear mapservers, I am playing arround with the CLUSTER-directive and I am going fine. Though there are some questions left I cannot answer by myself and the documentation. Is it possible to cluster a POINT layer based on a specific attribute columns? THis column is the basis of the classification of the layer. What I want to achive is adding a label to each CLASS if the Cluster:FeatureCount is 1. The docs do not make it clear for me if CLUSTER:GROUP or CLUSTER:FILTER is the correct stuff. Neither of them work during tests. Could someone tell me if this could be done with the CLUSTERing? And the bonus-question: if this is possible, are validation-pattern taken into account within GROUP or FILTER? Looking forward to your suggestions. TIA Best regards Stephan -- Stephan Hollstephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Frank BRONIEWSKI METRICO s.à r.l. géomètres technologies d'information géographique rue des Romains 36 L-5433 NIEDERDONVEN tél.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Run-time Substitution
Dear anyone willing to help, I'm having a hard time interpreting how to properly execute runtime cgi variable substitution using an input of type=text. If I replace '%county%' with a sample county attribute value in single quotes the EXPRESSION works and is displayed on the returned html template. Currently my html input variable in the template looks like this : input type=text id=county name=county / ...and my mapfile variable to be substituted for looks like this: LAYER NAME blah_ohio STATUS OFF TYPE POINT DATA BLAH/BLAH_Ohio PROJECTION init=epsg:3754 END CLASS NAME 'Class1' EXPRESSION ('[County]' eq '%county%') STYLE SYMBOL circle COLOR 250 50 50 OUTLINECOLOR 0 0 0 SIZE 2 END END METADATA wms_title blah_ohio wms_srs epsg:4326 END END Thanks in advance, Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: Run-time Substitution
Which version? From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul Maddock Sent: Tuesday, March 20, 2012 5:03 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Run-time Substitution Dear anyone willing to help, I'm having a hard time interpreting how to properly execute runtime cgi variable substitution using an input of type=text. If I replace '%county%' with a sample county attribute value in single quotes the EXPRESSION works and is displayed on the returned html template. Currently my html input variable in the template looks like this : input type=text id=county name=county / ...and my mapfile variable to be substituted for looks like this: LAYER NAME blah_ohio STATUS OFF TYPE POINT DATA BLAH/BLAH_Ohio PROJECTION init=epsg:3754 END CLASS NAME 'Class1' EXPRESSION ('[County]' eq '%county%') STYLE SYMBOL circle COLOR 250 50 50 OUTLINECOLOR 0 0 0 SIZE 2 END END METADATA wms_title blah_ohio wms_srs epsg:4326 END END Thanks in advance, Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: HI
Hi All, I am working on a project and I am trying to split a roads layer called gtroads. Roads layer should be split into two classes “Expressway” and “Primary highway” based on the “TYPE” field. How can I split the layer? Could someone help me about the problem? Thanks. The code line like below: LAYER NAME 'gtroads' TYPE LINE DUMP false EXTENT -143.208273 40.614882 -50.461099 84.297613 DATA '../Data/gtroads.shp' METADATA 'ows_title' 'gtroads' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'gtroads' STYLE WIDTH 3.5 COLOR 0 0 0 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] gdaldatasetrasterIO() failed: ireadblock failed
On 12-03-19 09:21 AM, Pedro Costa wrote: Hello list, My server can´t open a tif that i have in my mapfile. It gives this error: gdaldatasetrasterIO() failed: ireadblock failed Someone know what is this problem? Pedro, It means the GDAL raster library used by MapServer was unable to read a chunk of the underlying file imagery. It could potentially mean a corrupt TIFF file. You might want to try gdal_translate your.tif new.tif from the commandline. If the file is corrupt that is likely to fail and then you could file a ticket referencing the file if you think it is valid. BTW, it can be helpful to capture a more exact representation of the error along with preceding information. Usually IReadBlock failures are accompanied by some additional error information that would have resulted in a better answer here. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://home.gdal.org/warmerda and watch the world go round - Rush| Geospatial Software Developer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users