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.

Good day can i ask something about geoserver 2.2.1? I have my maps then i want to see the largest cities before the small cities but i don't have population instead i have my PLACE column its not a numbers its a text example

NAME                PLACE          ADDRESS
Ayusan Norte        Village        VIGAN
Barangay VIII       Village        VIGAN 

Then i want to create a big point to see all bigest cities How can i do that thanks..

God Bless !

share|improve this question
    
Largest in terms of what? Area? –  R.K. Dec 28 '12 at 5:14
add comment

2 Answers

I haven't tried, but you should be able to get what you want using the "Recode" function, turning your labels into numbers. Something like:

<Priority>
  <ogc:Function name="Recode">
     <ogc:PropertyName>PLACE</ogc:PropertyName>
     <ogc:Literal>Village</ogc:Literal>
     <ogc:Literal>10</ogc:Literal>
     <ogc:Literal>Town</ogc:Literal>
     <ogc:Literal>20</ogc:Literal>
     <ogc:Literal>City</ogc:Literal>
     <ogc:Literal>30</ogc:Literal>
     <ogc:Literal>Capital</ogc:Literal>
     <ogc:Literal>40</ogc:Literal>
  </ogc:Function>
</Priority>

See also examples in the documentation here: http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html#transformation-func

share|improve this answer
    
Good day again example i have my Data set 1st column is Name and second column is Place example Philippines then its capital is Metropolitan manila all i want is the philippines have its bigger size of point than metropolitan manila how can i do that thanks :) –  Janinalui Dec 29 '12 at 8:42
add comment

I'm not sure that I completely understand your question. How do you differentiate a "big" city from a "small" city in your data?

The Geoserver SLD (styled layer descriptor) provides the means to apply styles based on attributes. The SLD cookbook has an example for that. This attributed doesn't have to be population. It could be a text field containing "big" or "small". Then you can use a filter to check for one of these properties.

If you can provide more detail about your data, then I or someone here could help you with setting up the SLD file.

share|improve this answer
    
Good day again example i have my Data set 1st column is Name and second column is Place example Philippines then its capital is Metropolitan manila all i want is the philippines have its bigger size of point than metropolitan manila how can i do that thanks :) –  Janinalui Dec 28 '12 at 6:41
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.