<div dir="ltr">Hey,<div><br></div><div>first you add your custom projection to qgis, so you can check that everything is good.<br>For this go in the "options/custom projection" and add yours.</div><div>If you already have a shapefile with this projection, just import it in qgis and save the created "user defined projection".</div>
<div><br></div><div>When you know you have the right parameters for this projection, you insert it in the spatial_ref_sys :</div><div><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">insert</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">into</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> public.</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">spatial_ref_sys</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">values</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">(</span><br>
</div><div><div>srid , --don't take one already used</div><div>  auth_name , --what you want</div><div>  auth_srid  , --don't take one already used</div><div>  srtext  , --copy paste from qgis</div><div>  proj4text  ) --copy past from qgis</div>
</div><div><br></div><div>an example : </div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">insert</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">into</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre;background-color:rgb(255,255,255)">spatial_ref_sys</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">values</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre"> </span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">(</span><span class="" style="color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">110014000</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">,</span><span class="" style="color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">'IGNF'</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">,</span><span class="" style="color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">110014000</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">,</span><span class="" style="color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">'GEOCCS["Ile d Amsterdam 1963",DATUM["Ile Amsterdam 1963 (carte 1:25000)",SPHEROID["International-Hayford 1909",6378388.0000,297.0000000000000,AUTHORITY["IGNF","ELG001"]],TOWGS84[109.7530,-528.1330,-362.2440,0,0,0,0],AUTHORITY["IGNF","REG014"]],PRIMEM["Greenwich",0.000000000,AUTHORITY["IGNF","LGO01"]],UNIT["metre",1],AXIS["X",OTHER],AXIS["Y",EAST],AXIS["Z",NORTH],AUTHORITY["IGNF","AMST63"]]'</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">,</span><span class="" style="color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">'+init=IGNF:AMST63'</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:17.99715805053711px;white-space:pre">);</span></div>
<div><br></div><div><br></div><div>Cheers,</div><div>Rémi-C</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/12 Andreas Laggner <span dir="ltr"><<a href="mailto:andreas.laggner@ti.bund.de" target="_blank">andreas.laggner@ti.bund.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Am 12.12.2013 17:27, schrieb Rémi Cura:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
you need to ad an entry to the "public.spatial_ref_sys" table<br>
for your new srid.<br>
</blockquote></div>
ok, i understand that theoretically - but my question is how can i ad an entry to the "public.spatial_ref_sys" table<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can use QGis before this to ensure the definition you have is correct.<br>
<br>
Then you use ST_Transform and ST_SetSRID with your data.<br>
</blockquote></div>
... and i do not understand that  ;-)<br>
QGis does not know 15948 too. Is that the way to ad my entry?<br>
<br>
Thanks        Andreas<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers<br>
Rémi C<br>
<br>
<br>
2013/12/12 Andreas Laggner <<a href="mailto:andreas.laggner@ti.bund.de" target="_blank">andreas.laggner@ti.bund.de</a>><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
epsg 15948 is needed to transform from DE_DHDN(BeTA, 2007) (for example<br>
31467) to ETRS89.<br>
<br>
BUT epsg 15948 is neither available in spatial_ref_sys (postgis 2.1) nor<br>
at <a href="http://spatialreference.org" target="_blank">http://spatialreference.org</a>!!<br>
<br>
I have about 10.000 tables in 31467, because that was standard in germany<br>
last years, but since some years ETRS89 is standard, many new datasets are<br>
in ETRS89 now and i cannot transform from DE_DHDN to ETRS89!<br>
<br>
I downloaded a sql from <a href="http://www.epsg.org" target="_blank">http://www.epsg.org</a> with all the epsg-codes but i<br>
don know how to use it in PostGIS.<br>
<br>
Thanks for help.<br>
<br>
--<br>
Dipl. Geoökologe Andreas Laggner<br>
<br>
Thünen-Institut für Agrarklimaschutz (AK)<br>
Arbeitsgruppe Emissionsinventare<br>
Johann Heinrich von Thünen-Institut (vTI),<br>
Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei<br>
<br>
Thünen Institute of Climate-Smart Agriculture<br>
Johann Heinrich von Thünen Institute (vTI),<br>
Federal Research Institute for Rural Areas, Forestry and Fisheries<br>
<br>
Bundesallee 50<br>
D-38116 Braunschweig<br>
<br>
Tel.: <a href="tel:%28%2B49%29%20%280%29531%20596%202636" value="+495315962636" target="_blank">(+49) (0)531 596 2636</a><br>
Fax : <a href="tel:%28%2B49%29%20%280%29531%20596%202645" value="+495315962645" target="_blank">(+49) (0)531 596 2645</a><br>
E-mail: <a href="mailto:andreas.laggner@ti.bund.de" target="_blank">andreas.laggner@ti.bund.de</a><br>
Homepage: <a href="http://www.ti.bund.de" target="_blank">http://www.ti.bund.de</a><br>
<br>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-<u></u>bin/mailman/listinfo/postgis-<u></u>users</a><br>
<br>
</blockquote></blockquote>
<br>
-- <br>
Dipl. Geoökologe Andreas Laggner<br>
<br>
Thünen-Institut für Agrarklimaschutz (AK)<br>
Arbeitsgruppe Emissionsinventare<br>
Johann Heinrich von Thünen-Institut (vTI),<br>
Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei<br>
<br>
Thünen Institute of Climate-Smart Agriculture<br>
Johann Heinrich von Thünen Institute (vTI),<br>
Federal Research Institute for Rural Areas, Forestry and Fisheries<br>
<br>
Bundesallee 50<br>
D-38116 Braunschweig<br>
<br>
Tel.: <a href="tel:%28%2B49%29%20%280%29531%20596%202636" value="+495315962636" target="_blank">(+49) (0)531 596 2636</a><br>
Fax : <a href="tel:%28%2B49%29%20%280%29531%20596%202645" value="+495315962645" target="_blank">(+49) (0)531 596 2645</a><br>
E-mail: <a href="mailto:andreas.laggner@ti.bund.de" target="_blank">andreas.laggner@ti.bund.de</a><br>
Homepage: <a href="http://www.ti.bund.de" target="_blank">http://www.ti.bund.de</a><br>
<br>
</div></div></blockquote></div><br></div>