Hi Guy,
no there is no way to do that what you want out of the box.
It's somewhat related to this pull request about controlling number of
decimals in shapefile, being discussed now:
https://github.com/geotools/geotools/pull/1357

However, in your case it seems you want to control both the total length
and the number of decimals, as of now
I don't think we even have the data structures to carry that information
around (we have a way to carry the
total length, but even that is being parsed in DBMS based stores).

I believe it would be possible to implement it though, it just requires
some work. See for reference:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Cheers
Andrea


On Tue, Nov 15, 2016 at 10:58 AM, Guy Chisholm <[email protected]>
wrote:

> Hi
>
>
>
> I’m having some difficulty with shape-zip output when publishing NUMBER
> types from Oracle tables.  The precision on the data is excessive, and I
> cannot seem to find a way of controlling the precision from within
> GeoServer.  I’m generating examples from a version 2.6.2, but I have the
> same issue in 2.9.0 in my real case.  It doesn’t seem to throw up the same
> thing when publishing to GML3 or OGR-TAB files.
>
>
>
> Attached is a screenshot of the Feature Type details of the layer
> (feature-type-details.png)
>
> And a description of the table is included in the describe_table.txt)
>
>
>
> Running ogrinfo on a layer shows up all the excessive precisions, trailing
> 0s etc., and shows the schema and Real datatypes with their 33.31
> precision.  (ogroutput.txt) (I’ve had to remove/mix up the data, but it
> should give the idea)
>
>
>
> Many thanks
>
>
>
> Guy
>
> *Guy Chisholm*
> Senior Java Developer
>
> [image: GeoPlace LLP] 157-197 Buckingham Palace Road
> London, SW1W 9SP
> [email protected]
>
> [image: Gazatteers @ GIS Day]
> <https://www.geoplace.co.uk/news-events/gazetteers-gis-day> How are you
> celebrating on
> Wednesday 16th November?
>
> t 020 7630 4600 | information line 0843 4620000 | @GeoPlaceLLP
> <https://twitter.com/GeoPlaceLLP> | www.geoplace.co.uk | Khub
> <https://khub.net/group/geoplace/activity>
>
> GeoPlace is a public sector Limited Liability Partnership (LLP) jointly
> owned by the Local Government Association and Ordnance Survey - Disclaimer
> <https://www.geoplace.co.uk/disclaimer>
>
>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to