Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have shapefile with points. They are classified - Graduated colors. I made SLD file with ArcMap2SLDConverter. I have a task to manual edit SLD file to show symbol diameters relating to field Area.

I need to create one rule (for symbol COLOR) relating to one attributes ("Class" column), and second rule (for symbol SIZE) relating to other attributes ("Area" column) for the same geometry. So now I have points with rules for symbol colors, but I don't know how to edit my .sdl file to insert rules for symbol size considering they are related to other attribute than those rules for symbol colors.

I don't know how to have two rules relating to two different attribute columns for the same shapefile?

Can someone help me with that task?

Thank you.

share|improve this question
    
You can edit SLD in Notepad (recommend Notepad++ notepad-plus-plus.org ) SLD description can be found here - docs.geoserver.org/stable/en/user/styling/sld-cookbook/… –  Mapperz Oct 17 '11 at 14:32
    
But I need to create one rule (for symbol COLOR) relating to one attributes ("Class" column), and second rule (for symbol SIZE) relating to other attributes ("Area" column) for the same geometry. So now I have points with rules for symbol colors, but I don't know how to edit my .sdl file to insert rules for symbol size considering they are related to other attribute than those rules for symbol colors. –  againstflow Oct 17 '11 at 15:34
add comment

3 Answers

up vote 3 down vote accepted

Check out the SLD Cookbook for examples of this. Despite it being on the GeoServer site it is nearly all applicable to all SLD implementations (and the bits that are GeoServer extensions are clearly marked)

share|improve this answer
add comment

I have used a tool called Atlas Styler in the past to help create some SLD's maybe worth having a look to see if this will help with your rules that you need to implement.

share|improve this answer
add comment

LATITUDE

    <!-- Mapping curve definition pairs (input, output) -->
    <ogc:Literal>70</ogc:Literal>  <!--smallest input value -->
    <ogc:Literal>5</ogc:Literal>  <!-- smallest point size -->

    <ogc:Literal>72</ogc:Literal>  <!--largest input value -->
    <ogc:Literal>20</ogc:Literal>  <!-- largest point size -->

</ogc:Function>

LATITUDE

        <!-- Mapping curve definition pairs (input, output) -->
        <ogc:Literal>70</ogc:Literal>
        <ogc:Literal>#fefeee</ogc:Literal>

        <ogc:Literal>72</ogc:Literal>
        <ogc:Literal>#ff0000</ogc:Literal>

        <!-- Interpolation method -->
        <ogc:Literal>color</ogc:Literal>

        <!-- Interpolation mode - defaults to linear -->
    </ogc:Function>
</CssParameter>

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.