|
|
Subject: Re: Labels not grouping, repeating over the map - msg#00013
GPSBoy escreveu:
> Hi!
>
> Serving my own street layers (shapefiles) on top of google maps (satellite
> view) and google earth just fine. (WFS) :-)
>
> 1.- Im Using the <VendorOption name="group">yes</VendorOption> in both the
> street and city layers; With the streets layer the label placement works ok
> (one label per street) but city layer ignores the grouping instruction and
> displays names more than once (6 or 7). :-(
>
> 2.- The other thing is that I would like to place the city label in an
> specific location of the map, letÂs say, in the upper left corner, next to
> the zoom control, and have no idea on how to do that. :-(
>
> Suggestions? ... Thanks !
>
I have a sugestion for (1):
Try to use <VendorOption name="group">true</VendorOption> instead of
<VendorOption name="group">yes</VendorOption>.
Cheers,
Eduardo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Thread at a glance:
Previous Message by Date:
Data
can we retrive the Data from .dbf file in Geoserver using java,if so how?
--
View this message in context: http://www.nabble.com/Data-tf2761381.html#a7698693
Sent from the GeoServer - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Next Message by Date:
Re: Couple of queries on 1.4
I am running into a seemingly related problem when attempting to create an
ArcSDE data store. After reading the message on the commons pool jar, I
downloaded the commons-pool-1.3.jar file from the Jakarta website and placed
it in the Geoserver lib folder \webapps\geoserver\WEB-INF\lib along with the
ArcSDE jar files ( jpe91_sdk.jar, jsde91_sdk.jar,
gt2-arcsde-2.2.2-SNAPSHOT.jar).
On the Config->Data->Stores->Edit screen for the ArcSDE datastore, after I
enter the required fields (server, port, user, password) and click Submit, I
receive a message '*
org.geotools.data.arcsde.PooledConnection.getLayers()Ljava/util/List;' on
the left side of the screen. The wrapper log file seems to indicate that it
is unable to find the PooledConnection.getLayers() method.
Is this the correct commons-pool-1.3.jar file to be using?
Or am I missing another jar file that contains the getLayers() method?
Here is an excerpt from wrapper.log:
INFO | jvm 1 | 2006/12/05 09:48:43 | form connection params {
password="secret", pool.minConnections=2, user="test_user", instance="",
pool.maxConnections=2, pool.timeOut=1000, server="test", port=5153,
dbtype="arcsde"}
INFO | jvm 1 | 2006/12/05 09:48:44 | java.lang.NoSuchMethodError:
org.geotools.data.arcsde.PooledConnection.getLayers()Ljava/util/List;
INFO | jvm 1 | 2006/12/05 09:48:44 | at
org.geotools.data.arcsde.ArcSDEConnectionPool.getAvailableLayerNames(ArcSDEConnectionPool.java:373)
INFO | jvm 1 | 2006/12/05 09:48:44 | at
org.geotools.data.arcsde.ArcSDEDataStore.getTypeNames(ArcSDEDataStore.java:142)
INFO | jvm 1 | 2006/12/05 09:48:44 | at
org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:144)
INFO | jvm 1 | 2006/12/05 09:48:44 | at
org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:98)
Chris Holmes wrote:
>
> Sounds like you just need to stick the commons pool jar in it. You can
> download it from:
> http://jakarta.apache.org/site/downloads/downloads_commons-pool.cgi
>
> The 1.4.x is actually very similar to 1.3.x - both are built off of
> geotools 2.2.x. Try the 1.3.x with the 1.4.0-RC1, and see if that
> works. If you get the same error it's likely that we were including the
> pool jar in 1.3.x. If you don't then I guess ArcSDE switched pool
> implementations. But it sounds like downloading that jar should work
> fine.
>
>
--
View this message in context:
http://www.nabble.com/Couple-of-queries-on-1.4-tf2465891.html#a7700925
Sent from the GeoServer - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Previous Message by Thread:
Labels not grouping, repeating over the map
Hi!
Serving my own street layers (shapefiles) on top of google maps (satellite
view) and google earth just fine. (WFS) :-)
1.- Im Using the <VendorOption name="group">yes</VendorOption> in both the
street and city layers; With the streets layer the label placement works ok
(one label per street) but city layer ignores the grouping instruction and
displays names more than once (6 or 7). :-(
2.- The other thing is that I would like to place the city label in an
specific location of the map, letÂs say, in the upper left corner, next to
the zoom control, and have no idea on how to do that. :-(
Suggestions? ... Thanks !
--
View this message in context:
http://www.nabble.com/Labels-not-grouping%2C-repeating-over-the-map-tf2759240.html#a7693165
Sent from the GeoServer - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Next Message by Thread:
Re: Labels not grouping, repeating over the map
GPSBoy wrote:
Hi!
Serving my own street layers (shapefiles) on top of google maps (satellite
view) and google earth just fine. (WFS) :-)
1.- Im Using the <VendorOption name="group">yes</VendorOption> in both the
street and city layers; With the streets layer the label placement works ok
(one label per street) but city layer ignores the grouping instruction and
displays names more than once (6 or 7). :-(
Are city layers polygons or lines? I think the vendor group option only
works for lines, I was noticing that behavior myself last night. The
docs say that it should do grouping:
polygons are (a) clipped to the view rectangle (b) the centroid of the
largest polygon is used.
http://docs.codehaus.org/display/GEOSDOC/LabelingOptions
If it's polygons could you submit a bug to our tracker at:
http://jira.codehaus.org/browse/GEOS ?
2.- The other thing is that I would like to place the city label in an
specific location of the map, letÂs say, in the upper left corner, next to
the zoom control, and have no idea on how to do that. :-(
Next to the zoom control? Like you always want it next to the zoom
control? Even when someone moves around or zooms in? That's hard to
do, since the zoom control isn't really an element of the map GeoServer
produces, so it doesn't know where it is. If you really wanted it right
by the zoom control then I'd write it in to the client. Have the client
make a WFS GetFeature request to figure out what city was being viewed
(simple way is just do a GetFeature for the center of the map, you could
get in to more complicated algorithms though, for cases when multiple
cities are on the map, ect.) And then display the results next to the
zoom.
If you're using google maps then you'll have to write some javascript
code to make the request and to put the results on top of the map (or it
might be easier to do it just outside? I'm not sure). There's info on
how to make WFS requests in javascript at:
http://docs.codehaus.org/display/MAP/Step+3+Set+Up+Queries
best regards,
Chris
Suggestions? ... Thanks !
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
cholmes.vcf
Description: Vcard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
Geoserver-users mailing list
Geoserver-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/geoserver-users
|
|